Skip to content

lame: Crash on macOS when encoding for Chromecast

Attached crash happens frequently on macOS when encoding mp3. As this is used mainly for chromecast, it seems kinda important to solve

2  libsystem_c.dylib!__assert_rtn + 0x140
    rbp = 0x000070000cdd6380   rsp = 0x000070000cdd6350
    rip = 0x00007fff7b43d868
    Found by: previous frame's frame pointer
 3  libavcodec_plugin.dylib!L3psycho_anal_vbr [psymodel.c : 576 + 0x1f]
    rbp = 0x000070000cddb9f0   rsp = 0x000070000cdd6390
    rip = 0x000000010f007617
    Found by: previous frame's frame pointer
 4  libavcodec_plugin.dylib!lame_encode_mp3_frame [encoder.c : 374 + 0x30]
    rbx = 0x0000000000000010   rbp = 0x000070000cddfa20
    rsp = 0x000070000cddba00   r12 = 0x00007fc5f5a73518
    r13 = 0x00007fc5f5a6f800   r14 = 0x0000000000000001
    r15 = 0x00007fc5f5a772c8   rip = 0x000000010eff6abf
    Found by: call frame info
 5  libavcodec_plugin.dylib!lame_encode_buffer_template [lame.c : 1793 + 0xb]
    rbx = 0x00007fc5f5a41c00   rbp = 0x000070000cddfad0
    rsp = 0x000070000cddfa30   r12 = 0x00007fc5f5a6f800
    r13 = 0x0000000000000000   r14 = 0x00007fc5f5a13600
    r15 = 0x0000000000001200   rip = 0x000000010f000038
    Found by: call frame info
 6  libavcodec_plugin.dylib!lame_encode_buffer_float [lame.c : 1925 + 0x11]
    rbx = 0x00007fc5f4ca98c0   rbp = 0x000070000cddfaf0
    rsp = 0x000070000cddfae0   r12 = 0x00007fc5f5bcda00
    r13 = 0x000070000cddfc7c   r14 = 0x00007fc5f4ca9e20
    r15 = 0x00007fc5f4ca8f80   rip = 0x000000010f000255
    Found by: call frame info
 7  libavcodec_plugin.dylib!mp3lame_encode_frame [libmp3lame.c : 216 + 0x22]
    rbx = 0x00007fc5f4ca98c0   rbp = 0x0000000000000002
    rsp = 0x000070000cddfb00   r12 = 0x00007fc5f5bcda00
    r13 = 0x000070000cddfc7c   r14 = 0x00007fc5f4ca9e20
    r15 = 0x00007fc5f4ca8f80   rip = 0x000000010e99a525
    Found by: call frame info
 8  libavcodec_plugin.dylib!avcodec_encode_audio2 [encode.c : 198 + 0x11]
    rbx = 0x00007fc5f4ca98c0   rbp = 0x000070000cddfc7c
    rsp = 0x000070000cddfb70   r12 = 0x00007fc5f4ca8f80
    r13 = 0x000070000cddfc7c   r14 = 0x0000000000000000
    r15 = 0x00007fc5f5bcda00   rip = 0x000000010e6b1c85
    Found by: call frame info
 9  libavcodec_plugin.dylib!do_encode [encode.c : 377 + 0xe]
    rbx = 0x00007fc5f5bcda00   rbp = 0x00000000ffffffdd
    rsp = 0x000070000cddfc40   r12 = 0x0000600001447aa0
    r13 = 0x0000600001447b10   r14 = 0x000070000cddfc7c
    r15 = 0x00007fc5f4ca98c0   rip = 0x000000010e6b24e2
    Found by: call frame info
10  libavcodec_plugin.dylib!avcodec_send_frame [encode.c : 423 + 0xb]
    rbx = 0x00007fc5f5bcda00   rbp = 0x00000000ffffffdd
    rsp = 0x000070000cddfc70   r12 = 0x0000600001447aa0
    r13 = 0x0000600001447b10   r14 = 0x00007fc5f4ca98c0
    r15 = 0x0000000000000000   rip = 0x000000010e6b242f
    Found by: call frame info
11  libavcodec_plugin.dylib!encode_avframe [encoder.c : 1147 + 0x8]
    rbx = 0x00007fc5f4ca98c0   rbp = 0x0000000000000000
    rsp = 0x000070000cddfca0   r12 = 0x0000600001447aa0
    r13 = 0x0000600001447b10   r14 = 0x00007fc5f4df6bb0
    r15 = 0x0000000000000000   rip = 0x000000010e39f58b
    Found by: call frame info
