Automattic / Automattic/pocket-casts-android
IllegalStateException: Couldn't read row 545, col 4 from CursorWindow. Make sure the Cursor is initialized correctly be...
- Dominant language
- Kotlin
- Stars
- 2.8k
- Forks
- 308
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 143
Description
### Description
Sentry Issue: [POCKET-CASTS-ANDROID-2PN](https://a8c.sentry.io/issues/3715459562/?referrer=github_integration)
```
IllegalStateException: Couldn't read row 545, col 4 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:539)
at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:78)
at au.com.shiftyjelly.pocketcasts.models.db.dao.EpisodeDao_Impl$43.call(EpisodeDao_Impl.java:7086)
at au.com.shiftyjelly.pocketcasts.models.db.dao.EpisodeDao_Impl$43.call(EpisodeDao_Impl.java:0)
...
(10 additional frame(s) were not displayed)
```
Zendesk: 6388780-zd-woothemes
### Step-by-step reproduction instructions
Unable to reproduce so far, seems like it happens occasionally when there are new episodes in a podcast and the podcast is updated.
### Screenshots or screen recording
_No response_
### Did you search for existing bug reports?
- [X] I have searched for existing bug reports.
### Device, Operating system, and Pocket Casts app version
_No response_
Contributor guide
Research direction
Start with the Sentry stack trace at au.com.shiftyjelly.pocketcasts.models.db.dao.EpisodeDao_Impl$43.call, especially line 7086, and inspect the EpisodeDao query and cursor access involved. Investigate the reported scenario of new episodes arriving while a podcast is updated; done means identifying and fixing the cursor failure and validating the behavior with a reproducible test or confirmed reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- database, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100