gstreamer started crashing on macos after upgrade to the recent 1.22.9

Tomasz Mikolajczyk tmmikolajczyk at gmail.com
Thu Feb 1 21:16:15 UTC 2024


It looks like the
https://github.com/GStreamer/gst-docs/blob/master/examples/tutorials/basic-tutorial-2.c
example code crashes as well:

clang basic-tutorial-2.c $(pkg-config --libs --cflags gstreamer-1.0)
--debug  -g0 -glldb
lldb ./a.out
(lldb) target create "./a.out"
Current executable set to './a.out' (arm64).
(lldb) r
Process 21815 launched: './a.out' (arm64)
Process 21815 stopped
* thread #8, name = 'source:src', stop reason = EXC_BAD_ACCESS (code=2,
address=0x103d9c000)
    frame #0: 0x000000018bd6d6f8 libsystem_platform.dylib`_platform_memmove
+ 168
libsystem_platform.dylib`:
->  0x18bd6d6f8 <+168>: stp    q2, q3, [x0]
    0x18bd6d6fc <+172>: subs   x2, x2, #0x40
    0x18bd6d700 <+176>: b.ls   0x18bd6d71c               ; <+204>
    0x18bd6d704 <+180>: stp    q0, q1, [x3]
Target 0: (a.out) stopped.
(lldb) bt
* thread #8, name = 'source:src', stop reason = EXC_BAD_ACCESS (code=2,
address=0x103d9c000)
  * frame #0: 0x000000018bd6d6f8 libsystem_platform.dylib`_platform_memmove
+ 168
    frame #1: 0x0000000100253f2c
liborc-0.4.0.dylib`orc_program_compile_full + 4192
    frame #2: 0x00000001000385e4
libgstvideotestsrc.dylib`video_test_src_orc_splat_u32 + 188
    frame #3: 0x000000010003ab08
libgstvideotestsrc.dylib`gst_video_test_src_smpte + 240
    frame #4: 0x000000010003a920 libgstvideotestsrc.dylib`fill_image + 112
    frame #5: 0x000000010003a400
libgstvideotestsrc.dylib`gst_video_test_src_fill + 160
    frame #6: 0x0000000100207c00
libgstbase-1.0.0.dylib`gst_base_src_default_create + 128
    frame #7: 0x00000001002093ec
libgstbase-1.0.0.dylib`gst_base_src_get_range + 264
    frame #8: 0x0000000100208cbc libgstbase-1.0.0.dylib`gst_base_src_loop +
1068
    frame #9: 0x0000000100607478 libgstreamer-1.0.0.dylib`gst_task_func +
284
    frame #10: 0x000000010082ce78
libglib-2.0.0.dylib`g_thread_pool_thread_proxy + 208
    frame #11: 0x000000010082bdd4 libglib-2.0.0.dylib`g_thread_proxy + 68
    frame #12: 0x000000018bd3e034 libsystem_pthread.dylib`_pthread_start +
136
(lldb)

On Thu, Feb 1, 2024 at 3:49 PM Tomasz Mikolajczyk <tmmikolajczyk at gmail.com>
wrote:

