Debugging - crashes prior to hitting breakpoints - due to ANR?

VS 2015 (Xamarin.Android
ADB Debugging over local network (using adb connect 192.168.x.x)
Target device: Android 4.3

Have been experiencing regular crashes prior to hitting breakpoints for a while now. It is unpredictable what kind of breakpoints will cause the crash, it doesn't always happen - but once it starts to happen it seems nothing short of deleting all breakpoints and re-setting them resolves the issue.

When the crash occurs the following is found in VS 2015 Output:
07-04 10:43:40.156 I/dalvikvm(24091): threadid=3: reacting to signal 3
07-04 10:43:40.216 I/dalvikvm(24091): Wrote stack traces to '/data/anr/traces.txt'

The behavior appears to be caused by some kind of ANR timeout - the application will freeze for a couple of seconds just prior to when breakpoint should be hit, followed by the crash.

When reviewing anr trace (attached) I only found mention of my application's code in main thread. You can see where the Mono DebugRuntime was executing - I'm guessing to begin gathering diagnostic data from the breakpoint (which would be hit in the OnStart method if the fragment).

"main" prio=5 tid=1 NATIVE | group="main" sCount=1 dsCount=0 obj=0x41f41578 self=0x41f2c150 | sysTid=24091 nice=0 sched=0/0 cgrp=apps handle=1074356220 | state=S schedstat=( 9782705984 1724131995 11906 ) utm=833 stm=145 core=1 #00 pc 0001c610 /system/lib/ (__futex_syscall3+8) #01 pc 0000e6c8 /system/lib/ (__pthread_cond_timedwait_relative+48) #02 pc 0000e728 /system/lib/ (__pthread_cond_timedwait+64) #03 pc 00107654 /data/app-lib/Mono.Android.DebugRuntime-1/ at md52179d95945ca09f4ea2781be8d1cab4b.SetupUhfReaderTuningFragment.n_onStart(Native Method) at md52179d95945ca09f4ea2781be8d1cab4b.SetupUhfReaderTuningFragment.onStart( at at at at at at at Method) at at at Method) at at android.view.View.performClick( at android.view.View$ at android.os.Handler.handleCallback( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke( at$ at at dalvik.system.NativeStart.main(Native Method)
"Signal Catcher" daemon prio=5 tid=3 RUNNABLE | group="system" sCount=0 dsCount=0 obj=0x421bd468 self=0x5a59a3f0 | sysTid=24096 nice=0 sched=0/0 cgrp=apps handle=1515823528 | state=R schedstat=( 25037332 8218666 51 ) utm=0 stm=2 core=3 at Method)

Is this known issue? I couldn't see mention of this anywhere. Raise in bugzilla?



Sign In or Register to comment.