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
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  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

    Why is DialogFragment.onCreateView called when Activity is being Destroyed?

    Stack Overflow | 4 years ago | WindsurferOak
    java.lang.RuntimeException: Unable to destroy activity {com.myapp/com.myapp.activity.FirstFragment}: java.lang.NullPointerException

  1. rp 1 times, last 2 months ago
  2. Indri Yunita 74 times, last 2 months ago
  3. bmacedo 1 times, last 3 months ago
  4. VeryRedChris 23 times, last 4 months ago
  5. franky li 6 times, last 4 months ago
48 more registered users
47 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