> Hi,
>
> Unfortunately discourse seems to be down so I'm writing it here. The
> simple pipeline I was using successfully before started to crash after the
> gstreamer upgrade on MacOS to the 1.22.9 version (I was using 1.22.8
> before). The 1.22.9 is very new (according to brew, it has been generated
> today). The stack trace I get is:
>
> * thread #30, name = 'audio_hls_branch_input_queue:src', stop reason =
> EXC_BAD_ACCESS (code=2, address=0x100d00000)
>     frame #0: 0x000000018bd6d6f8
> libsystem_platform.dylib`_platform_memmove + 168
> libsystem_platform.dylib`:
> ->  0x18bd6d6f8 <+168>: stp    q2, q3, [x0]
>     0x18bd6d6fc <+172>: subs   x2, x2, #0x40
>     0x18bd6d700 <+176>: b.ls   0x18bd6d71c               ; <+204>
>     0x18bd6d704 <+180>: stp    q0, q1, [x3]
> Target 0: (mmhmm-video-segmentor-tests) stopped.
> (lldb) bt
> * thread #30, name = 'audio_hls_branch_input_queue:src', stop reason =
> EXC_BAD_ACCESS (code=2, address=0x100d00000)
>   * frame #0: 0x000000018bd6d6f8
> libsystem_platform.dylib`_platform_memmove + 168
>     frame #1: 0x0000000101677f2c
> liborc-0.4.0.dylib`orc_program_compile_full + 4192
>     frame #2: 0x000000010115ffd0
> libgstaudio-1.0.0.dylib`audio_orc_unpack_s16_trunc + 188
>     frame #3: 0x0000000101168cd0 libgstaudio-1.0.0.dylib`do_unpack + 420
>     frame #4: 0x0000000101168ea0 libgstaudio-1.0.0.dylib`do_convert_in + 56
>     frame #5: 0x0000000101168314 libgstaudio-1.0.0.dylib`converter_generic
> + 80
>     frame #6: 0x0000000100c82a40
> libgstaudioconvert.dylib`gst_audio_convert_transform + 360
>     frame #7: 0x0000000101207f10
> libgstbase-1.0.0.dylib`default_generate_output + 568
>     frame #8: 0x000000010120ca94
> libgstbase-1.0.0.dylib`gst_base_transform_chain + 304
>     frame #9: 0x00000001013ce2d4
> libgstreamer-1.0.0.dylib`gst_pad_chain_data_unchecked + 500
>     frame #10: 0x00000001013cee9c
> libgstreamer-1.0.0.dylib`gst_pad_push_data + 212
>     frame #11: 0x00000001013cecf0 libgstreamer-1.0.0.dylib`gst_pad_push +
> 288
>     frame #12: 0x0000000100b6aca4
> libgstaudiorate.dylib`gst_audio_rate_chain + 1460
>     frame #13: 0x00000001013ce2d4
> libgstreamer-1.0.0.dylib`gst_pad_chain_data_unchecked + 500
>     frame #14: 0x00000001013cee9c
> libgstreamer-1.0.0.dylib`gst_pad_push_data + 212
>     frame #15: 0x00000001013cecf0 libgstreamer-1.0.0.dylib`gst_pad_push +
> 288
>     frame #16: 0x000000010120cb5c
> libgstbase-1.0.0.dylib`gst_base_transform_chain + 504
>     frame #17: 0x00000001013ce2d4
> libgstreamer-1.0.0.dylib`gst_pad_chain_data_unchecked + 500
>     frame #18: 0x00000001013cee9c
> libgstreamer-1.0.0.dylib`gst_pad_push_data + 212
>     frame #19: 0x00000001013cecf0 libgstreamer-1.0.0.dylib`gst_pad_push +
> 288
>     frame #20: 0x0000000100c45b10 libgstcoreelements.dylib`gst_queue_loop
> + 1292
>     frame #21: 0x00000001013ff478 libgstreamer-1.0.0.dylib`gst_task_func +
> 284
>     frame #22: 0x00000001014fce78
> libglib-2.0.0.dylib`g_thread_pool_thread_proxy + 208
>     frame #23: 0x00000001014fbdd4 libglib-2.0.0.dylib`g_thread_proxy + 68
>     frame #24: 0x000000018bd3e034 libsystem_pthread.dylib`_pthread_start +
> 136
> (lldb)
>
> I can produce MRE if needed. I'm not saying that the problem is not inside
> my code but it is generally suspicious. Is someone aware of that problem
> already?
>
> brew info orc
> ==> orc: stable 0.4.36 (bottled)
> Oil Runtime Compiler (ORC)
> https://gstreamer.freedesktop.org/projects/orc.html
> /opt/homebrew/Cellar/orc/0.4.36 (51 files, 1.1MB) *
>   Poured from bottle using the formulae.brew.sh API on 2024-02-01 at
> 15:26:11
> From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/o/orc.rb
>
>
> brew info gstreamer
> ==> gstreamer: stable 1.22.9 (bottled), HEAD
> Development framework for multimedia applications
> https://gstreamer.freedesktop.org/
> /opt/homebrew/Cellar/gstreamer/1.22.9 (1,269 files, 122.1MB) *
>   Poured from bottle using the formulae.brew.sh API on 2024-02-01 at
> 15:00:20
> From:
> https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/g/gstreamer.rb
>
> Regards,
> Tomek
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20240201/49fd66ff/attachment-0001.htm>


More information about the gstreamer-devel mailing list