Using Gst.parseLaunch(“videotestsrc ! fakesink sync=false“) as a dummy test pipeline, I can launch several of these, and stop them after a scheduled delay. When I try to do the same with Gst.parseLaunch(“videotestsrc ! autovideosink“), I do get a window popping up with a tab for each pipeline showing the video ( it’s working), but when calling pipeline.stop(), I get a core dump ( - oh it’s not).
I understand that each individual component may have its own bugs, but I was not expecting this from a core component. Is there any guidance to figure out whether I’m doing something wrong in my code, whether it is related to the Java bindings, or an issue with the gstreamer component itself? I’m running on Mac 12.6.4, so maybe autovideosink does not work well on Mac. I tried on three different JVMs but that doesn't make a difference.
Is there a way to protect my whole process crashing? In Java I’m used to wrap code in a try-catch construct, but the core dump cannot be catched in this way. What would be a good/safe approach?