-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenGL error 0x0502 on Android Emulator #18705
Comments
fixed before 3.17 release, at #18606 |
On the latest commit (29 september 2018) and NDK 18 the issue is still exists. OpenGL error 0x0502 in ...\cocos\renderer\CCRenderer.cpp restoreRenderState 188 |
What is your cocos version? |
I've also this kind of black screen with cocos2d-x 3.17 / ndk 16b / compile & target sdk 22 / tools version 27.0.3 / Android Studio 3.2.1 - on x86 emulators and due to a ParticleSystemQuad. |
I'm getting this on a regular android test device in cpptest cocos2d-x 3.17. |
I am also seeing this in 3.17. Switching the Emulated Performance -> Graphics from "Automatic" ("Hardware - GLES 2.0") to "Software - GLES 2.0" works around this problem for me. Albeit, the performance is degraded significantly. |
I'm getting the same error repeating itself in the log when trying to use an emulator. I've only been able to create a new cocos project that works by default once.
|
same here using 3.17. dont know what the cause . try to undo, but still not fixed |
Using 3.17.2 also encounter this issue, after investigated it was caused by
Within CCParticleSystemQuad.cpp line 550 is trying to delete vertex array object which does not exist.
|
This is awesome you found the root of this. Could you work it around?
…On Fri., Sep. 27, 2019, 12:32 p.m. deflinhec, ***@***.***> wrote:
Using 3.17.2 also encounter this issue, after investigated it was caused by
OpenGL error 0x0502 in ... removeVertexArrayObject: ERROR: cannot delete
VAO 0!
Within CCParticleSystemQuad.cpp line 550, trying to delete vertex array
object before generate it.
if (_VAOname)
{
glDeleteVertexArrays(1, &_VAOname);
GL::bindVAO(0);
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#18705?email_source=notifications&email_token=AD7D3DZBFEJ4LKIRW64ZDXLQLZNTBA5CNFSM4ES3MG62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7Z4IMA#issuecomment-536069168>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD7D3D6C7KDPDDT3RQAGDUTQLZNTBANCNFSM4ES3MG6Q>
.
|
iOS
OSX
Android
|
@deflinhec thanks. |
Steps to Reproduce:
You will see a black screen and a bunch of the error below every second
02-28 15:25:19.608 18887-18932/com.guilardi.conectaletra D/cocos2d-x debug info: OpenGL error 0x0502 in /Users/deguilardi/cocosWorkspace/conecta-letra/proj.conectaletra.android-studio/app/jni/../../../../lib-cocos2d/cocos/./renderer/CCRenderer.cpp restoreRenderState 189
The text was updated successfully, but these errors were encountered: