Skip to content
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

Sample not working in the Emulator #5

Closed
hegazy opened this issue Dec 4, 2016 · 8 comments
Closed

Sample not working in the Emulator #5

hegazy opened this issue Dec 4, 2016 · 8 comments

Comments

@hegazy
Copy link

hegazy commented Dec 4, 2016

When I open the Sample in the Android Emulator(API 25), it displays a black screen and this error is displayed in the Run tab of the Android Studio.
distrib/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glDeleteShader:622 error 0x501
and this in logcat

  EGL_emulation  E  tid 5175: eglSurfaceAttrib(1174): error 0x3009 (EGL_BAD_MATCH)
 OpenGLRenderer  W  Failed to set EGL_SWAP_BEHAVIOR on surface 0xa13fd320, error=EGL_BAD_MATCH
       GLShader  E  Can'top compile shader for type: 35632Error: 0
                 E  Compile shader error: ERROR: 0:3: '' : No precision specified for (float)
   PageFlipView  E  Failed to run PageFlipFlipRender:onSurfaceCreated
 LoadBitmapTask  D  Load Queue:0 in background!
                 D  Load Queue:0 in background!
emuglGLESv2_enc  E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glUseProgram:1083 GL error 0x501
                 E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glVertexAttribPointer:290 GL error 0x501
                 E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glEnableVertexAttribArray:469 GL error 0x501
                 E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glVertexAttribPointer:290 GL error 0x501
                 E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glEnableVertexAttribArray:469 GL error 0x501
                 E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glUseProgram:1083 GL error 0x501
                 E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glVertexAttribPointer:290 GL error 0x501
                 E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glEnableVertexAttribArray:469 GL error 0x501
                 E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glVertexAttribPointer:290 GL error 0x501
                 E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glEnableVertexAttribArray:469 GL error 0x501
  Choreographer  I  Skipped 34 frames!  The application may be doing too much work on its main thread.
emuglGLESv2_enc  E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glUseProgram:1083 GL error 0x501
                 E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glVertexAttribPointer:290 GL error 0x501
                 E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glEnableVertexAttribArray:469 GL error 0x501
                 E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glVertexAttribPointer:290 GL error 0x501
                 E  device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glEnableVertexAttribArray:469 GL error 0x501
@eschao
Copy link
Owner

eschao commented Dec 4, 2016

Ok, from the output log, seems there is a bug in shader script, I don't know why different Android version has different rules for shader script, but anyway it is an easy problem. Let me try and will fix it ASAP.
Thanks!

@Berlin-newbee
Copy link

I met this same problem,hope you would find the exact solution as soon as possible

@eschao
Copy link
Owner

eschao commented Dec 5, 2016

@hegazy & @mcdonaldLiu:
I think I got the root cause, that is because I missed "precision mediump float;" in all of GLSL scripts which are located in project folder: res/raw. I've tested it from API 16 to API 25 and will upload it soon.
Thanks for your report!

@Berlin-newbee
Copy link

well-done, looking forwarding to your fixed verion

eschao added a commit that referenced this issue Dec 5, 2016
@eschao
Copy link
Owner

eschao commented Dec 5, 2016

@hegazy & @mcdonaldLiu:
I think I fixed the bug and updated the codes, please pull the latest codes and try.
Any problem please let me know. Thanks!

@hegazy
Copy link
Author

hegazy commented Dec 5, 2016

@eschao It's fixed now. Thanks 👍

@hegazy hegazy closed this as completed Dec 5, 2016
@arindammitra06
Copy link

I am getting this issue on s8 nougat v7

@arindammitra06
Copy link

Can you please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants