dlew/android-ragefaces — Issue #61: Investigate IllegalStateException
Author: dlew
Created: 2011-10-17 02:58:15+00:00
State: open

Getting this error on occasion, not sure what's going on:

java.lang.IllegalStateException: attempt to re-open an already-closed object: android.database.sqlite.SQLiteQuery (mSql = SELECT F._id, F.drawable FROM (SELECT FC.faceId AS faceId, min(C.position) AS pos FROM FaceCategories FC, Categories C WHERE FC.categoryId == C._id GROUP BY FC.faceId ORDER BY pos ASC) T, Faces F WHERE F._id == T.faceId ORDER BY T.pos ASC, F.drawable)
at android.database.sqlite.SQLiteClosable.acquireReference(SQLiteClosable.java:34)
at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:67)
at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:286)
at android.database.sqlite.SQLiteCursor.onMove(SQLiteCursor.java:258)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:188)
at com.idunnolol.ragefaces.adapters.RageFaceDbAdapter.getItem(RageFaceDbAdapter.java:45)
at com.idunnolol.ragefaces.adapters.RageFaceDbAdapter.getView(RageFaceDbAdapter.java:67)
at android.widget.AbsListView.obtainView(AbsListView.java:1446)
at android.widget.GridView.makeAndAddView(GridView.java:1222)
at android.widget.GridView.makeRow(GridView.java:268)
at android.widget.GridView.fillDown(GridView.java:221)
at android.widget.GridView.fillGap(GridView.java:188)
at android.widget.AbsListView.trackMotionScroll(AbsListView.java:3464)
at android.widget.AbsListView$FlingRunnable.run(AbsListView.java:2961)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3835)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
at dalvik.system.NativeStart.main(Native Method)