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 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.

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web18208

  • 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.
  • via GitHub by lxalln
    , 1 year ago
    Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
  • via GitHub by roundhill
    , 8 months ago
    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:524) at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:75) at com.fsck.k9.mailstore.migrations.MigrationTo51.db51MigrateMessageFormat(MigrationTo51.java:79) at com.fsck.k9.mailstore.migrations.Migrations.upgradeDatabase(Migrations.java:58) at com.fsck.k9.mailstore.StoreSchemaDefinition.upgradeDatabase(StoreSchemaDefinition.java:60) at com.fsck.k9.mailstore.StoreSchemaDefinition.doDbUpgrade(StoreSchemaDefinition.java:36) at com.fsck.k9.mailstore.LockableDatabase.openOrCreateDataspace(LockableDatabase.java:381) at com.fsck.k9.mailstore.LockableDatabase.open(LockableDatabase.java:354) at com.fsck.k9.mailstore.LocalStore.<init>(LocalStore.java:210) at com.fsck.k9.mailstore.LocalStore.getInstance(LocalStore.java:235) at com.fsck.k9.Account.getLocalStore(Account.java:1278) at com.fsck.k9.controller.MessagingController.setupPushing(MessagingController.java:4322) at com.fsck.k9.service.MailService.setupPushers(MailService.java:349) at com.fsck.k9.service.MailService.reschedulePushers(MailService.java:338) at com.fsck.k9.service.MailService.access$100(MailService.java:24) at com.fsck.k9.service.MailService$1.run(MailService.java:194) at com.fsck.k9.service.CoreService$1.run(CoreService.java:315) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818)

    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

    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    11 times, 7 months ago
    29 more bugmates