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

GitHub | ukoehler | 6 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    K9 Mail consistently crashing on email delete

    GitHub | 6 months ago | ukoehler
    java.lang.IllegalStateException: Couldn't read row 927, col 16 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
  2. 0
    samebug tip
    You expected a file in the SD card or internal memory, but you have to deal with a file from Google drive.
    via GitHub by forouher
  3. 0
    samebug tip
    The cursor might not be initalized.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    In cause your problem comes because of mediastore, you have to try changing Albums.ALBUM_ID, to Albums._ID
  6. 0

    Cursors, SQLite, and queries

    Stack Overflow | 2 years ago | atamakosi
    java.lang.IllegalStateException: Couldn't read row 0, col 4 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Couldn't read row 927, col 16 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.

    at android.database.CursorWindow.nativeGetString()
  2. Android Platform
    CursorWrapper.getString
    1. android.database.CursorWindow.nativeGetString(Native Method)
    2. android.database.CursorWindow.getString(CursorWindow.java:438)
    3. android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:51)
    4. android.database.CursorWrapper.getString(CursorWrapper.java:114)
    5. android.database.CursorWrapper.getString(CursorWrapper.java:114)
    5 frames
  3. com.fsck.k9
    EmailProvider$SpecialColumnsCursor.getString
    1. com.fsck.k9.provider.EmailProvider$SpecialColumnsCursor.getString(EmailProvider.java:796)
    1 frame
  4. Android Platform
    CursorWrapper.getString
    1. android.database.CursorWrapper.getString(CursorWrapper.java:114)
    2. android.database.CursorWrapper.getString(CursorWrapper.java:114)
    2 frames
  5. com.fsck.k9
    MessageList.onPrepareOptionsMenu
    1. com.fsck.k9.fragment.MessageListFragment.getReferenceForPosition(MessageListFragment.java:3069)
    2. com.fsck.k9.fragment.MessageListFragment.isLast(MessageListFragment.java:3062)
    3. com.fsck.k9.activity.MessageList.configureMenu(MessageList.java:1002)
    4. com.fsck.k9.activity.MessageList.onPrepareOptionsMenu(MessageList.java:938)
    4 frames
  6. Android Platform
    Activity.onPreparePanel
    1. android.app.Activity.onPreparePanel(Activity.java:2851)
    1 frame
  7. Android
    PhoneWindow$1.run
    1. com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:577)
    2. com.android.internal.policy.impl.PhoneWindow.doInvalidatePanelMenu(PhoneWindow.java:921)
    3. com.android.internal.policy.impl.PhoneWindow$1.run(PhoneWindow.java:259)
    3 frames
  8. Android Platform
    ActivityThread.main
    1. android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
    2. android.view.Choreographer.doCallbacks(Choreographer.java:580)
    3. android.view.Choreographer.doFrame(Choreographer.java:549)
    4. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
    5. android.os.Handler.handleCallback(Handler.java:739)
    6. android.os.Handler.dispatchMessage(Handler.java:95)
    7. android.os.Looper.loop(Looper.java:135)
    8. android.app.ActivityThread.main(ActivityThread.java:5343)
    8 frames
  9. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  10. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
    2 frames