java - Strange Issue on Andengine when using android layout with LayoutBaseGameActivity? -


i using andengine in application animation. when using sprite click event gives strange issue. using sprite hide show view in android native layout.

my logcat output

        04-01 18:21:43.966: e/androidruntime(1875): fatal exception: glthread 3832         04-01 18:21:43.966: e/androidruntime(1875): java.lang.indexoutofboundsexception: invalid index 42, size 42         04-01 18:21:43.966: e/androidruntime(1875):     @ java.util.arraylist.throwindexoutofboundsexception(arraylist.java:251)         04-01 18:21:43.966: e/androidruntime(1875):     @ java.util.arraylist.get(arraylist.java:304)         04-01 18:21:43.966: e/androidruntime(1875):     @ org.andengine.entity.entity.onmanageddraw(entity.java:1382)         04-01 18:21:43.966: e/androidruntime(1875):     @ org.andengine.entity.scene.scene.onmanageddraw(scene.java:260)         04-01 18:21:43.966: e/androidruntime(1875):     @ org.andengine.entity.entity.ondraw(entity.java:1160)         04-01 18:21:43.966: e/androidruntime(1875):     @ org.andengine.engine.engine.ondrawscene(engine.java:627)         04-01 18:21:43.966: e/androidruntime(1875):     @ org.andengine.engine.engine.ondrawframe(engine.java:617)         04-01 18:21:43.966: e/androidruntime(1875):     @ org.andengine.opengl.view.enginerenderer.ondrawframe(enginerenderer.java:105)         04-01 18:21:43.966: e/androidruntime(1875):     @ android.opengl.glsurfaceview$glthread.guardedrun(glsurfaceview.java:1516)         04-01 18:21:43.966: e/androidruntime(1875):     @ android.opengl.glsurfaceview$glthread.run(glsurfaceview.java:1240) 

i dont know why causing please help

edit:

 04-01 18:53:01.420: d/andengine(2899): firstbaseactivity.ondestroy @(thread: 'main')         04-01 18:53:01.420: d/andengine(2899): updatethread interrupted. don't worry - enginedestroyedexception expected!         04-01 18:53:01.420: d/andengine(2899): org.andengine.engine.engine$enginedestroyedexception         04-01 18:53:01.420: d/andengine(2899):  @ org.andengine.engine.engine.throwondestroyed(engine.java:574)         04-01 18:53:01.420: d/andengine(2899):  @ org.andengine.engine.engine.ontickupdate(engine.java:560)         04-01 18:53:01.420: d/andengine(2899):  @ org.andengine.engine.engine$updatethread.run(engine.java:820)         04-01 18:53:01.427: d/andengine(2899): firstbaseactivity.ondestroyresources @(thread: 'main')         04-01 18:53:01.427: d/andengine(2899): firstbaseactivity.ongamedestroyed @(thread: 'main') 

full logcat

the problem modifying scene graph thread different updatethread. maybe touch/sensor event. if have dispatch updatethread via runonupdatethread(runnable).


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -