primalpop / tagin-engine

Indoor location tagging engine
http://wiki.scyp.idrc.ocad.ca/w/Tagin!
12 stars 3 forks source link

Db Cursors exceptions in logcat (DatabaseObjectNotClosedException) #1

Open neols opened 12 years ago

neols commented 12 years ago

While running tagin! engine, errors like this keep occuring in logcat (app seems not crashing by them):

04-03 10:56:30.346: E/Cursor(8974): Finalizing a Cursor that has not been deactivated or closed. database = /data/data/com.komodo.tagin/databases/taginsdk.db, table = urn_beacons, query = SELECT _id, type, bssid FROM urn_beacons WHERE (_id=8)
04-03 10:56:30.346: E/Cursor(8974): android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here
04-03 10:56:30.346: E/Cursor(8974):     at android.database.sqlite.SQLiteCursor.<init>(SQLiteCursor.java:210)
04-03 10:56:30.346: E/Cursor(8974):     at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:53)
04-03 10:56:30.346: E/Cursor(8974):     at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1345)
04-03 10:56:30.346: E/Cursor(8974):     at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:330)
04-03 10:56:30.346: E/Cursor(8974):     at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:280)
04-03 10:56:30.346: E/Cursor(8974):     at ca.idi.taginsdk.TaginProvider.query(TaginProvider.java:311)
04-03 10:56:30.346: E/Cursor(8974):     at android.content.ContentProvider$Transport.query(ContentProvider.java:163)
04-03 10:56:30.346: E/Cursor(8974):     at android.content.ContentResolver.query(ContentResolver.java:245)
04-03 10:56:30.346: E/Cursor(8974):     at ca.idi.taginsdk.TaginURN.GetFingerprint(TaginURN.java:258)
04-03 10:56:30.346: E/Cursor(8974):     at ca.idi.taginsdk.TaginURN.mergeFingerprint(TaginURN.java:144)
04-03 10:56:30.346: E/Cursor(8974):     at ca.idi.taginsdk.TaginURN.startURN(TaginURN.java:132)
04-03 10:56:30.346: E/Cursor(8974):     at ca.idi.taginsdk.TaginURN$1.onReceive(TaginURN.java:109)
04-03 10:56:30.346: E/Cursor(8974):     at android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run(ActivityThread.java:892)
04-03 10:56:30.346: E/Cursor(8974):     at android.os.Handler.handleCallback(Handler.java:587)
04-03 10:56:30.346: E/Cursor(8974):     at android.os.Handler.dispatchMessage(Handler.java:92)
04-03 10:56:30.346: E/Cursor(8974):     at android.os.Looper.loop(Looper.java:123)
04-03 10:56:30.346: E/Cursor(8974):     at android.app.ActivityThread.main(ActivityThread.java:4627)
04-03 10:56:30.346: E/Cursor(8974):     at java.lang.reflect.Method.invokeNative(Native Method)
04-03 10:56:30.346: E/Cursor(8974):     at java.lang.reflect.Method.invoke(Method.java:521)
04-03 10:56:30.346: E/Cursor(8974):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-03 10:56:30.346: E/Cursor(8974):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-03 10:56:30.346: E/Cursor(8974):     at dalvik.system.NativeStart.main(Native Method)

I was trying to figure out what was wrong, but at first sight all created cursors seemed being closed properly.

TonyTangAndroid commented 10 years ago

any update on this issue? I also ran into the same issue.