Hi,
I am experiencing the following crash when using MobileVLCKit framework. The app is running in a iPad Mini and has multiple videos playing in parallel (app name was removed):
Thread 60 Crashed:
0 libsystem_kernel.dylib 0x3b05d1f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x3b0c7792 pthread_kill + 54
2 libsystem_c.dylib 0x3b00dfd8 abort + 72
3 libsystem_malloc.dylib 0x3b085d62 free + 378
4 Remo Mobile 0x001765f4 av_freep (mem.c:194)
5 Remo Mobile 0x00223006 ff_h264_free_tables (h264.c:349)
6 Remo Mobile 0x002257b8 flush_dpb (h264.c:1099)
7 Remo Mobile 0x00341d0c ff_thread_flush (pthread_frame.c:685)
8 Remo Mobile 0x0038cf7e avcodec_flush_buffers + 18
9 Remo Mobile 0x008aa806 DecodeVideo (video.c:478)
10 Remo Mobile 0x0083f426 DecoderDecodeVideo (decoder.c:1384)
11 Remo Mobile 0x0083eaec DecoderProcessVideo (decoder.c:1625)
12 Remo Mobile 0x0083e70c DecoderProcess (decoder.c:1809)
13 Remo Mobile 0x0083e564 DecoderThread (decoder.c:909)
14 libsystem_pthread.dylib 0x3b0c6916 _pthread_body + 138
15 libsystem_pthread.dylib 0x3b0c6886 _pthread_start + 98
16 libsystem_pthread.dylib 0x3b0c4aa0 thread_start + 4
The console log is:
[168fdc74] core video output warning: picture is late (-1954 ms)
StreamRead size=7853 pts=1410824252935929
StreamRead size=8074 pts=1410824253002562
Remo Mobile(919,0x92fd000) malloc: *** mach_vm_map(size=937984) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
[16142474] avcodec decoder warning: cannot decode one frame (14013 bytes)
Remo Mobile(919,0x92fd000) malloc: *** mach_vm_map(size=937984) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Remo Mobile(919,0x92fd000) malloc: *** error for object 0x4e94000: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
I've set 4 threads for decoding.
Thank you for the help.