Getting force close when device is locked,rotate and unlocke

  ... in the unlikely case you discovered a bug, post it here.

Getting force close when device is locked,rotate and unlocke

Postby jeka_corvus » Thu Jan 31, 2013 4:59 pm

My app is landscape orientation. I execute my app, than turn switch off and then turn switch on device. After rotate device to portrait orientation and unlock screen. And app force closes.

I have in manifest
android:configChanges="orientation|keyboard|keyboardHidden"

I have next when change orientation

01-31 16:38:41.602: E/Trace(13378): error opening trace file: No such file or directory (2)
01-31 16:38:41.954: D/dalvikvm(13378): GC_CONCURRENT freed 218K, 6% free 4375K/4624K, paused 11ms+14ms, total 85ms
01-31 16:38:41.954: D/dalvikvm(13378): WAIT_FOR_CONCURRENT_GC blocked 31ms
01-31 16:38:42.017: W/Settings(13378): Setting android_id has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.
01-31 16:38:42.173: D/dalvikvm(13378): GC_CONCURRENT freed 331K, 8% free 4438K/4796K, paused 24ms+2ms, total 68ms
01-31 16:38:43.892: I/Choreographer(13378): Skipped 109 frames! The application may be doing too much work on its main thread.
01-31 16:38:43.907: I/libEGL(13378): Processor type: omap4430
01-31 16:38:43.931: D/libEGL(13378): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
01-31 16:38:43.946: D/libEGL(13378): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
01-31 16:38:43.954: D/libEGL(13378): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
01-31 16:38:44.063: D/OpenGLRenderer(13378): Enabling debug mode 0
01-31 16:38:50.970: D/AndroidRuntime(13378): Shutting down VM


And when unlocked screen

01-31 16:38:50.993: E/AndroidRuntime(13378): FATAL EXCEPTION: main
01-31 16:38:50.993: E/AndroidRuntime(13378): java.lang.RuntimeException: Unable to destroy activity {com.hyperlearning.easy_spanish/com.hyperlearning.easy_spanish.MainActivityLocal}: java.lang.NullPointerException
01-31 16:38:50.993: E/AndroidRuntime(13378): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3451)
01-31 16:38:50.993: E/AndroidRuntime(13378): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3469)
01-31 16:38:50.993: E/AndroidRuntime(13378): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3669)
01-31 16:38:50.993: E/AndroidRuntime(13378): at android.app.ActivityThread.access$700(ActivityThread.java:141)
01-31 16:38:50.993: E/AndroidRuntime(13378): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1240)
01-31 16:38:50.993: E/AndroidRuntime(13378): at android.os.Handler.dispatchMessage(Handler.java:99)
01-31 16:38:50.993: E/AndroidRuntime(13378): at android.os.Looper.loop(Looper.java:137)
01-31 16:38:50.993: E/AndroidRuntime(13378): at android.app.ActivityThread.main(ActivityThread.java:5039)
01-31 16:38:50.993: E/AndroidRuntime(13378): at java.lang.reflect.Method.invokeNative(Native Method)
01-31 16:38:50.993: E/AndroidRuntime(13378): at java.lang.reflect.Method.invoke(Method.java:511)
01-31 16:38:50.993: E/AndroidRuntime(13378): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
01-31 16:38:50.993: E/AndroidRuntime(13378): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
01-31 16:38:50.993: E/AndroidRuntime(13378): at dalvik.system.NativeStart.main(Native Method)
01-31 16:38:50.993: E/AndroidRuntime(13378): Caused by: java.lang.NullPointerException
01-31 16:38:50.993: E/AndroidRuntime(13378): at com.hyperlearning.library.MainActivity.onDestroy(MainActivity.java:249)
01-31 16:38:50.993: E/AndroidRuntime(13378): at android.app.Activity.performDestroy(Activity.java:5273)
01-31 16:38:50.993: E/AndroidRuntime(13378): at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1110)
01-31 16:38:50.993: E/AndroidRuntime(13378): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3438)
01-31 16:38:50.993: E/AndroidRuntime(13378): ... 12 more
jeka_corvus
 
Posts: 5
Joined: Thu Jan 31, 2013 3:57 pm

Re: Getting force close when device is locked,rotate and unl

Postby Primadawn » Fri Feb 01, 2013 2:16 am

Primadawn
 
Posts: 414
Joined: Fri Sep 23, 2011 3:28 am


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest