java.lang.RuntimeException: Unable to resume activity {com.appcelerator.titanium/org.appcelerator.titanium.TiActivity}: java.lang.IllegalStateException: trying to requery an already closed cursor

Appcelerator JIRA | Ping Wang | 5 years ago
  1. 0

    Honeycomb and cursors (frustrated)

    Stack Overflow | 6 years ago | Michael Little
    java.lang.RuntimeException: Unable to resume activity {com.xxx.xxx/com.xxx.xxx.ParentActivity}: java.lang.IllegalStateException: trying to requery an already closed cursor
  2. 0

    To reproduce: 1) KS -> Phone -> Contacts -> Display people 2) choose one contact 3) press BACK key Then the program crashes. The error message is: *************************************************** E/AndroidRuntime( 2584): FATAL EXCEPTION: main E/AndroidRuntime( 2584): java.lang.RuntimeException: Unable to resume activity {com.appcelerator.titanium/org.appcelerator.titanium.TiActivity}: java.lang.IllegalStateException: trying to requery an already closed cursor E/AndroidRuntime( 2584): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2227) E/AndroidRuntime( 2584): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2255) E/AndroidRuntime( 2584): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1028) E/AndroidRuntime( 2584): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 2584): at android.os.Looper.loop(Looper.java:132) E/AndroidRuntime( 2584): at android.app.ActivityThread.main(ActivityThread.java:4025) E/AndroidRuntime( 2584): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 2584): at java.lang.reflect.Method.invoke(Method.java:491) E/AndroidRuntime( 2584): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) E/AndroidRuntime( 2584): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) E/AndroidRuntime( 2584): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 2584): Caused by: java.lang.IllegalStateException: trying to requery an already closed cursor E/AndroidRuntime( 2584): at android.app.Activity.performRestart(Activity.java:4394) E/AndroidRuntime( 2584): at android.app.Activity.performResume(Activity.java:4420) E/AndroidRuntime( 2584): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2217) E/AndroidRuntime( 2584): ... 10 more W/ActivityManager( 141): Force finishing activity com.appcelerator.titanium/org.appcelerator.titanium.TiActivity W/ActivityManager( 141): Activity pause timeout for ActivityRecord{4119f5b8 com.appcelerator.titanium/org.appcelerator.titanium.TiActivity} *************************************************** Can not reproduce this issue on HTC 2.3.4.

    Appcelerator JIRA | 5 years ago | Ping Wang
    java.lang.RuntimeException: Unable to resume activity {com.appcelerator.titanium/org.appcelerator.titanium.TiActivity}: java.lang.IllegalStateException: trying to requery an already closed cursor
  3. 0

    To reproduce: 1) KS -> Phone -> Contacts -> Display people 2) choose one contact 3) press BACK key Then the program crashes. The error message is: *************************************************** E/AndroidRuntime( 2584): FATAL EXCEPTION: main E/AndroidRuntime( 2584): java.lang.RuntimeException: Unable to resume activity {com.appcelerator.titanium/org.appcelerator.titanium.TiActivity}: java.lang.IllegalStateException: trying to requery an already closed cursor E/AndroidRuntime( 2584): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2227) E/AndroidRuntime( 2584): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2255) E/AndroidRuntime( 2584): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1028) E/AndroidRuntime( 2584): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 2584): at android.os.Looper.loop(Looper.java:132) E/AndroidRuntime( 2584): at android.app.ActivityThread.main(ActivityThread.java:4025) E/AndroidRuntime( 2584): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 2584): at java.lang.reflect.Method.invoke(Method.java:491) E/AndroidRuntime( 2584): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) E/AndroidRuntime( 2584): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) E/AndroidRuntime( 2584): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 2584): Caused by: java.lang.IllegalStateException: trying to requery an already closed cursor E/AndroidRuntime( 2584): at android.app.Activity.performRestart(Activity.java:4394) E/AndroidRuntime( 2584): at android.app.Activity.performResume(Activity.java:4420) E/AndroidRuntime( 2584): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2217) E/AndroidRuntime( 2584): ... 10 more W/ActivityManager( 141): Force finishing activity com.appcelerator.titanium/org.appcelerator.titanium.TiActivity W/ActivityManager( 141): Activity pause timeout for ActivityRecord{4119f5b8 com.appcelerator.titanium/org.appcelerator.titanium.TiActivity} *************************************************** Can not reproduce this issue on HTC 2.3.4.

    Appcelerator JIRA | 5 years ago | Ping Wang
    java.lang.RuntimeException: Unable to resume activity {com.appcelerator.titanium/org.appcelerator.titanium.TiActivity}: java.lang.IllegalStateException: trying to requery an already closed cursor
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Honeycomb crash

    GitHub | 5 years ago | mudar
    java.lang.RuntimeException: Unable to resume activity {ca.mudar.mtlaucasou/ca.mudar.mtlaucasou.ui.EmergencyHostelsMapActivity}: java.lang.IllegalStateException: trying to requery an already closed cursor
  6. 0

    Pass extra intent after capturing image from camera

    Stack Overflow | 2 years ago | Ronak Patel
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=0, result=-1, data=null} to activity {com.example.android.navigationdrawerexample/com.example.android.mtesapp.EditProfileActivity}: java.lang.NullPointerException

  1. bmacedo 1 times, last 2 weeks ago
  2. VeryRedChris 23 times, last 3 weeks ago
  3. franky li 6 times, last 1 month ago
  4. filpgame 27 times, last 3 weeks ago
  5. ajinkya_w 61 times, last 2 months ago
46 more registered users
43 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    trying to requery an already closed cursor

    at android.app.Activity.performRestart()
  2. Android Platform
    ActivityThread.main
    1. android.app.Activity.performRestart(Activity.java:4394)
    2. android.app.Activity.performResume(Activity.java:4420)
    3. android.app.ActivityThread.performResumeActivity(ActivityThread.java:2217)
    4. android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2255)
    5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1028)
    6. android.os.Handler.dispatchMessage(Handler.java:99)
    7. android.os.Looper.loop(Looper.java:132)
    8. android.app.ActivityThread.main(ActivityThread.java:4025)
    8 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:491)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
    2 frames
  5. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame