[vlc-devel] VLCKit for iOS/AppleTV Crash

epirat07 at gmail.com epirat07 at gmail.com
Wed Jul 3 13:32:35 UTC 2024



On 2 Jul 2024, at 16:05, Milos Jakovljevic wrote:

> Hey,
>
> I'm trying to post the issue on GitLab but cannot do it because account
> needs admin approval, anyway i'm having an issue with latest VLCKIt
> (4.0.0a5) on iOS and tvOS, its crashing occasionally and i'm trying to
> figure out what the problem is, here is the stacktrace
>
> Fatal Exception: NSInvalidArgumentException
> *** -[AVSampleBufferAudioRenderer enqueueSampleBuffer:] invalid parameter
> not satisfying: sampleBuffer != NULL
>
> Fatal Exception: NSInvalidArgumentException
> 0  CoreFoundation                 0x83f20 __exceptionPreprocess
> 1  libobjc.A.dylib                0x16018 objc_exception_throw
> 2  AVFCore                        0xe5ff0 -[AVSampleBufferAudioRenderer
> flush]
> 3  VLCKit                         0x46a98 -[VLCAVSample whenDataReady] +
> 256 (avsamplebuffer.m:256)
> 4  VLCKit                         0x46e80 __25-[VLCAVSample
> play:date:]_block_invoke + 270 (avsamplebuffer.m:270)
> 5  AVFCore                        0xee8cc -[AVMediaDataRequester
> _requestMediaDataIfReady]
> 6  libdispatch.dylib              0x213c _dispatch_call_block_and_release
> 7  libdispatch.dylib              0x3dd4 _dispatch_client_callout
> 8  libdispatch.dylib              0xb400 _dispatch_lane_serial_drain
> 9  libdispatch.dylib              0xbf30 _dispatch_lane_invoke
> 10 libdispatch.dylib              0x16cb4
> _dispatch_root_queue_drain_deferred_wlh
> 11 libdispatch.dylib              0x16528 _dispatch_workloop_worker_thread
> 12 libsystem_pthread.dylib        0x4934 _pthread_wqthread
> 13 libsystem_pthread.dylib        0x10cc start_wqthread
>
> I'm not able to reproduce this issue but the app is collecting logs to
> Crashlytics and this is what is gathered, there is also a log message that
> is caught:
>
> CMBlockBufferRef creation failure -12704
>

This sounds like a bug with regards to error handling in the new AVSampleBuffer
Audio renderer module. We get an empty buffer and try to enqueue that.

(For reference, the CMBlockBufferRef error above is kCMBlockBufferBadLengthParameterErr)

> Any advice or help would be appreciated,
> Thanks,
> Milos
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list