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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unable to acquire context (started with 5.1.2p3)

Discussion in 'Android' started by liortal, Sep 30, 2015.

  1. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,559
    Hey,

    We just released a new version of our game using 5.1.2p3 (previously we used an earlier version - 5.0.3).

    Using this Unity version we experience EGL errors that we haven't seen before, all with the message: "Unable to acquire context" (but with a different reason).

    For example:

    EGL_BAD_NATIVE_WINDOW
    EGL_BAD_SURFACE
    EGL_BAD_PARAMETER
    EGL_BAD_ALLOC

    None of these were experienced before this version.

    Is this a known issue ? it occurs on a range of different devices and OS versions. I have no idea what may be causing it (we could not reproduce it here during our testing).
     
  2. bitter

    bitter

    Unity Technologies

    Joined:
    Jan 11, 2012
    Posts:
    530
    We did fix some of those issues in later versions of Unity. But if you know some of the devices where it breaks it would be nice to get a bugreport so we can confirm it's actually fixed.

    Unity 5.1 had a pretty massive overhaul for the graphics implementation.
     
  3. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,559
    Thanks for the confirmation, here's the devices i know of that experience these issues (sorry but this is the format we get in our reporting system). BTW: which version should fix some of these ?

    LGE LG-E460
    LGE LG-E455
    LGE LG-E4

    Android versions:
    4.1.1
    4.1.2
    KitKat 4.4

    samsung GT-I8190
    75%
    samsung GT-I8190N
    21%
    samsung GT-S7710

    Android: 4.1.2

    samsung SM-G900F
    25%
    samsung GT-I9505
    17%
    LGE LG-D41

    4.4.2
    40%
    4.4.4
    20%
    5.0

    samsung GT-I9195I
    19%
    samsung SM-E500H
    19%
    samsung GT-I9192I

    4.4.4

    Hope this helps..
     
  4. poolts

    poolts

    Joined:
    Aug 9, 2012
    Posts:
    113
    [EGL] Unable to acquire context: EGL_BAD_NATIVE_WINDOW: A NativeWindowType argument does not refer to a valid native window.

    I've started to see the following when moving to Unity 5.2.1f1.

    I've included our device and OS lists the crash has occurred on.

    DevicesCrash.png OSCrash.png