I have an issue with Jetpack 6.1 using Jetson Orin NX 8 GB board. I’m trying to restart a gstreamer pipeline from a C++ program, but there is a segmentation fault in v4l2_fd_open function of libv4l2.so. The pipeline is stopped, but the seg fault occurs when I try to start it again using gst_element_set_state(pipeline, GST_STATE_PLAYING).
The pipeline is simple: v4l2src ! nvvidconv ! nvv4l2h264enc ! fakesink. The issue is gone when I remove the nvv4l2h264enc element. I have also seen that a thread of libnvbufsurftransform.so is still running after I completely stop the pipeline. I think that caused the issue since there is no any leftover thread when I don’t have the nvv4l2h264enc element. I didn’t experience a similar issue with Jetpack 6.0.
Hi akos.nagy,
Could you provide a sample code to demonstrate the issue? I was unable to replicate the error using our dev kit.
To better understand your setup, could you clarify whether using the dev kit or a custom carrier board?
Thank you for your reply! The pipeline works with gst-launch, even if I don’t specify the caps. The problem - as I described earlier - is that there is a segmentation fault after restarting the pipeline in the same process, and there is no issue when I use x264enc.