12  libavcodec_plugin.dylib!EncodeAudio [encoder.c : 1316 + 0xb]
    rbx = 0x0000600001447aa0   rbp = 0x0000000000000000
    rsp = 0x000070000cddfd40   r12 = 0x00007fc5f4df6bb0
    r13 = 0x0000600001447b10   r14 = 0x0000000000000004
    r15 = 0x0000000000000000   rip = 0x000000010e39f208
    Found by: call frame info
13  libstream_out_transcode_plugin.dylib!transcode_audio_process [audio.c : 395 + 0x8]
    rbx = 0x00007fc5f4d45fb0   rbp = 0x000070000cddfe10
    rsp = 0x000070000cddfda0   r12 = 0x00007fc5f4d45fc8
    r13 = 0x00007fc5f4df5cf0   r14 = 0x0000000000000000
    r15 = 0x0000000000000000   rip = 0x000000010ff9175b
    Found by: call frame info
14  libstream_out_transcode_plugin.dylib!Send [transcode.c : 600 + 0xb]
    rbx = 0x00007fc5f4d45fb0   rbp = 0x0000000000000001
    rsp = 0x000070000cddfe10   r12 = 0x0000000000000000
    r13 = 0x00007fc5f4f24570   r14 = 0x00007fc5f4d84f10
    r15 = 0x00007fc5f4da8360   rip = 0x000000010ff90c2d
    Found by: call frame info
15  libstream_out_transcode_plugin.dylib!Del [transcode.c : 561 + 0xd]
    rbx = 0x00007fc5f4d45fb0   rbp = 0x0000000000000001
    rsp = 0x000070000cddfe40   r12 = 0x0000000000000000
    r13 = 0x00007fc5f4f24570   r14 = 0x00007fc5f4d84f10
    r15 = 0x00007fc5f4da8360   rip = 0x000000010ff90b52
    Found by: call frame info
16  libstream_out_chromecast_plugin.dylib!Flush(sout_stream_t*, sout_stream_id_sys_t*) [vlc_sout.h : 233 + 0x3]
    rbx = 0x0000000000000000   rbp = 0x0000000000000001
    rsp = 0x000070000cddfe60   r12 = 0x0000000000000000
    r13 = 0x00007fc5f4f24570   r14 = 0x00007fc5f4da83e8
    r15 = 0x00007fc5f4da8360   rip = 0x000000010fd798aa
    Found by: call frame info
17  libvlccore.dylib!sout_InputFlush [vlc_sout.h : 246 + 0x2]
    rbx = 0x00007fc5f4f0ebe0   rbp = 0x0000000000000001
    rsp = 0x000070000cddfe80   r12 = 0x0000000000000000
    r13 = 0x00007fc5f4f24570   r14 = 0x00007fc5f4f0ec18
    r15 = 0x0000600002f41320   rip = 0x00000001062f8dca
    Found by: call frame info
18  libvlccore.dylib!DecoderThread [decoder.c : 1499 + 0x5]
    rbx = 0x0000000000000001   rbp = 0x0000000000000001
    rsp = 0x000070000cddfea0   r12 = 0x0000000000000000
    r13 = 0x00007fc5f4f24570   r14 = 0x00007fc5f6886800
    r15 = 0x00007fc5f6886800   rip = 0x000000010629e09e
    Found by: call frame info
19  libsystem_pthread.dylib!_pthread_body + 0x7e
    rbx = 0x000070000cde0000   rbp = 0x000070000cddff30
    rsp = 0x000070000cddff20   r12 = 0x0000000000000000
    r13 = 0x0000000000000000   r14 = 0x0000000000000000
    r15 = 0x0000000000000000   rip = 0x00007fff7b5c0305
    Found by: call frame info
20  libsystem_pthread.dylib!_pthread_start + 0x46
    rbp = 0x000070000cddff50   rsp = 0x000070000cddff40
    rip = 0x00007fff7b5c326f
    Found by: previous frame's frame pointer
21  libsystem_pthread.dylib!thread_start + 0xd
    rbp = 0x000070000cddff78   rsp = 0x000070000cddff60
    rip = 0x00007fff7b5bf415
    Found by: previous frame's frame pointer
22  libvlccore.dylib + 0x2e000
    rsp = 0x000070000cde0090   rip = 0x000000010629e000
    Found by: stack scanning

Edited by Jean-Baptiste Kempf
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information