What does this error message mean, it's caused by the rokonandroid game engine

谁说胖子不能爱 提交于 2019-12-13 10:52:12

问题


I'm having problems with an app engine now that I have my whole game set up, it kind of sucks. What's this error message mean? I really don't understand what the problem is. Is the problem with one of my sprites that is causing the game engine to get mad?

12-13 12:48:15.389: ERROR/Rokon(1776):   addToActive(1505553220)
12-13 12:48:15.389: WARN/System.err(1776): java.lang.Exception:   addToActive(1505553220)
12-13 12:48:15.389: WARN/System.err(1776):     at com.stickycoding.rokon.Debug.error(Debug.java:71)
12-13 12:48:15.389: WARN/System.err(1776):     at com.stickycoding.rokon.TextureManager.addToActive(TextureManager.java:54)
12-13 12:48:15.389: WARN/System.err(1776):     at com.stickycoding.rokon.Texture.onLoadTexture(Texture.java:228)
12-13 12:48:15.389: WARN/System.err(1776):     at com.stickycoding.rokon.GLHelper.checkTextureValid(GLHelper.java:201)
12-13 12:48:15.389: WARN/System.err(1776):     at com.stickycoding.rokon.GLHelper.bindTexture(GLHelper.java:189)
12-13 12:48:15.389: WARN/System.err(1776):     at com.stickycoding.rokon.GLHelper.drawNormal(GLHelper.java:366)
12-13 12:48:15.389: WARN/System.err(1776):     at com.stickycoding.rokon.DrawableObject.onDrawNormal(DrawableObject.java:382)
12-13 12:48:15.389: WARN/System.err(1776):     at com.stickycoding.rokon.DrawableObject.onDraw(DrawableObject.java:360)
12-13 12:48:15.389: WARN/System.err(1776):     at com.stickycoding.rokon.Layer.onDraw(Layer.java:138)
12-13 12:48:15.397: WARN/System.err(1776):     at com.stickycoding.rokon.Scene.onDraw(Scene.java:934)
12-13 12:48:15.397: WARN/System.err(1776):     at com.stickycoding.rokon.RokonRenderer.onDrawFrame(RokonRenderer.java:40)
12-13 12:48:15.397: WARN/System.err(1776):     at com.stickycoding.rokon.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1112)
12-13 12:48:15.397: WARN/System.err(1776):     at com.stickycoding.rokon.GLSurfaceView$GLThread.run(GLSurfaceView.java:946)

Any input would be useful, thank you!


回答1:


I just looked at the source code, it would appear that Rokon just throws a random exception so it's kinda tricky to trace where the issue is really coming from.

I think your best bet would to be switching over to using the Java source code for the app and debugging it from there.

The most likely culprit is in TextureManager.java

Try to figure out what is the state of that texture you are trying to load/reload and it may help you.



来源:https://stackoverflow.com/questions/4433406/what-does-this-error-message-mean-its-caused-by-the-rokonandroid-game-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!