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

tip

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.

tip

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

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

  • GitHub comment 1988#271770230
    via GitHub by gdriskell
    ,
  • GitHub comment 10#218404525
    via GitHub by Daio-io
    ,
  • GitHub comment 413#290922952
    via GitHub by di72nn
    ,
  • GitHub comment 73#35058494
    via GitHub by PankaJJakhar
    ,
  • Exception on updateIndex
    via GitHub by yuzkan
    ,
  • GitHub comment 446#161057372
    via GitHub by smholsen
    ,
  • GitHub comment 200#228713812
    via GitHub by nAkhmedov
    ,
    • 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)

    Users with the same issue

    jk
    jk1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    maxxi
    maxxi11 times, last one,
    29 more bugmates