Search Unity

Bug [EGL] Unable to acquire context: EGL_BAD_NATIVE_WINDOW

Discussion in 'Android' started by -chris, Nov 23, 2022.

  1. -chris

    -chris

    Joined:
    Mar 1, 2012
    Posts:
    99
    Hello Unity,

    Some of my Android customers are experiencing crashes related to OpenGL

    User will minimise my app, then open my app again later, and the window crashes.

    The error is:
    Engine: Unity 2021.3.10f1

    Game is using OpenGL ES 3.0.

    I'm unable to reproduce this.

    From my customer log files, here are the different devices this is erroring on:

    samsung SM-A505W
    Android OS 11 / API-30 (RP1A.200720.012/A505WVLSJDVI1)

    samsung SM-G998B
    Android OS 12 / API-31 (SP1A.210812.016/G998BXXU5CVF2)

    HUAWEI HLK-AL00
    Android OS 10 / API-29 (HONORHLK-AL00/102.0.0.270C00)

    Xiaomi MI PLAY
    Android OS 8.1.0 / API-27 (O11019/V11.0.10.0.OFIMIXM)

    motorola Moto E (4) Plus
    Android OS 7.1.1 / API-25 (NMA26.42-169/300)

    HUAWEI JAT-LX3
    Android OS 9 / API-28 (HUAWEIJAT-LX3/9.1.0.331C636)

    motorola moto e(6) plus
    Android OS 9 / API-28 (PTBS29.401-58-8/58-8)

    #########################

    Looks like there's an old issue on the Unity Issue Tracker from Unity 5.4: [Android] Error when coming back from background EGL_BAD_NATIVE_WINDOW on some devices

    Could this please be investigated and fixed again?
     
  2. -chris

    -chris

    Joined:
    Mar 1, 2012
    Posts:
    99
    Bump. Anyone? Unity?

    I don't think submitting a bug report from the Unity Editor to submit to Unity QA is going to get anywhere since I can't repro this.

    This is still coming in daily from many different devices.

    Errors after users switch apps and return to the app.
     
  3. alokk_unity

    alokk_unity

    Joined:
    Apr 19, 2021
    Posts:
    1
    facing the same in production 100k instances per day. Any updates on this? Unity 2020.3.25f1
     
  4. YichenYu525

    YichenYu525

    Joined:
    Dec 8, 2020
    Posts:
    11
    also get this bug on 2021.3.9f1
     
  5. alexey_bah

    alexey_bah

    Joined:
    Jul 31, 2018
    Posts:
    1
    we also have this problem. Unity version is 2021.3.8f1