[vlc-devel] VLCKit for iOS/AppleTV Crash

Thomas Guillem tguillem at videolan.org
Thu Jul 4 08:36:11 UTC 2024


Hello,

Thanks for the report, this issues has just been fixed here: https://code.videolan.org/videolan/vlc/-/merge_requests/5672

Best,
Thomas

On Wed, Jul 3, 2024, at 15:32, epirat07 at gmail.com wrote:
> 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
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

--
Thomas Guillem
http://www.videolan.org


More information about the vlc-devel mailing list