I’ve been making a game using the rokonandroid game engine, but I randomly get an error that causes the layout to just stay as it is, and never update.
The following error occurs:
12-13 15:05:17.876: ERROR/Rokon(2798): addToActive(229433297)
12-13 15:05:17.876: WARN/System.err(2798): java.lang.Exception: addToActive(229433297)
12-13 15:05:17.876: WARN/System.err(2798): at com.stickycoding.rokon.Debug.error(Debug.java:71)
12-13 15:05:17.876: WARN/System.err(2798): at com.stickycoding.rokon.TextureManager.addToActive(TextureManager.java:54)
12-13 15:05:17.876: WARN/System.err(2798): at com.stickycoding.rokon.Texture.onLoadTexture(Texture.java:228)
12-13 15:05:17.876: WARN/System.err(2798): at com.stickycoding.rokon.GLHelper.checkTextureValid(GLHelper.java:201)
12-13 15:05:17.876: WARN/System.err(2798): at com.stickycoding.rokon.GLHelper.bindTexture(GLHelper.java:189)
12-13 15:05:17.876: WARN/System.err(2798): at com.stickycoding.rokon.GLHelper.drawNormal(GLHelper.java:366)
12-13 15:05:17.876: WARN/System.err(2798): at com.stickycoding.rokon.DrawableObject.onDrawNormal(DrawableObject.java:382)
12-13 15:05:17.876: WARN/System.err(2798): at com.stickycoding.rokon.DrawableObject.onDraw(DrawableObject.java:360)
12-13 15:05:17.884: WARN/System.err(2798): at com.stickycoding.rokon.Layer.onDraw(Layer.java:138)
12-13 15:05:17.884: WARN/System.err(2798): at com.stickycoding.rokon.Scene.onDraw(Scene.java:934)
12-13 15:05:17.884: WARN/System.err(2798): at com.stickycoding.rokon.RokonRenderer.onDrawFrame(RokonRenderer.java:40)
12-13 15:05:17.884: WARN/System.err(2798): at com.stickycoding.rokon.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1112)
12-13 15:05:17.884: WARN/System.err(2798): at com.stickycoding.rokon.GLSurfaceView$GLThread.run(GLSurfaceView.java:946)
What causes this error? Anybody know of how to fix this error? And is it possible that my textures are causing this problem?
Do your textures need to have the size with the power of 2, like 64px x 64px, 128×128, 256… etc?