processing / processing-android-archive

96 stars 50 forks source link

Fatal error while starting 3D sketch on Android device #65

Open RafaelNadal opened 10 years ago

RafaelNadal commented 10 years ago

I have processing 2.0.3 for win7 64bit. I can run all my 3D sketches on Samsung SIII with android 4.2.2 and 4.3.

On my HP Slate 7 HD with Android 4.2.2 I can run any non-3D sketches. HP Slate 7 HD supports OpenGL ES 1.0, 1.1, 2.0 and runs well non-Processing 3D apps.But when I start any 3D sketch (the same which run well on Samsung) I have the following error (showing up at the bottom in Processing IDE):

FATAL EXCEPTION: GLThread 873 java.lang.RuntimeException: Cannot link shader program: at processing.core.PGraphics.showException(Unknown Source) at processing.opengl.PShader.init(Unknown Source) at processing.opengl.PShader.getAttributeLoc(Unknown Source) at processing.opengl.PGraphicsOpenGL$LightShader.loadAttributes(Unknown Source) at processing.opengl.PGraphicsOpenGL$TexlightShader.loadAttributes(Unknown Source) at processing.opengl.PGraphicsOpenGL.getPolyShader(Unknown Source) at processing.opengl.PShapeOpenGL.renderPolys(Unknown Source) at processing.opengl.PShapeOpenGL.render(Unknown Source) at processing.opengl.PShapeOpenGL.draw(Unknown Source) at processing.core.PGraphics.shape(Unknown Source) at processing.core.PApplet.shape(Unknown Source) at processing.test.texture_cube.texture_cube.draw(texture_cube.java:40) at processing.core.PApplet.handleDraw(Unknown Source) at processing.opengl.PGL$AndroidRenderer.onDrawFrame(Unknown Source) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1516) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240) }

What could be the reason for that?

Thanks!

RafaelNadal commented 10 years ago

Could you please let me know if my problem was resolved (or there are any ideas what could be possible reason for this problem).