alliedvision / linux_nvidia_jetson

Allied Vision CSI-2 camera driver for NVIDIA Jetson Systems.
103 stars 41 forks source link

qv4l2 Segmentation fault #20

Closed guillebot closed 3 years ago

guillebot commented 3 years ago

With this new driver qv4l2 segfaults on start.

The driver starts:

tecnox@nano-labo:~$ dmesg|grep ALV
[    8.389585] ALVIUM 1800 C-1240c 7-3c: ioctl_queryctrl:2853: control 'Contrast' not supported by firmware
[    8.448969] ALVIUM 1800 C-1240c 7-3c: ioctl_queryctrl:3315: control 'Sharpness' not supported by firmware
[    8.524170] ALVIUM 1800 C-1240c 7-3c: ioctl_queryctrl:3731: control 'exposure active line' not supported by firmware
[    8.525199] ALVIUM 1800 C-1240c 7-3c: ioctl_queryctrl:3768: control 'exposure active line' not supported by firmware
[    8.529562] ALVIUM 1800 C-1240c 7-3c: ioctl_queryctrl:3799: control 'exposure active line' not supported by firmware
[    8.822844] ALVIUM 1800 C-1240c 7-3c: avt_init_mode:6285: Camera supported lane counts value: 0xb
[    8.951982] vi 54080000.vi: subdev ALVIUM 1800 C-1240c 7-3c bound
[    8.958710] avt_csi2 7-003c: sensor ALVIUM 1800 C-1240c 7-3c registered

But running qt4v2:

tecnox@nano-labo:~$ qv4l2 
Opening in BLOCKING MODE
Segmentation fault (core dumped)

This didn't happened before on Jetpack 4.4.x.

BernardoLuck commented 3 years ago

The qv4l2 segmentation happens with and without our drivers. This is bug on side from the Nvidia Jetpack. Unfortunately, we need to wait until Nvidia solves this issue.

guillebot commented 3 years ago

The qv4l2 segmentation happens with and without our drivers. This is bug on side from the Nvidia Jetpack. Unfortunately, we need to wait until Nvidia solves this issue.

ok, thanks for your time

This patch seems to fix the issue:

https://forums.developer.nvidia.com/t/libv4l2-nvargus-so-source-code/168303/19

At least is running now without segfault.