Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by BobMitchell · Apr 11, 2014 at 06:22 AM · androidblackscreenhome button

Android - EGL_BAD_SURFACE when using home button

I have a bug that is Android specific. Multithreaded rendering is off (as that is the most common issue other threads suggest)

To reproduce the issue:

1 Load the game. Everything runs fine. Press the home button to go to the phone's main page

2 Tap on the game's icon. It highlights.

Unity takes a couple of seconds to load. During that time, hit the home button again.

3 Pause for a couple of seconds. Click on the game's icon. Result: The screen comes in black.

Question:

What might be happening? Where should I start looking? Does your game have the same issue?

Device: Nexus7 running 4.4.2

Unity: 4.3.4f1 ... using NGUI

Logcat output:

 W/Unity   ( 2708): Game.OnApplicationPause : Game.OnApplicationPause resume
 W/Unity   ( 2708):  
 W/Unity   ( 2708): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 53)
 W/Unity   ( 2708): 
 E/BufferQueue(  178): [SurfaceView] dequeueBuffer: BufferQueue has been abandoned!
 W/Adreno-EGLSUB( 2708): : dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
 W/Adreno-ES20( 2708): : GL_OUT_OF_MEMORY
 W/Adreno-EGL( 2708): : EGL_BAD_SURFACE
 E/BufferQueue(  178): [SurfaceView] dequeueBuffer: BufferQueue has been abandoned!
 W/Adreno-EGLSUB( 2708): : dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
 E/BufferQueue(  178): [SurfaceView] connect: BufferQueue has been abandoned!
 E/libEGL  ( 2708): EGLNativeWindowType 0x760b40d0 already connected to another API
 E/libEGL  ( 2708): eglCreateWindowSurface:414 error 3003 (EGL_BAD_ALLOC)
 E/Unity   ( 2708): [EGL] Failed to create surface
 E/Unity   ( 2708):  
 E/Unity   ( 2708): (Filename:  Line: 132)
 E/Unity   ( 2708): 
 E/Unity   ( 2708): [EGL] Error:: EGL_BAD_ALLOC: EGL failed to allocate resources for the requested operation.
 E/Unity   ( 2708):  
 E/Unity   ( 2708): (Filename: ./PlatformDependent/AndroidPlayer/ContextGLES.cpp Line: 132)
 E/Unity   ( 2708): 
 I/Unity   ( 2708): Skipped rendering frame because GfxDevice is in invalid state (device lost)
 I/Unity   ( 2708):  
 I/Unity   ( 2708): (Filename:  Line: 1539)
 I/Unity   ( 2708): 
 E/libEGL  ( 2708): call to OpenGL ES API with no current context (logged once per thread)
 E/BufferQueue(  178): [SurfaceView] connect: BufferQueue has been abandoned!
 E/libEGL  ( 2708): EGLNativeWindowType 0x760b40d0 already connected to another API
 E/libEGL  ( 2708): eglCreateWindowSurface:414 error 3003 (EGL_BAD_ALLOC)
 E/Unity   ( 2708): [EGL] Failed to create surface
 E/Unity   ( 2708):  
 E/Unity   ( 2708): (Filename:  Line: 132)
 
 — and that repeats until the user terminates the app
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AlexGav · Apr 24, 2014 at 10:28 AM 0
Share

I'm having the exact same problem, same reproduction steps. Also using Unity 4.3.4f1, also using NGUI (2.6.3). It seems to happen on all Android devices but the behavior is not identical. Any further input would be appreciated.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Android build - Black screen 0 Answers

How to tell if your android app has been put in the background? 1 Answer

Android App Refuses To Launch On My Phone 2 Answers

Unity crashes after splash screen on Android 0 Answers

How can I remove the Android black screen at load-after preview, before splash screen 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges