-
Notifications
You must be signed in to change notification settings - Fork 303
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
Fatal Exception: Error loading texture #3
Comments
It occurs when texture can't be generated because of a trashed OpenGL context. One way it can happen when |
ok. I will add some code. and I will add if(tiles_frame!=null){
try {
tiles_frame.startAnimation();
}catch(Exception e){
finish();
overridePendingTransition(0, 0);
}
} |
I'm working on taking this library and integrating a plugin for NativeScript and I get the same error when I call |
@bradmartin the only was I can reproduce it if I comment out |
@bradmartin the only way I can reproduce it if I comment out |
@mlatu - I've called onResume() and everything seems fine. Can any view be in the layout? I think the bitmap is not being passed correctly to the TextureHelper which is where the |
@bradmartin Yes, any view can be in the layout. If there are several views - just wrap it in any Exception at line 53 is thrown if
just before the I would do that but I don't have your setup |
Working on adding this, android/java are not my specialites so I'm having a time including a forked repo into my project. If I knew the correct way to create a .jar file for this library then I could figure it out but for some reason my .jar files I generate aren't working correctly. |
Hello @bradmartin ,so does this worked for you ? |
I got error report from this library.
how can I fix or check code?
is this bug?
I thik this error is not appear all time.
some device occur error
Fatal Exception: java.lang.RuntimeException: Error loading texture.
at com.yalantis.starwars.utils.gl.TextureHelper.loadTexture(TextureHelper.java:53)
at com.yalantis.starwars.render.StarWarsRenderer$2.run(StarWarsRenderer.java:290)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1471)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1248)
The text was updated successfully, but these errors were encountered: