Android emulator black screen

Android emulator black screen
0.0 0

#1

Hi,
I’m trying to debug my game using the Android emulator.

But I’m getting black screen with the error:
" OpenGL error 0x0502 in renderer/CCRenderer.cpp restoreRenderState 188"

Also seeing this error on start:
" E/eglCodecCommon: removeVertexArrayObject: ERROR: cannot delete VAO 0!"

I’ve tried different OpenGL settings but none of them work, some show the black screen right on the start, some show the game and after some time the black screen is shown again.

Any workaround for this?


#2

Hi,
What is cocos2d version?


#3

The version is the latest 3.16


#4

The problem has been fixed in cocos2d-x-3.17 May.21 2018:
[FIX] Android: Emulator blank screen 0x501 and 0x502 problems
[FIX] Android: Emulator stencil fix


#5

Thanks! Those fixes solved the problem


#6

Please mark my answer as solution.