Unity Issue Tracker - Crash on "libsystem_kernel.dylib`__pthread_kill" when playing multiple videos
Fixed
UUM-73043
Crash on "libsystem_kernel.dylib`__pthread_kill" when playing multiple videos
Unity: Video
iOS
Fixed
6.0.X
2022.3.X
Improved error management to handle better situations where more videos are played than is supported by the specific device. Now, the error is reported both in the log and also via the VideoPlayer.errorReceived event.
How to reproduce
1. Open the attached Project "video_crash_sample.zip"
2. Build and Run the Scene "SampleScene" on an iOS device
3. Wait for ~10sec
Reproducible with: 2022.3.31f1, 6000.0.4f1
Not reproducible with: 2021.3.39f1
Reproduced on:
iPhone 13 Pro (iOS 16.6.1)
iPad 6th Gen (iOS 17.2)
Not reproducible with:
iPhone 7 Plus (iOS 14.6) (Errors are thrown stating failure to decode due to busy decoder)
iPhone 13 (iOS 15.0) (Errors are thrown stating failure to decode due to busy decoder)
iPad Pro (9.7 inch, WiFi) (iOS 14.8) (Errors are thrown stating failure to decode due to busy decoder, however, the App was killed due to high memory usage)
First lines of the stack trace:
thread #17, name = 'Job.Worker 3', stop reason = signal SIGABRT
An Error is thrown as the crash occurs: "Uncaught exception: NSInvalidArgumentException: *** -[AVAssetReaderTrackOutput initWithTrack:outputSettings:] invalid parameter not satisfying: track != nil"
Prioritise and Follow this issue
Have a workaround or additional info about this issue?