gstreamer-sharp basic-tutorial-8.exe crashes on origin/1.18
Operating environment:
Windows 10 Professional Visual Studio Professional 2019
Problem details:
I'm trying to create a prototype using an appsrc and gstreamer-sharp, so see how I might be able to use an existing C# API to get video frames, and then process using gstreamer.
I followed the basic-tutorial-8 example. My prototype crashed. To make sure I didn't miss something from the sample, I tried basic-tutorial-8.exe, which crashed in exactly the same manner, with the same call stack and message
Here's the call stack from basic-tutorial-8.cs:
KERNELBASE.dll!00007ffe6cf7d662() Unknown
glib-2.0-0.dll!g_abort() Line 2676 C
glib-2.0-0.dll!g_assertion_message(const char * domain, const char * file=0x00007ffd9f5d17a0, int line, const char * func=0x00000000008fe2f0, const char * message=0x000000001b8d0880) Line 2913 C
glib-2.0-0.dll!g_assertion_message_expr(const char * domain=0x00007ffd9f5cf720, const char * file=0x00007ffd9f5d17a0, int line=3091, const char * func=0x00007ffd9f5d2a70, const char * expr=0x00007ffd9f5d2a50) Line 2939 C
gobject-2.0-0.dll!toggle_refs_notify(_GObject * object=0x000000001b8095a0, int is_last_ref=1) Line 3092 C
gobject-2.0-0.dll!g_object_unref(void * _object=0x000000001b8095a0) Line 3362 C
[Managed to Native Transition]
glib-sharp.dll!GLib.Object.Raw.set(System.IntPtr value = 0x000000001b8095a0) Line 703 C#
basic-tutorial-8.exe!GstreamerSharp.Playback.Main(string[] args) Line 134 C#
[Native to Managed Transition]
[External Code]
Line 134 in BasicTutorial8.cs is: AppSource = new Gst.App.AppSrc ("app_src");
AppSource is a static member of the Playback class
and the last managed code line in the trace is line 703 in Object.cs:
if (value != IntPtr.Zero) {
tref = new ToggleRef (this); <--- failing call is here
Objects [value] = tref;
I build gstreamer from source using gstreamer's ninja/meson build system and the monorepository, with no changes. I tried other basic-tutorial*.exe examples, and they worked fine. }