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
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.
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
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”.