java.lang.IllegalStateException: Couldn't read row 22, col 1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.


Samebug tips2

If your row exceed the limit of 2mb of SQLite you're gonna receive this exception, consider using your database just for filepaths and then store your files in a filesystem.


7 months ago
Expert tip

This is caused by issue #73 in couchbase-lite-java-core, and it seems to have been fixed.


4 months ago
Expert tip

Solutions on the web120

Solution icon of github
Couldn't read row 22, col 1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

Solution icon of github
via GitHub by tonyr59h
, 1 year ago
Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

Solution icon of web
via JIRA by Ashveen Iyer, 1 year ago
Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

Solution icon of stackoverflow
Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

Solution icon of stackoverflow
via Stack Overflow by user2375628
, 1 year ago
Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

Solution icon of stackoverflow
via Stack Overflow by Jilberta
, 1 year ago
Couldn't read row 9, col 1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

Solution icon of stackoverflow
Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

Solution icon of web
Couldn't read row 0, col 1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

Solution icon of github
Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

Solution icon of github
Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

Stack trace

java.lang.IllegalStateException: Couldn't read row 22, col 1 from CursorWindow.  Make sure the Cursor is initialized correctly before accessing data from it.
	at android.database.CursorWindow.nativeGetLong(CursorWindow.java)
	at android.database.CursorWindow.getLong(CursorWindow.java:511)
	at android.database.CursorWindow.getInt(CursorWindow.java:578)
	at android.database.AbstractWindowedCursor.getInt(AbstractWindowedCursor.java:69)
	at org.wordpress.android.WordPressDB.getPostFromCursor(WordPressDB.java:1267)
	at org.wordpress.android.WordPressDB.getPostsListPosts(WordPressDB.java:1238)
	at org.wordpress.android.ui.posts.adapters.PostsListAdapter$LoadPostsTask.doInBackground(PostsListAdapter.java:654)
	at org.wordpress.android.ui.posts.adapters.PostsListAdapter$LoadPostsTask.doInBackground(PostsListAdapter.java:636)
	at android.os.AsyncTask$2.call(AsyncTask.java:288)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
	at java.lang.Thread.run(Thread.java:831)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
29 more bugmates