WordPress-Android icon indicating copy to clipboard operation
WordPress-Android copied to clipboard

CursorWindowAllocationException: Could not allocate CursorWindow '<unnamed>' of size 5242880 due to error -12.

Open sentry-io[bot] opened this issue 1 year ago • 2 comments

Sentry Issue: JETPACK-ANDROID-JHT

CursorWindowAllocationException: Could not allocate CursorWindow '<unnamed>' of size 5242880 due to error -12.
    at android.database.CursorWindow.nativeCreate(CursorWindow.java)
    at android.database.CursorWindow.<init>(CursorWindow.java:139)
    at com.yarolegovich.wellsql.SelectQuery$$InternalSyntheticApiModelOutline$16$7cb37f5ee24e894454c0094c61cf26bf86d461c7de6b729f06465d75bf2329dd$0.m(R8$$SyntheticClass:0)
    at com.yarolegovich.wellsql.SelectQuery.execute(SelectQuery.java:222)
    at com.yarolegovich.wellsql.SelectQuery.getAsModel(SelectQuery.java:156)
...
(22 additional frame(s) were not displayed)

sentry-io[bot] avatar Feb 19 '24 20:02 sentry-io[bot]

Thanks for reporting! 👍

dangermattic avatar Feb 19 '24 20:02 dangermattic

It seems like error -12 is related to a cursor leak, so probably cursor.close() is not being called where it's supposed to. Since this is happening inside WellSql (which is not being maintained) I'm not sure there's an easy way around this.

RenanLukas avatar Feb 19 '24 21:02 RenanLukas

Probably similar to: https://github.com/wordpress-mobile/WordPress-Android/issues/19331

thomashorta avatar Feb 22 '24 22:02 thomashorta

Sentry Issue: JETPACK-ANDROID-JP8

sentry-io[bot] avatar Feb 22 '24 22:02 sentry-io[bot]