Error android.opengl.GLES20.gl:VertexAttribPointer

I just created a JMonkey project. There is only a blue cube into it. When I install in android and run It show me ones errors.

Here:

android.opengl.GLES20.glVertexAttribPointer

Exception thrown in Thread[FLThread22,5,main]:

at com.jme3.renderer.android.OGRESShaderRenderer.setVertexAttrib(2435)

at com.jme3.renderer.android.OGRESShaderRenderer.setVertexAttrib(2450)

at com.jme3.renderer.android.OGRESShaderRenderer.renderMeshDefault(2727)



and more



JMonkey an Adroid SDK Upgraded. And I’m sad! :frowning:

what device are you using? and post the “more”

:?

1 Like

a minute

wezrule


@wezrule said:
what device are you using? and post the "more"

GT-5500B

android.opengl.GLES20.glVertexAttribPointer
Exception thrown in Thread[FLThread22,5,main]:
at com.jme3.renderer.android.OGRESShaderRenderer.setVertexAttrib(2435)
at com.jme3.renderer.android.OGRESShaderRenderer.setVertexAttrib(2450)
at com.jme3.renderer.android.OGRESShaderRenderer.renderMeshDefault(2727)
at com.jme3.renderer.android.OGRESShaderRenderer.renderMesh(2778)
at com.jme3.material.Material.render(1028)
at com.jme3.renderer.RenderManager.renderGeometry(656)
at com.jme3.renderer.queue.RenderQueue.renderGeometryList(301)
at com.jme3.renderer.queue.RenderQueue.renderQueues(357)
at com.jme3.rederer.RenderManager.renderViewPort(1125)
at com.jme3.rederer.RenderManager.render(1167)
at com.jme3.app.SimpleApplicatin.update((263)
at com.jme3.system.android.OGESContext.onDrawFrame(418)
at android.opengl.GLSurfaceView$GLthread.guardedRun(1332)
at android.opengl.GLSurfaceView$GLthread.run(1116)

but in my desktop don't have error
;)

GT-5500B is not a very powerful device, the closest I could find was this:

http://www.glbenchmark.com/phonedetails.jsp?benchmark=glpro21&D=Samsung+GT-I5500+Galaxy+5&testgroup=lowlevel



Have you tried updating to the nightly SDK and your phones firmware?

1 Like

oh rly, then i don’t know

1 Like

yes. I understand you! However the jMonkeyEngine Demo at Google play run.

This make no sense. Both should did work.

thank you very much . This problem disappeared. Not yet installed the latest plugin of Android in jMonkey. Now have a new error:

“Now I lose the sense” :?

Oh. Jmonkey don`t create a Package named mobile. Insert the Android archives in Package Important.

This is the error



init:

Deleting: C:UsersPandaDocumentsjMonkeyProjectsasdfbuildbuilt-jar.properties

deps-jar:

Updating property file: C:UsersPandaDocumentsjMonkeyProjectsasdfbuildbuilt-jar.properties

compile:

Copying 1 file to C:UsersPandaDocumentsjMonkeyProjectsasdfbuild

Copy libraries to C:UsersPandaDocumentsjMonkeyProjectsasdfdistlib.

To run this application from the command line without Ant, try:

java -jar “C:UsersPandaDocumentsjMonkeyProjectsasdfdistMyGame.jar”

Copying application libraries to android project.

Deleting directory C:UsersPandaDocumentsjMonkeyProjectsasdfmobilelibs

Created dir: C:UsersPandaDocumentsjMonkeyProjectsasdfmobilelibs

Copying 15 files to C:UsersPandaDocumentsjMonkeyProjectsasdfmobilelibs

Adding libraries for android.

Copying 3 files to C:UsersPandaDocumentsjMonkeyProjectsasdfmobilelibs

Replacing bullet library with android native version.

Expanding: C:UsersPandaDocumentsjMonkeyProjectsasdfmobilelibsjME3-bullet-natives-android.jar into C:UsersPandaDocumentsjMonkeyProjectsasdfmobilelibs

Deleting: C:UsersPandaDocumentsjMonkeyProjectsasdfmobilelibsjME3-bullet-natives-android.jar

Deleting directory C:UsersPandaDocumentsjMonkeyProjectsasdfmobilelibsx86

Copying 1 file to C:UsersPandaDocumentsjMonkeyProjectsasdfmobilelibs

jar:

run-android:

Building debug android application version.

Android SDK Tools Revision 20.0.3

Installed at D:android-sdk

Project Name: MyGame

Project Type: Application

C:UsersPandaDocumentsjMonkeyProjectsasdfnbprojectmobile-impl.xml:10: The following error occurred while executing this line:

D:android-sdktoolsantbuild.xml:411:

java.io.FileNotFoundException: C:UsersPandaDocumentsjMonkeyProjectsasdfmobileMANIFEST.MF (O sistema não pode encontrar o arquivo especificado)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.(FileInputStream.java:138)

at java.io.FileInputStream.(FileInputStream.java:97)

at com.android.ant.XPathTask.execute(XPathTask.java:78)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

at org.apache.tools.ant.Task.perform(Task.java:348)

at org.apache.tools.ant.Target.execute(Target.java:390)

at org.apache.tools.ant.Target.performTasks(Target.java:411)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)

at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)

at org.apache.tools.ant.Project.executeTargets(Project.java:1251)

at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)

at org.apache.tools.ant.Task.perform(Task.java:348)

at org.apache.tools.ant.Target.execute(Target.java:390)

at org.apache.tools.ant.Target.performTasks(Target.java:411)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)

at org.apache.tools.ant.Project.executeTarget(Project.java:1368)

at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)

at org.apache.tools.ant.Project.executeTargets(Project.java:1251)

at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)

at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)

at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)

my sample code:



[java]package mygame;



import com.jme3.app.SimpleApplication;

import com.jme3.material.Material;

import com.jme3.math.ColorRGBA;

import com.jme3.math.Vector3f;

import com.jme3.renderer.RenderManager;

import com.jme3.scene.Geometry;

import com.jme3.scene.shape.Box;



/**

  • test
  • @author normenhansen

    */

    public class Main extends SimpleApplication {



    public static void main(String[] args) {

    Main app = new Main();

    app.start();

    }



    @Override

    public void simpleInitApp() {

    Box b = new Box(Vector3f.ZERO, 1, 1, 1);

    Geometry geom = new Geometry("Box", b);



    Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");

    mat.setColor("Color", ColorRGBA.Blue);

    geom.setMaterial(mat);



    rootNode.attachChild(geom);

    }



    @Override

    public void simpleUpdate(float tpf) {

    //TODO: add update code

    }



    @Override

    public void simpleRender(RenderManager rm) {

    //TODO: add render code

    }

    }

    [/java]

this should help:

http://hub.jmonkeyengine.org/groups/android/forum/topic/issues-building-with-android-sdk-rev-20

1 Like