question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crashes: Fatal Exception: android.database.CursorWindowAllocationException

See original GitHub issue

Sometimes our app randomly crashes with the exception: We use com.amplitude:android-sdk:2.30.2

Fatal Exception: android.database.CursorWindowAllocationException: Could not allocate CursorWindow '/data/user/0/video.reface.app/databases/com.amplitude.api' of size 2097152 due to error -12.
       at android.database.CursorWindow.nativeCreate(CursorWindow.java)
       at android.database.CursorWindow.<init>(CursorWindow.java:139)
       at android.database.CursorWindow.<init>(CursorWindow.java:120)
       at android.database.AbstractWindowedCursor.clearOrCreateWindow(AbstractWindowedCursor.java:202)
       at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:147)
       at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:140)
       at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:232)
       at android.database.AbstractCursor.moveToNext(AbstractCursor.java:281)
       at com.amplitude.api.DatabaseHelper.getEventsFromTable(DatabaseHelper.java:331)
       at com.amplitude.api.DatabaseHelper.getEvents(DatabaseHelper.java:311)
       at com.amplitude.api.AmplitudeClient.updateServer(AmplitudeClient.java:1929)
       at com.amplitude.api.AmplitudeClient.updateServer(AmplitudeClient.java:1901)
       at com.amplitude.api.AmplitudeClient$11.run(AmplitudeClient.java:1892)
       at android.os.Handler.handleCallback(Handler.java:883)
       at android.os.Handler.dispatchMessage(Handler.java:100)
       at android.os.Looper.loop(Looper.java:214)
       at android.os.HandlerThread.run(HandlerThread.java:67)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
yuhao900914commented, Jun 22, 2021

Hi @runaloop , We will release the changes soon.

0reactions
runaloopcommented, Jun 22, 2021

@ajhorst any news on when this fix will be available?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to simulate CursorWindowAllocationException crash
I have attached the crashlytics logs for reference. Fatal Exception: android.database.CursorWindowAllocationException: Cursor window allocation ...
Read more >
Crash in android.database.CursorWindowAllocationException
3606 crashes in 62.0.3 so far. android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. # Open Cursors=1 (# cursors ...
Read more >
Fatal Exception: android.database ... - GitHub
Do you have logging for the issue? Fatal Exception: android.database.CursorWindowAllocationException. Could not allocate CursorWindow '/data/ ...
Read more >
Diff - c592e5a^! - platform/packages/apps/Bluetooth - Git at Google
FATAL EXCEPTION : main android.database.CursorWindowAllocationException: Cursor window could not be created from binder. com.android.bluetooth.pbap.
Read more >
In CurrentUserRepo -> getLoggedInUser() -> causing crash
Caused by android.database.CursorWindowAllocationException Cursor window allocation of 4194304 bytes failed. ... Fatal Exception: java.lang.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found