Android Question CursorWindowAllocationException on Android 4.4?

capisx

Member
Licensed User
Longtime User
Hi,

i'm using KeyValueStore v.2 in my app and i'm getting crash report like this:

Fatal Exception: android.database.CursorWindowAllocationException

Cursor window allocation of 2048 kb failed.


All that crash has occurred on android 4.4 device only and happen in KeyValueStore Get sub, can anyone tell me what is the problem? as far as i know all cursor was closed after use and i can't replicate this issue on my test device.

Thanks.
 

DonManfred

Expert
Licensed User
Longtime User
SQLite has a limit of 2mb for the resultset you are requesting from the Database.
 
Upvote 0

capisx

Member
Licensed User
Longtime User
SQLite has a limit of 2mb for the resultset you are requesting from the Database.

First of all thanks Manfred for your reply.

the problem is the data i was trying to get was only string, int, & custom type (i used KVS for saving score and games stat). the database file size itself when the app not running was only 28KB.

is it possible if the KVS sqlite limit reached when i call "GET" so many times while the app running? if that so how can i deal with it?

note: based on crashlytics this crash only occurred on android 4.4 device
 
Upvote 0
Top