Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Android Crash on gameObject.setActive(false) on VideoPlayer with URL

Discussion in 'Audio & Video' started by alphagate_kfe, Dec 20, 2022.

  1. alphagate_kfe

    alphagate_kfe

    Joined:
    Jan 28, 2019
    Posts:
    4
    I got Scene with a Cube which has a VideoPlayer component on it. When i try to deactivate the Cube with setActive(false) the Android App will crash with the following error message.

    Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    Error CRASH Version '2019.4.40f1 (ffc62b691db5)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
    Error CRASH Build fingerprint: 'samsung/gts7fewifieea/gts7fewifi:12/SP2A.220305.013/T733XXS1BVJ2:user/release-keys'
    Error CRASH Revision: '2'
    Error CRASH ABI: 'arm64'
    Error CRASH Timestamp: 2022-12-20 11:18:40+0100
    Error CRASH pid: 20343, tid: 20482, name: Background Job. >>> com.test.VideoPlayer <<<
    Error CRASH uid: 10340
    Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    Error CRASH Cause: null pointer dereference

    xxx
    Error CRASH backtrace:
    Error CRASH #00 pc 00000000000be498 /system/lib64/libandroid_runtime.so (BuildId: de689215ce44ebdf9ee01d06f9791a40)
    Error CRASH other thread is trapped; signum = 11



    I Tested this with Unity2019.4.40f1 and also with 2020.3.43f1 with the same result.
    Also the same code is Working in the UnityEditor, IOS and UWP (Hololens 2).


    upload_2022-12-20_12-39-12.png
    I used a video streaming sample url for testing
    https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4

    Does anyone know this Problem or have any input that might help to solve the problem.

    Thanks.
     

    Attached Files:

  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,992
    no ideas, but could try calling Stop on the videoplayer first, to see if any difference?
     
  3. alphagate_kfe

    alphagate_kfe

    Joined:
    Jan 28, 2019
    Posts:
    4
    I already tried it with Stop and Pause before i setActive(false). I Also tried to run it in a Coroutine and waitForTheEndOfFrame.
     
  4. notrealdotmp4

    notrealdotmp4

    Joined:
    Oct 11, 2019
    Posts:
    4
    Hey I've been having this issue for the past 2 months now and the only thing i managed to do so that it would work is to upgrade unity to 2022.
     
    alphagate_kfe likes this.
  5. The_Island

    The_Island

    Unity Technologies

    Joined:
    Jun 1, 2021
    Posts:
    502
    alphagate_kfe likes this.