Critical errors

I have a compiled pipeline. 9 / 10 tries all works beautyfuly one in 10 I get a whole lot of these:
dvrPreview:35468): GStreamer-CRITICAL **: 15:12:04.022: gst_bin_get_by_name: assertion ‘GST_IS_BIN (bin)’ failed

(dvrPreview:35468): GLib-GObject-CRITICAL **: 15:12:04.022: g_object_set: assertion ‘G_IS_OBJECT (object)’ failed

this is a rendition of the pipeline

v4l2src device=/dev/video4 ! image/jpeg,width=1920,height=1080,framerate=30/1 ! jpegdec ! videoconvert ! queue max-size-buffers=0 max-size-bytes=0 max-size-time=1000000000 ! gdkpixbufoverlay name=logo ! clockoverlay name=DT halignment=left valignment=top font-desc=“Sans, 12” time-format=“%d %b %Y %H:%M:%S” ! textoverlay name=O1 halignment=left valignment=top ! textoverlay name=O2 halignment=left valignment=top ! textoverlay name=O3 halignment=left valignment=top ! textoverlay name=O4 halignment=left valignment=top ! textoverlay name=O5 halignment=left valignment=top ! textoverlay name=O6 halignment=left valignment=top ! textoverlay name=O7 halignment=left valignment=top ! textoverlay name=O8 halignment=left valignment=top ! textoverlay name=O9 halignment=left valignment=top ! textoverlay name=O10 halignment=left valignment=top ! tee name=t ! queue ! glimagesink name=sink sync=false t. ! queue leaky=1 ! x264enc tune=zerolatency ! rtph264pay ! udpsink host=224.1.1.1 auto-multicast=true port=5003

Any ides on how to debug ?

Thanks
James

You’d need to run this in a debugger like this: G_DEBUG=fatal_criticals gdb -args gst-launch-1.0 ... and then in the gdb shell after the crash, type bt and share the result…

Philippe thanks.
You’ve shown me the way. Where can I find a list of debug categories? My errors are not fatal! I put a snip of my debug to show: {O is stdout, E is stderr, reported live from my app that does not run gst-launch-1.0, pressing Preview toggles action.

[preview3]
[startPreview] chan:3 tellDBUS:1
IDLE → PREVIEWING
[isNet]
trawling /sys/class/net/enp1s0/carrier
TRUE
[doCanvas] 3
/usr/bin/canvas 3 1
wmctrl -l 177 mS
dvrPreview 3 4e00006 v4l2src device=/dev/video4 ! image/jpeg,width=1920,height=1080,framerate=30/1 ! jpegdec ! videoconvert ! queue max-size-buffers=0 max-size-bytes=0 max-size-time=1000000000 ! gdkpixbufoverlay name=logo ! clockoverlay name=DT halignment=left valignment=top font-desc=“Sans, 12” time-format=“%d %b %Y %H:%M:%S” ! textoverlay name=O1 halignment=left valignment=top ! textoverlay name=O2 halignment=left valignment=top ! textoverlay name=O3 halignment=left valignment=top ! textoverlay name=O4 halignment=left valignment=top ! textoverlay name=O5 halignment=left valignment=top ! textoverlay name=O6 halignment=left valignment=top ! textoverlay name=O7 halignment=left valignment=top ! textoverlay name=O8 halignment=left valignment=top ! textoverlay name=O9 halignment=left valignment=top ! textoverlay name=O10 halignment=left valignment=top ! tee name=t ! queue ! glimagesink name=sink sync=false t. ! queue leaky=1 ! x264enc tune=zerolatency ! rtph264pay ! udpsink host=224.1.1.1 auto-multicast=true port=5003
[manageTitlebar] 3
titlebar 3
send-to-dbus> preview 3
[dbusAction 15:12:03] toolbar preview 3
dvrPrev-O3> --dvrPreview
dvrPrev-E3>
(dvrPreview:35468): GStreamer-CRITICAL **: 15:12:04.022: gst_bin_get_by_name: assertion ‘GST_IS_BIN (bin)’ failed

(dvrPreview:35468): GLib-GObject-CRITICAL **: 15:12:04.022: g_object_set: assertion ‘G_IS_OBJECT (object)’ failed

(dvrPreview:35468): GStreamer-CRITICAL **: 15:12:04.022: gst_bin_get_by_name: assertion ‘GST_IS_BIN (bin)’ failed

(dvrPreview:35468): GLib-GObject-CRITICAL **: 15:12:04.022: g_object_set: assertion ‘G_IS_OBJECT (object)’ failed

many more

(dvrPreview:35468): GLib-GObject-CRITICAL **: 15:12:04.174: g_object_set: assertion ‘G_IS_OBJECT (object)’ failed
[disconnectPreviewFinished3SIGNAL]
[preview3]
[stopPreview] chan:3 tellDBUS:1
disconnect finished SIGNAL
PREVIEWING → IDLE
stop titlebars, gstreamer and canvas
send-to-dbus> stopPreview 3
[dbusAction 15:19:20] toolbar stopPreview 3

The whole Schrodinger’s cat bit, except that it never happens while I’m watching.
(Explains for those who don’t know: quantum physics thought experiment: Schrodinger’s cat is not dead until you look)

I need to find doco on the categories.
EG I set, and can see the environment var, but I see no effect:

setenvPrevewProc2 GST_DEBUG=fatal_criticals

[dbusAction 12:38:51] toolbar preview 2
dvrPrev-O2> --dvrPreview
dvrPrev-E2>
(dvrPreview:17566): GStreamer-CRITICAL **: 12:38:51.618: gst_bin_get_by_name: assertion ‘GST_IS_BIN (bin)’ failed

and the dvrPreview process keeps running. All gstreamer threads have terminated without leaving an error or a warning message and without a core dump.
Since upto 4 dvrPreview processes may be running each with their sea of threads, checking the gst processes looks liks hard work.
Where can I find doco eg for fatal_criticals

G_DEBUG … not GST_DEBUG.

My bad! sorry.
Where would I find any doco on fatal_criticals.
Is there any option that would core dump? In GStreamer-CRITICAL · Issue #157 · EricssonResearch/openwebrtc · GitHub He says xcode opened the debugger but I see no core
[dvr@dvrHS:~$ cat /proc/sys/kernel/core_pattern
core
]
Thankyou

See GLib – 2.0: Running GLib Applications
Setting G_DEBUG as advised in previous comments should make the app crash on the first critical warning, that’s why the option is called “fatal_criticals”.

Are you running this in a debugger or not?