Crash on device back button -> com.mediatek.anrappmanager.IFrameworks.serviceManagerGetService

lwingedlwinged USMember ✭✭

Hi everyone,

I’m using Xamarin Forms 2.3.2.127 and I have a crash on Android when I use the back button of the device (Hardware).

Actually, when I build and launch for the first time the application I can use the back button but when the application goes in background and comes back in foreground when I use back button the app crashes.

I saw this post but no answer :
https://forums.xamarin.com/discussion/36323/android-app-crashing-on-xamarin-forms

I don’t know if it’s the same error but it seems to be the stack than mine.

This is the stack :

[ViewRootImpl] ANR Key Analyze: No Key event currently. [ViewRootImpl] ANR Key Analyze: Previeous Event KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=158, metaState=0, flags=0x248, repeatCount=0, eventTime=4359167, downTime=4359153, deviceId=5, source=0x101 },finish at 2016-09-30 10:31:49.154 [ViewRootImpl] ANR Motion Analyze: No motion event currently. [ViewRootImpl] ANR Motion Analyze: Previeous Event MotionEvent { action=ACTION_UP, id[0]=0, x[0]=431.40085, y[0]=1069.1647, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=4358027, downTime=4357959, deviceId=5, source=0x1002 },finish at 2016-09-30 10:31:47.911 [ANRAppManager] !!! It is not under singleton mode, U can't use it. !!! [Binder] Caught a RuntimeException from the binder stub implementation. [Binder] java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder com.mediatek.anrappmanager.IFrameworks.serviceManagerGetService(java.lang.String)' on a null object reference [Binder] at com.mediatek.anrappmanager.ANRManagerNative$1.b(SourceFile:77) [Binder] at com.mediatek.anrappmanager.ANRManagerNative$1.c(SourceFile:75) [Binder] at com.mediatek.anrappmanager.ANRManagerNative$a.get(SourceFile:97) [Binder] at com.mediatek.anrappmanager.ANRManagerNative.getDefault(SourceFile:35) [Binder] at com.mediatek.anrappmanager.ANRAppManager.dumpMessageHistory(SourceFile:59) [Binder] at android.app.ActivityThread$ApplicationThread.dumpMessageHistory(ActivityThread.java:1244) [Binder] at android.app.ApplicationThreadNative.onTransact(ApplicationThreadNative.java:682) [Binder] at android.os.Binder.execTransact(Binder.java:451) [System.err] java.lang.NullPointerException: Attempt to invoke interface method 'android.os.IBinder com.mediatek.anrappmanager.IFrameworks.serviceManagerGetService(java.lang.String)' on a null object reference [System.err] at com.mediatek.anrappmanager.ANRManagerNative$1.b(SourceFile:77) [System.err] at com.mediatek.anrappmanager.ANRManagerNative$1.c(SourceFile:75) [System.err] at com.mediatek.anrappmanager.ANRManagerNative$a.get(SourceFile:97) [System.err] at com.mediatek.anrappmanager.ANRManagerNative.getDefault(SourceFile:35) [System.err] at com.mediatek.anrappmanager.ANRAppManager.dumpMessageHistory(SourceFile:59) [System.err] at android.app.ActivityThread$ApplicationThread.dumpMessageHistory(ActivityThread.java:1244) [System.err] at android.app.ApplicationThreadNative.onTransact(ApplicationThreadNative.java:682) [System.err] at android.os.Binder.execTransact(Binder.java:451) [art] Thread[5,tid=14012,WaitingInMainSignalCatcherLoop,Thread*=0xb7a05a78,peer=0x12c000a0,"Signal Catcher"]: reacting to signal 3 [art] Wrote stack traces to '/data/anr/traces.txt'

Could you help me please ?

Thank you.

Answers

  • MatthewS_JCAMatthewS_JCA CAMember ✭✭

    We have been seeing the same crash all over with no real explanation as to what is causing it.

    Oddly, what device/os version are you running it on? We seeem to see it more when testing on an Lenovo Tab 2 A10-70F under android 5.0.1

  • lwingedlwinged USMember ✭✭

    I use : DOOGEE X5S Android 5.1

    Thank you for your help.

  • FaizalSaidaliFaizalSaidali USMember ✭✭✭

    Hi @lwinged,
    Did you get any solution for this issue?
    I am also facing this issue.

Sign In or Register to comment.