Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Updated to 2018.2 now android game crashes on load with EGL_BAD_ALLOC

Discussion in 'Android' started by JoathrentStudios, Jul 15, 2018.

  1. JoathrentStudios

    JoathrentStudios

    Joined:
    Jan 27, 2018
    Posts:
    23
    Anyone have similar issues? I am starting to diagnose now. A little frustrating that this was working fine in previous latest release of 2018.1.

    Am using GooglePlayGames and UnityAnalytics.

    Any help would be appreciated.

    07-15 08:58:28.765 21013 21033 E Unity : [EGL] Failed to create window surface: EGL_BAD_ALLOC: EGL failed to allocate resources for the requested operation.
    07-15 08:58:28.765 21013 21033 E Unity :
    07-15 08:58:28.765 21013 21033 E Unity : (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/egl/WindowContextEGL.cpp Line: 149)
    07-15 08:58:28.765 21013 21033 E Unity :
    07-15 08:58:28.765 21013 21033 I Unity : Skipped rendering frame because GfxDevice is in invalid state (device lost)
    07-15 08:58:28.765 21013 21033 I Unity :
    07-15 08:58:28.765 21013 21033 I Unity : (Filename: Line: 806)
    07-15 08:58:28.765 21013 21033 I Unity :
     
  2. JoathrentStudios

    JoathrentStudios

    Joined:
    Jan 27, 2018
    Posts:
    23
    Okay so I have figured out that the issue is related to the google play games plugin. Somehow the plugin is causing crashing of the main surface.

    This did not occur when minify was turned on (there is a conflict with google play games plugin and minify as it removes it). I then turned off minify and removed my google play games manager and the issue went away. Anyone using google play games services running 2018.2 will likely run into this issue. Be on the lookout.

    I'll move this conversation to the GitHub for the plugin.
     
  3. Yanne065

    Yanne065

    Joined:
    Feb 24, 2018
    Posts:
    175
    Same problem..But I'll try your way