SHAKTHI62 / openintents

Automatically exported from code.google.com/p/openintents
0 stars 0 forks source link

OI Shopping List: StaleDataException in AbstractWindowedCursor.checkPosition() #390

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Crash:
{org.openintents.shopping/org.openintents.shopping.ShoppingActivity}: 
android.database.StaleDataException: Attempting to access a closed 
CursorWindow. Most probable cause: cursor is deactivated prior to calling this 
method.

Platforms:
Other

User messages:
1.4: crashed when I tried to move an item from one list to another list. does 
so every time I try.

Stack traces:
v1.4
25.08.2011 00:45:42

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, 
request=2, result=-1, data=Intent { 
dat=content://org.openintents.shopping/lists/2 }} to activity 
{org.openintents.shopping/org.openintents.shopping.ShoppingActivity}: 
android.database.StaleDataException: Attempting to access a closed 
CursorWindow.Most probable cause: cursor is deactivated prior to calling this 
method.
 at android.app.ActivityThread.deliverResults(ActivityThread.java:2818)
 at android.app.ActivityThread.handleSendResult(ActivityThread.java:2861)
 at android.app.ActivityThread.access$1000(ActivityThread.java:122)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1054)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:132)
 at android.app.ActivityThread.main(ActivityThread.java:4123)
 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: android.database.StaleDataException: Attempting to access a closed 
CursorWindow.Most probable cause: cursor is deactivated prior to calling this 
method.
 at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:120)
 at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:55)
 at android.database.CursorWrapper.getLong(CursorWrapper.java:100)
 at org.openintents.shopping.ui.ShoppingActivity.getSelectedListId(ShoppingActivity.java:2166)
 at org.openintents.shopping.ui.ShoppingActivity.moveItem(ShoppingActivity.java:1891)
 at org.openintents.shopping.ui.ShoppingActivity.onActivityResult(ShoppingActivity.java:2686)
 at android.app.Activity.dispatchActivityResult(Activity.java:4581)
 at android.app.ActivityThread.deliverResults(ActivityThread.java:2814)
 ... 11 more

Original issue reported on code.google.com by peli0...@googlemail.com on 25 Aug 2011 at 12:31

GoogleCodeExporter commented 9 years ago
As Seen From The Above Stack Traces I Noticed That Your CursorWindow(A buffer 
containing multiple cursor rows.) is Closed In Between, So In Order To Ovoid 
This Kind Of Problems Use All Your Closing Operations In "onDestroy();" Method 
Of Your Activity Class

Thanks,
Rupesh.

Original comment by srupes...@gmail.com on 25 Feb 2012 at 6:47