WordPress-Android
WordPress-Android copied to clipboard
CursorWindowAllocationException: Could not allocate CursorWindow '<unnamed>' of size 5242880 due to error -12.
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)
Thanks for reporting! 👍
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.
Probably similar to: https://github.com/wordpress-mobile/WordPress-Android/issues/19331
Sentry Issue: JETPACK-ANDROID-JP8