android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by xiphirx
, 1 year ago
Cursor window allocation of 2048 kb failed.
via GitHub by tjuric
, 1 year ago
Cursor window allocation of 2048 kb failed. # Open Cursors=10 (# cursors opened by this proc=10)
via Stack Overflow by Mary
, 2 years ago
Cursor window allocation of 2048 kb failed. # Open Cursors=552 (# cursors opened by this proc=4) (# cursors opened by pid 17397=548)
via Stack Overflow by Mark__C
, 1 year ago
Cursor window allocation of 2048 kb failed. # Open Cursors=773 (# cursors opened by this proc=773)
android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed.
at android.database.CursorWindow.(CursorWindow.java:109)
at android.database.CursorWindow.(CursorWindow.java:100)
at android.database.AbstractWindowedCursor.clearOrCreateWindow(AbstractWindowedCursor.java:198)
at android.database.sqlite.SQLiteCursor.clearOrCreateWindow(SQLiteCursor.java:301)
at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:139)
at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:197)
at android.database.AbstractCursor.moveToNext(AbstractCursor.java:245)
at com.amplitude.api.DatabaseHelper.getEvents(DatabaseHelper.java:91)
at com.amplitude.api.AmplitudeClient.updateServer(AmplitudeClient.java:594)
at com.amplitude.api.AmplitudeClient.updateServer(AmplitudeClient.java:582)
at com.amplitude.api.AmplitudeClient.access$1400(AmplitudeClient.java:31)
at com.amplitude.api.AmplitudeClient$4.run(AmplitudeClient.java:343)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)

Users with the same issue

8 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
3 times, 9 months ago
116 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
9 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.