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


Samebug tips

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 web

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

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

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

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

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

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

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

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

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

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

Stack trace

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.nativeGetLong(Native Method)
	at android.database.CursorWindow.getLong(CursorWindow.java:511)
	at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:75)
	at de.greenrobot.dao.AbstractDao.loadCurrent(AbstractDao.java:412)
	at de.greenrobot.dao.InternalQueryDaoAccess.loadCurrent(InternalQueryDaoAccess.java:17)
	at de.greenrobot.dao.query.LazyList.loadEntity(LazyList.java:259)
	at de.greenrobot.dao.query.LazyList.get(LazyList.java:239)
	at com.shazzle.homebridge.adapter.EmailListAdapter.getItemId(EmailListAdapter.java:89)
	at android.widget.AdapterView.rememberSyncState(AdapterView.java:1226)
	at android.widget.AdapterView$AdapterDataSetObserver.onChanged(AdapterView.java:820)
	at android.widget.AbsListView$AdapterDataSetObserver.onChanged(AbsListView.java:6140)
	at android.database.DataSetObservable.notifyChanged(DataSetObservable.java:37)
	at android.widget.BaseAdapter.notifyDataSetChanged(BaseAdapter.java:50)
	at com.shazzle.homebridge.fragment.MailboxFragment.onLoadFinished(MailboxFragment.java:302)
	at com.shazzle.homebridge.fragment.MailboxFragment.onLoadFinished(MailboxFragment.java:64)
	at android.support.v4.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:476)
	at android.support.v4.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:444)
	at android.support.v4.content.Loader.deliverResult(Loader.java:126)
	at com.shazzle.homebridge.loader.EmailLoader.deliverResult(EmailLoader.java:79)
	at com.shazzle.homebridge.loader.EmailLoader.deliverResult(EmailLoader.java:14)
	at android.support.v4.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:249)
	at android.support.v4.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:77)
	at android.support.v4.content.ModernAsyncTask.finish(ModernAsyncTask.java:466)
	at android.support.v4.content.ModernAsyncTask.access$400(ModernAsyncTask.java:48)
	at android.support.v4.content.ModernAsyncTask$InternalHandler.handleMessage(ModernAsyncTask.java:483)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:135)
	at android.app.ActivityThread.main(ActivityThread.java:5254)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

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, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
11 times, 10 months ago
29 more bugmates