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. Response avatar

    Resolution Note (fix version 2020.2):

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

Comments (10)

  1. 036c1d2533079eb0a92cbf3c9f1634a4?d=mm

    doubletapsoft

    Nov 05, 2020 14:43

    How do you set the audio mode to Direct?

  2. Bb885fa1f68f6928c03c31ae702d1db0?d=mm

    ualogic_

    Nov 02, 2020 13:49

    For anybody stumbling upon this thread, By the description I had exactly this issue and it was fixed in 2019.4.12 even though it is still in the "known issues" on the release notes. If anybody with 2019.4.12 and up still having it, do flag this messy bug tracking issue up on forums, or somebody from Unity.

  3. 0be17d4b4f24b638c566976626032274?d=mm

    tomthecarrot

    Oct 19, 2020 23:15

    Same here -- would like to vote on this issue. It is still occurring in our app.

  4. Bbdab65e982b68b8dc6a4206db4dfd33?d=mm

    YD_JMysior

    Oct 18, 2020 10:52

    +1. This is a big issue and the seemingly duplicate issue #1254242 does not exist in the issue tracker.
    My game shows a splash logo using the VideoPlayer component and the majority of my users we unable to launch the game at all after upgrading to iOS 14.
    Please remove the duplicate mark so we can at least vote on this issue. It's a nightmare :)

  5. Bb885fa1f68f6928c03c31ae702d1db0?d=mm

    ualogic_

    Oct 16, 2020 15:17

    Issue #1254242 does not seem to exist. Known issues in the release notes sends here. Can the status of this issue be changed?

  6. 2acff1e5571d7decb910bfe56aefa136?d=mm

    NullVarGames

    Oct 08, 2020 16:35

    This error seems to happen when running a Mac build on macOS 10.16 too.

  7. Ec7a38f69f76ad8b85f315d362103188?d=mm

    monda

    Oct 07, 2020 13:30

    I have the same problem, the official release of my client's app is now on hold because every single feature depends on VideoPlayer and AudioSources (Particles are guided by Audiosources).

    I can see that has been solved in a duplicate issue but WHERE IS THE LINK?

    I'm really struggling with this situation.

  8. C7991a2e37558f6a3d0fcf22b83b0915?d=mm

    chrbac

    Oct 02, 2020 11:07

    Experienced the same video issue in Unity 2020.1.3 with iOS 14, and switching the audio mode to Direct fixed the issue (outputting video to render texture).

    Tried to find the supposed duplicate, but sorting all issues by date and trying to find #1254242 did not work. There are no issues between 1254216 and 1254250 in the issue tracker with all filters off.

  9. 59b06fcdcecf095c2a0357b47f38349f?d=mm

    jaimebencia

    Sep 24, 2020 20:47

    The duplicate issue link looks invalid. If this particular issue is the duplicate, can anyone point me to the original? Would be much appreciated.

  10. 1866234d54a50f7ae82da78903875384?d=mm

    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.