I am running nvargus-daemon and gstreamer pipelines inside a container. I am testing the resiliency of the software to restarts, and it seems to hang once every few restarts.
To start nvargus-daemon
nvargus-daemon
To start sample gstreamer pipeline
gst-launch-1.0 -v -e --gst-debug-level=4 nvarguscamerasrc sensor_id=1 name=cam_front maxperf=true aelock=false awblock=false wbmode=1 ! 'video/x-raw(memory:NVMM), width=(int)1936, height=(int)1100, format=(string)NV12, framerate=(fraction)30/1' ! fakesink silent=false -v &> gstreamer.log
I’m stopping the gstreamer pipeline by sending a SIGINT.
kill -SIGINT PID
I’m stopping nvargus-daemon by issuing a SIGTERM
followed by a SIGKILL
.
The output from gstreamer console output when it is shutting down, and following which nvargus-daemon hangs, is
=== gst-launch-1.0[676]: CameraProvider initialized (0x7f78a949f0)
SCF: Error BadValue: NvPHSSendThroughputHints (in src/common/CameraPowerHint.cpp, function
sendCameraPowerHint(), line 56)
LSC: LSC surface is not based on full res!
=== gst-launch-1.0[676]: Connection closed (7F7D4DE1D0)
=== gst-launch-1.0[676]: WARNING: CameraProvider was not destroyed before client connection
terminated.
=== gst-launch-1.0[676]: The client may have abnormally terminated. Destroying CameraProvider...
=== gst-launch-1.0[676]: CameraProvider destroyed (0x7f78a949f0)
=== gst-launch-1.0[676]: WARNING: Cleaning up 1 outstanding requests...
=== gst-launch-1.0[676]: WARNING: Cleaning up 1 outstanding streams...
SCF: Error InvalidState: 2 buffers still pending during EGLStreamProducer destruction (propagating from
src/services/gl/EGLStreamProducer.cpp, function freeBuffers(), line 305
In the normal working case, gstreamer console output when it is opened and closed is
=== gst-launch-1.0[610]: CameraProvider initialized (0x7f98a94c90)
SCF: Error BadValue: NvPHSSendThroughputHints (in src/common/CameraPowerHint.cpp, function
sendCameraPowerHint(), line 56)
LSC: LSC surface is not based on full res!
=== gst-launch-1.0[610]: CameraProvider destroyed (0x7f98a94c90)
=== gst-launch-1.0[610]: Connection closed (7F9FA941D0)
=== gst-launch-1.0[610]: Connection cleaned up (7F9FA941D0)