Search Issue Tracker

Fixed in 2020.2.X

Fixed in 2019.4.X, 2020.1.X

Votes

0

Found in

2019.2.0a7

2019.4

2019.4.7f1

2020.1

2020.2

Issue ID

1274837

Regression

Yes

[iOS 14] VideoPlayer crashes on EXC_BAD_ACCESS or signal SIGABRT when audioOutputMode is set to APIOnly or Audio Source

iOS

-

[iOS 14] VideoPlayer crashes on EXC_BAD_ACCESS or signal SIGABRT when audioOutputMode is set to APIOnly/Audio Source or Render Mode is set to Render Texture/Material Override

How to reproduce:
1. Open the attached 'VideoPlayer.zip' project
2. Build for iOS and open the Xcode project
3. Deploy Xcode project to an iOS device
4. Click on the 'Click meee!' button
5. Wait until the end of the video
6. Replay the video until the VideoPlayer crashes

Reproducible with: 2019.2.0a7, 2019.4.10f1, 2020.1.6f1, 2020.2.0b3
Not reproducible: 2018.4.27f1, 2019.2.0a6

Reproducible with:
iPad 9.7" 6th gen (iOS 14.0b7)

Not reproducible with:
iPhone 8+ (iOS 12.0)
iPhone XR (iOS 13.4.1)
iPhone 11 (iOS 13.5)
VLNQA00013, Samsung Galaxy S6 edge+ (SM-G928F), Android 7.0, CPU: Exynos 7 Octa 7420, GPU: Mali-T760
VLNQA00001, Google Pixel 2 (Pixel 2), Android 11, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540
VLNQA00078, Motorola Nexus 6 (Nexus 6), Android 7.1.1, CPU: Snapdragon 805 APQ8084AB, GPU: Adreno (TM) 420
----------, Huawei HUAWEI Mate 20 Pro (LYA-L29), Android 9, CPU: HiSilicon Kirin 980, GPU: Mali-G76
VLNQA00317, Vivo V1924A (V1924A), Android 10, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00294, Oppo Reno Z 中国版 (PCDM10), Android 9, CPU: Mediatek MT6779 Helio P90, GPU: PowerVR Rogue GM9446
Mac Standalone

Notes:
1. Crash logs are attached in Edit
2. Reproduction is not consistent, in order to reproduce the issue replay the video until crash occurs
3. Errors when Video Player crashes: Thread 42: signal SIGABRT or Thread 4: EXC_BAD_ACCESS
4. From 2020.2.0a14 to 2020.2.0b3 video is invisible, audio is on
5. When crashes on 'Thread 42: signal SIGABRT' error is thrown '*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[OS_xpc_string UpdateQueueAdd:]: unrecognized selector sent to instance 0x282842340'
*** First throw call stack:
(0x1b33b2114 0x1c6b68cb4 0x1b32c29b8 0x1b33b4758 0x1b33b66cc 0x105e40288 0x1bb65ba44 0x1bb65b82c 0x1bbb095f0 0x1b2fea298 0x1b2feb280 0x1b2f93fa8 0x1b2f94a84 0x1b2f9e518 0x1f7d8c5a4 0x1f7d8f874)
libc++abi.dylib: terminating with uncaught exception of type NSException'
6. Not reproducible when Render Mode is set to Camera Far Plane, Camera Near Plane (With Audio Output Mode: Direct); Reproducible when Render Mode is set to Render Texture, Material Override (With Audio Output Mode: Direct)
7. Not reproducible when Audio Output Mode is set to Direct(with Render Mode: RT); Reproducible when Audio Output Mode is set to API Only, AudioSource (with Render Mode: RT)
8. A possibly related problem is that even when APIOnly is used for audio output, the buffer size in iOS audio session is reset to 1024

  1. Resolution Note (fix version 2020.2):

    Fixed situations where audio from a movie file being cleaned up without having started to play.

Comments (11)

  1. BjoUnity3d

    Sep 17, 2020 23:11

    Experiencing this on 2019.4.7 and 2019.4.10 - Video Player set to camera near plane / audio mode: Audio Source. Crashes on iOS 14 after playing my app's splash video. I set the audio mode to Direct and the crashes stopped.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.