google-code-export / fanfoudroid

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

饭否的一个数据库异常 #118

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
饭友汇报的数据库未关闭BUG,邮件原文:

好像只是忘了关什么,日志总出些红字,似乎不影响使用。
08-08 18:54:45.607: ERROR/Cursor(2777): Finalizing a Cursor that has not been 
deactivated or closed. database = 
/data/data/com.ch_linghu.fanfoudroid/databases/status_db, table = status, query 
= SELECT _id, screen_name, text, profile_image_url, is_unread, created_at, 
favorited, in_reply_to_stat
08-08 18:54:45.607: ERROR/Cursor(2777): 
android.database.sqlite.DatabaseObjectNotClosedException: Application did not 
close the cursor or database object that was opened here
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
android.database.sqlite.SQLiteCursor.<init>(SQLiteCursor.java:210)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.
java:53)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1
345)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1229
)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1184)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1264)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
com.ch_linghu.fanfoudroid.db.TwitterDatabase.fetchAllTweets(TwitterDatabase.java
:450)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
com.ch_linghu.fanfoudroid.FanfouWidget.fetchMessages(FanfouWidget.java:87)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
com.ch_linghu.fanfoudroid.FanfouWidget.update(FanfouWidget.java:66)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
com.ch_linghu.fanfoudroid.FanfouWidget.onReceive(FanfouWidget.java:210)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
android.app.ActivityThread.handleReceiver(ActivityThread.java:2812)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
android.app.ActivityThread.access$3200(ActivityThread.java:125)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2083)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
android.os.Looper.loop(Looper.java:123)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
android.app.ActivityThread.main(ActivityThread.java:4641)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
java.lang.reflect.Method.invokeNative(Native Method)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
java.lang.reflect.Method.invoke(Method.java:521)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
08-08 18:54:45.607: ERROR/Cursor(2777):     at 
dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by lds1...@gmail.com on 8 Aug 2011 at 11:12

GoogleCodeExporter commented 9 years ago

Original comment by ch.lin...@gmail.com on 7 Sep 2011 at 1:20