IllegalStateException in Activity.performRestart(): Already closed cursor

Bug #766391 reported by pjv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Collectionista
In Progress
Medium
Unassigned

Bug Description

04/19/11 07:31:29 CET (1)

class java.lang.RuntimeException
Msg: android.app.ActivityThread.performResumeActivity:2215 (Unable to resume activity {net.lp.collectionista/net.lp.collectionista.ui.activities.items.cd.music.MusicCDItemEditWindow}: java.lang.IllegalStateException: trying to requery an already closed cursor)

V: 0.3.0
P: Android
E: uncaught

pjv (pjv)
Changed in collectionista:
importance: Undecided → Medium
Revision history for this message
pjv (pjv) wrote :

v0.3.1 via dev con:

java.lang.RuntimeException: Unable to resume activity {net.lp.collectionista/net.lp.collectionista.ui.activities.items.book.BookItemEditWindow}: java.lang.IllegalStateException: trying to requery an already closed cursor
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2215)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2243)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1019)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:126)
at android.app.ActivityThread.main(ActivityThread.java:3997)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: trying to requery an already closed cursor
at android.app.Activity.performRestart(Activity.java:4337)
at android.app.Activity.performResume(Activity.java:4360)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2205)
... 10 more

pjv (pjv)
Changed in collectionista:
status: New → In Progress
Revision history for this message
pjv (pjv) wrote :

Seems like mCursor.close() has already happened, but activity is paused and resumed before it could be finished.

Only place I can see this happen is in cancelProduct() (and quickDeleteProduct(), which means cancelProduct() then), which means checkDoNotKeepOnPauseBasedOnTextLength() and subsequently checkDoNotKeepOnPause().

summary: - Already closed cursor
+ IllegalStateException in Activity.performRestart(): Already closed
+ cursor
Revision history for this message
pjv (pjv) wrote :

Get ideas from #976174

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.