Bug #1894

Service process leaking cursors, resulting in crash

Added by devrandom over 4 years ago. Updated about 4 years ago.

Status:ClosedStart date:09/17/2013
Priority:HighDue date:
Assignee:devrandom% Done:

0%

Category:-
Target version:v12 - March Mantra
Component:DB

Description

Looks like we are leaking cursors, which ends up crashing CS.

D/HockeyApp(29406): java.lang.RuntimeException: Unable to resume activity {info.guardianproject.otr.app.im/info.guardianproject.otr.app.im.app.NewChatActivity}: android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. # Open Cursors=500 (# cursors opened by this proc=10) (# cursors opened by pid 3442=490)
D/HockeyApp(29406): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2567)
D/HockeyApp(29406): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2595)
D/HockeyApp(29406): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1183)
D/HockeyApp(29406): at android.os.Handler.dispatchMessage(Handler.java:99)
D/HockeyApp(29406): at android.os.Looper.loop(Looper.java:137)
D/HockeyApp(29406): at android.app.ActivityThread.main(ActivityThread.java:4575)
D/HockeyApp(29406): at java.lang.reflect.Method.invokeNative(Native Method)
D/HockeyApp(29406): at java.lang.reflect.Method.invoke(Method.java:511)
D/HockeyApp(29406): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
D/HockeyApp(29406): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
D/HockeyApp(29406): at dalvik.system.NativeStart.main(Native Method)
D/HockeyApp(29406): Caused by: android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. # Open Cursors=500 (# cursors opened by this proc=10) (# cursors opened by pid 3442=490)
D/HockeyApp(29406): at android.database.CursorWindow.<init>(CursorWindow.java:104)
D/HockeyApp(29406): at android.database.CursorWindow.<init>(CursorWindow.java:126)
D/HockeyApp(29406): at net.sqlcipher.CursorWindow.<init>(CursorWindow.java:51)
D/HockeyApp(29406): at net.sqlcipher.database.SQLiteCursor.fillWindow(SQLiteCursor.java:279)
D/HockeyApp(29406): at net.sqlcipher.database.SQLiteCursor.getCount(SQLiteCursor.java:271)
D/HockeyApp(29406): at android.database.CursorWrapper.getCount(CursorWrapper.java:57)
D/HockeyApp(29406): at android.content.ContentResolver.query(ContentResolver.java:322)

History

#1 Updated by n8fr8 over 4 years ago

fun!

#2 Updated by devrandom over 4 years ago

  • Status changed from New to Resolved
  • Assignee set to devrandom

#3 Updated by n8fr8 about 4 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF