Crash when finishing audio-only playback from VLCMedia(stream: InputStream(data:data))
MobileVLCKit 3.3.17, simulator.
Swift code:
self.audioPlayer = VLCMediaPlayer()
self.audioPlayer!.media = VLCMedia(stream: InputStream(data: data))
self.audioPlayer!.delegate = self
self.audioPlayer!.play()
The data
is a Data object with WebM audio generated from Chrome (such audio has no valid duration). The audio plays correctly to the end, then it loops the last ~300 ms 3-4 times and crashes with Thread 19: EXC_BAD_ACCESS (code=1, address=0xd1905c83c50)
:
MobileVLCKit`close_cb:
0x107058498 <+0>: stp x20, x19, [sp, #-0x20]!
0x10705849c <+4>: stp x29, x30, [sp, #0x10]
0x1070584a0 <+8>: add x29, sp, #0x10
0x1070584a4 <+12>: bl 0x10850e2f4 ; symbol stub for: objc_retain
-> 0x1070584a8 <+16>: mov x19, x0
0x1070584ac <+20>: cbz x0, 0x1070584ec ; <+84> at VLCMedia.m:115:1
Stacktrace:
#0 0x0000000102037f30 in objc_retain ()
#1 0x00000001070584a8 in close_cb at /Users/fkuehne/videolan/gits/VLCKit/Sources/VLCMedia.m:110
#2 0x0000000107088af8 in generic_stop ()
#3 0x0000000107088994 in vlc_module_unload ()
#4 0x0000000107088ab0 in module_unneed ()
#5 0x0000000107095bd0 in vlc_access_Destroy ()
#6 0x00000001070ae34c in vlc_stream_Delete ()
#7 0x00000001070ae34c in vlc_stream_Delete ()
#8 0x00000001070ae34c in vlc_stream_Delete ()
#9 0x00000001070ae34c in vlc_stream_Delete ()
#10 0x000000010709b8f4 in demux_Delete ()
#11 0x00000001070a81f4 in End ()
#12 0x00000001070a8614 in Run ()
#13 0x000000010a77f6c8 in _pthread_start ()