I have a simple application which runs fine on the PC and Android Gideros simulators. When I build the APK and load it onto my phone (Atrix 4g, 2.3.3) the background displays, but then the ANR prompt comes up. I force close, then can open the app and it works normally? I am only seeing this problem on apps using Multi touch. I built the "Touch Explorer" example with Gideros 2012 and have the same problem. Other examples work fine. Any ideas what is wrong, or how to troubleshoot this? Here are the stack traces at time of ANR
DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0 hwl=0 hwll=0)
"main" prio=5 tid=1 MONITOR
| group="main" sCount=1 dsCount=0 obj=0x40022268 self=0xcea0
| sysTid=9701 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=-1345006432
| schedstat=( 85999000 49134000 243 )
at com.giderosmobile.android.player.JavaNativeBridge.onTouchesBegin(JavaNativeBridge.java:~181)
- waiting to lock <0x40527360> (a java.lang.Object) held by threadid=9 (GLThread 10)
at com.giderosmobile.android.BubblesActivity.onTouch(BubblesActivity.java:103)
at android.view.View.dispatchTouchEvent(View.java:3881)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:869)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:869)
at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1923)
at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1190)
at android.app.Activity.dispatchTouchEvent(Activity.java:2155)
at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1907)
at android.view.ViewRoot.deliverPointerEvent(ViewRoot.java:2197)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1881)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
GLThread 10" prio=5 tid=9 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x405249a8 self=0x2c0190
| sysTid=9710 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=2884296
| schedstat=( 663039000 862533000 4170 )
at com.giderosmobile.android.player.JavaNativeBridge.nativeRender(Native Method)
at com.giderosmobile.android.player.JavaNativeBridge.onDrawFrame(JavaNativeBridge.java:280)
at com.giderosmobile.android.GiderosRenderer.onDrawFrame(BubblesActivity.java:146)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1363)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
Comments
The problem is that rendering thread blocks the touch events and if something takes a little bit time longer, ANR dialog appears. On iOS, we are pooling the touch events therefore everything goes smooth. But currently on Android, we aren't. With the next version, we'll also enable pooling for touch events on Android.
Thank you
the roadmap says that the next version will be out about on Q3 2012
but how do you plan to manage the bug fix?
we need to wait until q3 ?
or you release intermediate versions ?
(ex. 2012.3 or 2012.2 v1 v2 .. etc?)
thanks.
Gianluca.
www.tntengine.com
Yes we will release many 2012.2.x versions and we try to release as frequently as we can (mostly in 1-2 weeks periods)
www.tntengine.com
|group="main" sCount=1 dsCount=0 obj=0x40cco0230 self=0x37e1b8
|sysTid=4627 nice=0 sched=0/0 crgp=default handle=3669968
|schrdstat =( 692962 197216519 45 ) utn=0
stm=0 core=0)00000000
My phone is crazy. Doesnt type what i want. Makes a loud binging noise all the time when battery gets slightly low or if i browse near a restricted area ( server restricts me). I have a tablet n it thinks it is a phone ie same apps that i cannot even kill ie com.android.phone; com.sec.phone, etc. Can anyone help me to understand? By the way, just one 0 at the end of the previous post. One more question: why would i have had an approx dime sized grayish circle in the center of my previous post? Thanxs