rovo89 / XposedInstaller

3.89k stars 1.51k forks source link

Crash when restore activity #34

Closed Dzakus closed 11 years ago

Dzakus commented 11 years ago

Logcat

I/ActivityManager(  589): Start proc de.robv.android.xposed.installer for activity de.robv.android.xposed.installer/.XposedInstallerActivity: pid=9163 uid=10131 gids={50131, 1015, 3003, 1028}
D/AndroidRuntime( 9163): Shutting down VM
W/dalvikvm( 9163): threadid=1: thread exiting with uncaught exception (group=0x4154e700)
E/AndroidRuntime( 9163): FATAL EXCEPTION: main
E/AndroidRuntime( 9163): java.lang.RuntimeException: Unable to start activity ComponentInfo{de.robv.android.xposed.installer/de.robv.android.xposed.installer.XposedInstallerActivity}: java.lang.NullPointerException
E/AndroidRuntime( 9163):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2339)
E/AndroidRuntime( 9163):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2389)
E/AndroidRuntime( 9163):    at android.app.ActivityThread.access$600(ActivityThread.java:153)
E/AndroidRuntime( 9163):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1269)
E/AndroidRuntime( 9163):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 9163):    at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 9163):    at android.app.ActivityThread.main(ActivityThread.java:5289)
E/AndroidRuntime( 9163):    at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 9163):    at java.lang.reflect.Method.invoke(Method.java:525)
E/AndroidRuntime( 9163):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
E/AndroidRuntime( 9163):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
E/AndroidRuntime( 9163):    at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 9163): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 9163):    at de.robv.android.xposed.installer.DownloadDetailsFragment.onCreateView(DownloadDetailsFragment.java:67)
E/AndroidRuntime( 9163):    at android.app.Fragment.performCreateView(Fragment.java:1695)
E/AndroidRuntime( 9163):    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:885)
E/AndroidRuntime( 9163):    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1057)
E/AndroidRuntime( 9163):    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1039)
E/AndroidRuntime( 9163):    at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1840)
E/AndroidRuntime( 9163):    at android.app.Activity.performCreate(Activity.java:5136)
E/AndroidRuntime( 9163):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 9163):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2293)
E/AndroidRuntime( 9163):    ... 11 more
W/ActivityManager(  589):   Force finishing activity de.robv.android.xposed.installer/.XposedInstallerActivity
D/dalvikvm(  589): GC_FOR_ALLOC freed 417K, 28% free 29129K/40076K, paused 105ms, total 105ms
D/dalvikvm(  589): GC_FOR_ALLOC freed 765K, 29% free 28737K/40076K, paused 102ms, total 102ms
D/dalvikvm(  856): GC_CONCURRENT freed 772K, 50% free 5387K/10768K, paused 2ms+3ms, total 35ms
E/        ( 1266): POO
W/ActivityManager(  589): Activity pause timeout for ActivityRecord{4242de38 u0 de.robv.android.xposed.installer/.XposedInstallerActivity}
I/Process ( 9163): Sending signal. PID: 9163 SIG: 9
I/ActivityManager(  589): Process de.robv.android.xposed.installer (pid 9163) has died.
I/ActivityManager(  589): Start proc de.robv.android.xposed.installer for activity de.robv.android.xposed.installer/.WelcomeActivity: pid=9201 uid=10131 gids={50131, 1015, 3003, 1028}
D/libEGL  ( 9201): loaded /system/lib/egl/libEGL_adreno200.so
D/libEGL  ( 9201): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
D/libEGL  ( 9201): loaded /system/lib/egl/libGLESv2_adreno200.so
I/Adreno200-EGL( 9201): <qeglDrvAPI_eglInitialize:265>: EGL 1.4 QUALCOMM Build: Iabe52cfaeae4c5fab1acacfe6f056ba15fa93274
D/OpenGLRenderer( 9201): Enabling debug mode 0
I/ActivityManager(  589): Displayed de.robv.android.xposed.installer/.WelcomeActivity: +1s366ms (total +2s335ms)
rovo89 commented 11 years ago

Thanks for reporting this. I can see where the problem is. However, I can hardly imagine how you could come into a situation where this would occur. What exactly did you do before this crash? Is this reproducable for you?

Dzakus commented 11 years ago

Is this reproducable for you?

Probably not, only once

What exactly did you do before this crash?

I remember only that the phone lying in bed and charge the up. I approached him, he took in hand, one Unlock screen, I started the application to check for updates.

Tungstwenty commented 11 years ago

I could replicate it like this:

rovo89 commented 11 years ago

This is fixed with https://github.com/rovo89/XposedInstaller/commit/4c97f9d92caf8dde11f109bc61404e2972e66d15