yanzhenjie / Kalle

:apple: Http client for Android platform.
https://yanzhenjie.com/Kalle
Apache License 2.0
592 stars 98 forks source link

高频请求导致 CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. #103

Open fairytale110 opened 4 years ago

fairytale110 commented 4 years ago

如题 POST 高频率请求同一个接口报错:

System.err: Caused by: android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. 
System.err:     at android.database.CursorWindow.<init>(CursorWindow.java:108)
System.err:     at android.database.AbstractWindowedCursor.clearOrCreateWindow(AbstractWindowedCursor.java:198)
System.err:     at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:139)
System.err:     at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
System.err:     at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:197)
System.err:     at android.database.AbstractCursor.moveToNext(AbstractCursor.java:245)
System.err:     at com.yanzhenjie.kalle.cookie.db.CookieDao.getList(CookieDao.java:186)
System.err:     at com.yanzhenjie.kalle.cookie.db.CookieDao.getList(CookieDao.java:144)
System.err:     at com.yanzhenjie.kalle.cookie.DBCookieStore.get(DBCookieStore.java:109)
System.err:     at com.yanzhenjie.kalle.cookie.CookieManager.get(CookieManager.java:47)
System.err:     at com.yanzhenjie.kalle.connect.http.ConnectInterceptor.connect(ConnectInterceptor.java:119)
System.err:     ... 14 more