I am using unmodified sample 12_camera_v4l2_cuda on TX2 with USB cameras (Have tried multiple different cameras). Command line is “./camera_v4l2_cuda -d /dev/video1 -f MJPEG -s 1280x720 -n 30”
After approx 15 seconds it is crashing with error:
NvRmChannelSubmit: NvError_IoctFailed with errorcode 22… blah blah blah…
By changing command line to -s320x240 it runs for longer, a couple of minutes, but then the same crash.
By commenting the following line out, it will run forever without crashing.
if (ctx->jpegdec->decodeToFd(fd, ctx->cameras[i].g_buff[v4l2_buf.index].start, bytesused, pixfmt, width, height) < 0) …
If I run the same sample on my Jetson Nano then there is no problem and everything runs forever.
So it appears there is a problem in the libnvjpeg.so or the application where the fd buffer is not being freed.
Is there any solution to this problem? I see in a different thread that there was a known problem on nano r32.1 in libnvjpeg and a new version was referenced in that thread. Is there a new version for the TX2 JetPack 4.2.1??
Help please anyone…