QT app crash in Gstremer rtspsrc while calling g_free()
-
I have mingw gstreamer 1.18.1 integrated in Qt 5.14.1 app.code compiles and run without error. Qt app get crash in release build. but in debug buid it show asswmbly code and hit break point in that code. after continue code app runs well.
1 ntdll!RtlRegisterSecureMemoryCacheCallback 0x7ffbd4e569ff 2 ntdll!EtwLogTraceEvent 0x7ffbd4e213b9 3 ntdll!RtlRegisterSecureMemoryCacheCallback 0x7ffbd4e54d68 4 ntdll!EtwLogTraceEvent 0x7ffbd4e0c0a0 5 ntdll!RtlGetCurrentServiceSessionId 0x7ffbd4d8c514 6 ntdll!RtlFreeHeap 0x7ffbd4d8b1e1 7 msvcrt!free 0x7ffbd406cadc 8 gst_sdp_media_get_caps_from_media gstsdpmessage.c 3723 0x6f607e42 9 gst_rtspsrc_collect_payloads gstrtspsrc.c 2144 0x2d704454 10 gst_rtspsrc_create_stream gstrtspsrc.c 2268 0x2d704454 11 gst_rtspsrc_open_from_sdp gstrtspsrc.c 7813 0x2d704454 12 gst_rtspsrc_open gstrtspsrc.c 8066 0x2d704454 13 gst_rtspsrc_ensure_open gstrtspsrc.c 8466 0x2d705cd8 14 gst_rtspsrc_play gstrtspsrc.c 8492 0x2d705e43 15 gst_rtspsrc_thread gstrtspsrc.c 9030 0x2d7084ad 16 gst_task_func gsttask.c 328 0x6dccce10 17 ?? 0x7ffb8f7f7782 18 ?? 0x7ffb8f7f6ce1 19 ?? 0x7ffb8f8252b7 20 msvcrt!_beginthreadex 0x7ffbd408e634 ... <More>I ckeck that this line at github https://github.com/GStreamer/gst-plugins-base/blob/4013b8003e78971dd01b055066c12f8aaadb8897/gst-libs/gst/sdp/gstsdpmessage.c#L3724
this happens when gstremer try to free some memory.

-
I have mingw gstreamer 1.18.1 integrated in Qt 5.14.1 app.code compiles and run without error. Qt app get crash in release build. but in debug buid it show asswmbly code and hit break point in that code. after continue code app runs well.
1 ntdll!RtlRegisterSecureMemoryCacheCallback 0x7ffbd4e569ff 2 ntdll!EtwLogTraceEvent 0x7ffbd4e213b9 3 ntdll!RtlRegisterSecureMemoryCacheCallback 0x7ffbd4e54d68 4 ntdll!EtwLogTraceEvent 0x7ffbd4e0c0a0 5 ntdll!RtlGetCurrentServiceSessionId 0x7ffbd4d8c514 6 ntdll!RtlFreeHeap 0x7ffbd4d8b1e1 7 msvcrt!free 0x7ffbd406cadc 8 gst_sdp_media_get_caps_from_media gstsdpmessage.c 3723 0x6f607e42 9 gst_rtspsrc_collect_payloads gstrtspsrc.c 2144 0x2d704454 10 gst_rtspsrc_create_stream gstrtspsrc.c 2268 0x2d704454 11 gst_rtspsrc_open_from_sdp gstrtspsrc.c 7813 0x2d704454 12 gst_rtspsrc_open gstrtspsrc.c 8066 0x2d704454 13 gst_rtspsrc_ensure_open gstrtspsrc.c 8466 0x2d705cd8 14 gst_rtspsrc_play gstrtspsrc.c 8492 0x2d705e43 15 gst_rtspsrc_thread gstrtspsrc.c 9030 0x2d7084ad 16 gst_task_func gsttask.c 328 0x6dccce10 17 ?? 0x7ffb8f7f7782 18 ?? 0x7ffb8f7f6ce1 19 ?? 0x7ffb8f8252b7 20 msvcrt!_beginthreadex 0x7ffbd408e634 ... <More>I ckeck that this line at github https://github.com/GStreamer/gst-plugins-base/blob/4013b8003e78971dd01b055066c12f8aaadb8897/gst-libs/gst/sdp/gstsdpmessage.c#L3724
this happens when gstremer try to free some memory.

Do not mix debug and release libs. Make sure the release Qt executable also links against the release gstreamer libs and the Debug executable against the debug libs.
-
Do not mix debug and release libs. Make sure the release Qt executable also links against the release gstreamer libs and the Debug executable against the debug libs.
@Christian-Ehrlicher I downloaded gstreamer from this link https://gstreamer.freedesktop.org/data/pkg/windows/1.18.1/mingw/
gstreamer-1.0-devel-mingw-x86_64-1.18.1.msi and
gstreamer-1.0-mingw-x86_64-1.18.1.msi
I have installed them both in same folder. which should I used for relese and debug? -
D DkDkDk has marked this topic as solved on