Sqlite Cursor Window allocation 2048 kb failed
I have faced the same trouble as you. What I did is I went all over my application data classes and close all other cursor objects which were not closed. so I guess same happen in your application also, open your data classes and find the cursors that didn't closed and close them
Cursor window allocation of 2048 kb failed with rxjava adapter on room
It turns out that the problem was in RxJava's .subscribeOn(Schedulers.io())
for Flowable responses in RxJava Room adapter. Apparently it was starting threads but has never released them.
I've swapped Schedulers.io()
on fixed thread pool with up to 20 threads and it does go away.
android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed even after closing cursor
I was querying the database from a service. When I did it from an activity, the problem never occurred again.
Alongside querying, I was reading from the serial port within the same service. Maybe that caused the problem. However, when I used an activity instead of the service, the problem never happened again.
Related Topics
Error Strictmode$Androidblockguardpolicy.Onnetwork
How to Force the Action Bar to Be at the Bottom in Ics
Visual Studio (2015) Emulator for Android Not Working - Xde.Exe - Exit Code 3
How to Get Access Token After User Is Signed in from Gmail in Android
Android:Static Fields and Memory Leaks
Error: Status{Statuscode=Developer_Error, Resolution=Null}
How to Open a PDF via Intent from Sd Card
How to Set Time to Device Programmatically
How to Resolve Target 'Android-Xx'
Android: How to Select Texts from Webview
How to Scale/Resize Text to Fit a Textview
Geocoder.Getfromlocation Throws Ioexception on Android Emulator
Camera Activity Returning Null Android
How to Open or Simulate a Click on an Android Preference, Created with Xml, Programmatically