Android Question KeyValueStore2 Debug error information

cxdzbl

Active Member
Licensed User
Class not found: ycwx.ycsst.customlistview, trying: b4a.liveChat.customlistview
Error occurred on line: 26 (KeyValueStore)
java.lang.IllegalStateException: Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
at android.database.CursorWindow.nativeGetBlob(Native Method)
at android.database.CursorWindow.getBlob(CursorWindow.java:403)
at android.database.AbstractWindowedCursor.getBlob(AbstractWindowedCursor.java:45)
at anywheresoftware.b4a.sql.SQL$CursorWrapper.GetBlob2(SQL.java:431)
at b4a.liveChat.keyvaluestore._get(keyvaluestore.java:108)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:339)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at b4a.liveChat.live_chat1.afterFirstLayout(live_chat1.java:102)
at b4a.liveChat.live_chat1.access$000(live_chat1.java:17)
at b4a.liveChat.live_chat1$WaitForLayout.run(live_chat1.java:80)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
 

cxdzbl

Active Member
Licensed User
Android SQLite engine is limited to blobs of up to 1mb or 2mb (depending on the Android version). You are probably hitting this limit.
Use scene:
Using keyvaluestore to save the chat head, each head size of 10K--100K, when stored too much when the above problems.
So what can I do to solve the BLOBS size problem?.
 
Upvote 0
Top