R32.3.1 tx2-4g gstreamer app does not always terminate

I get this message, how do I fix it, it is causing other apps to “Wait”
Terry

(Argus) Error InvalidState: Argus client is exiting with 1 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 357)

Hi,
It looks like the camera is not stable and hangs in the condition. Please share vendor and model of the camera for reference.

Lumenera 8M camera.
The app was not starting all the time so I made changes and now the app sometimes does not terminate.

It says something about Destroy all libargus objects before destroying the camera provider to avoid these warning,

Setting set_state(NULL) hangs so how am I suppose to cleanup correctly?

Jun 9 13:34:30 BaseSystem_0_6 nvargus-daemon[2946]: === VideoSystem[2988]: CameraProvider destroyed (0x7f7478dce0)=== VideoSystem[2988]: WARNING: Cleaning up 1 outstanding requests…=== VideoSystem[2988]: WARNING: Cleaning up 1 outstanding stream settings…=== VideoSystem[2988]: WARNING: Cleaning up 1 outstanding queues…=== VideoSystem[2988]: WARNING: Cleaning up 1 outstanding sessions…SCF: Error BadParameter: NV-DEBUG: Skip shutterEvent when Timestamp(249030341556) (in src/services/capture/DeviceCaptureRequest.cpp, function notifyCsiFrameStart(), line 99)
Jun 9 13:34:30 BaseSystem_0_6 nvargus-daemon[2946]: SCF: Error BadParameter: NV-DEBUG: Skip shutterEvent when Timestamp(249030374882) (in src/services/capture/DeviceCaptureRequest.cpp, function notifyCsiFrameStart(), line 99)
Jun 9 13:34:30 BaseSystem_0_6 nvargus-daemon[2946]: SCF: Error BadParameter: NV-DEBUG: Skip shutterEvent when Timestamp(249030408208) (in src/services/capture/DeviceCaptureRequest.cpp, function notifyCsiFrameStart(), line 99)
Jun 9 13:34:31 BaseSystem_0_6 nvargus-daemon[2946]: === VideoSystem[2988]: WARNING: Cleaning up 1 outstanding streams…(Argus) Error InvalidState: Unknown stream deleted. (in src/api/CaptureSessionImpl.cpp, function outputStreamDeleted(), line 783)
Jun 9 13:34:35 BaseSystem_0_6 nvargus-daemon[2946]: === VideoSystem[2988]: NOTE: Destroy all libargus objects before destroying the CameraProvider to avoid these warnings.
Jun 9 13:34:35 BaseSystem_0_6 systemd[1]: nvargus-daemon.service: Main process exited, code=killed, status=11/SEGV
Jun 9 13:34:35 BaseSystem_0_6 systemd[1]: nvargus-daemon.service: Failed with result ‘signal’.
Jun 9 13:34:35 BaseSystem_0_6 systemd[1]: nvargus-daemon.service: Service hold-off time over, scheduling restart.
Jun 9 13:34:35 BaseSystem_0_6 systemd[1]: nvargus-daemon.service: Scheduled restart job, restart counter is at 18.

Hi,
This looks to be duplicate of
R32.3.1 tx2-4g gst_element_change_state hangs - #41 by Honey_Patouceul

Let’s continue in single topic.