Error generated. /.../gstnvarguscamerasrc.cpp, execute:543 Failed to create CaptureSession

I’m encountering this error:

In another thread someone suggested running: nvgstcapture-1.0

This is the tail end of the output:

This issue started when the program I’m working on crashed. My guess is that the driver is hung. I’m wondering if there’s a way to reset the driver without rebooting, or if I have no other option than to reboot.

Does it a always failed problem or got failed sometimes?
What does the v4l2-ctl --list-devices show?

1 Like

Hello oseberg,
This may happen if there is another session using this same camera (hung or alive) and try to use same camera again; if this issue is happening sometimes. You can close all sessions and reset the nvargus-daemon to reset the argus framework and try nvgstcapture-1.0 again.

sudo service nvargus-daemon restart

Thanks and Regards
Sarath S

7 Likes

Hello ,

I have faced with the same problem when I want to update filter ,

caps = gst_caps_from_string(“video/x-raw(memory:NVMM) , width=1920, height=1080, format=(string)NV12, framerate=(fraction)10/1”);
g_object_set(G_OBJECT(filter), “caps”, caps, NULL);
gst_caps_unref(caps);

while creating pipeline there isn’t any problem. But when I want to update the width height and frame rate it gave me this output.

Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:543 Failed to create CaptureSession
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4

How do you update the width/height and frame rate?