google / google/ExoPlayer

SQLiteDiskIOException disk I/O error (code 4874 SQLITE_IOERR_SHMSIZE)

Open
#9,695 3 comments 0 reactions 1 assignee Claimed by @marcbaechinger View on GitHub
bug
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

- Clear reproduction steps including observed and expected behavior
- reproduction steps:
- when device receive 'DEVICE_STORAGE_LOW' event
- create SimpleCache object

- expected:
- no crash

- Output of running "adb bugreport" in the console shortly after encountering

```
SQLiteDiskIOException
disk I/O error (code 4874 SQLITE_IOERR_SHMSIZE)
android.database.sqlite.SQLiteConnection in nativeExecuteForLong
android.database.sqlite.SQLiteConnection in executeForLong at line 655
android.database.sqlite.SQLiteSession in executeForLong at line 652
android.database.sqlite.SQLiteStatement in simpleQueryForLong at line 107
android.database.DatabaseUtils in longForQuery at line 842
android.database.DatabaseUtils in longForQuery at line 830
android.database.sqlite.SQLiteDatabase in getVersion at line 956
android.database.sqlite.SQLiteOpenHelper in getDatabaseLocked at line 371
android.database.sqlite.SQLiteOpenHelper in getReadableDatabase at line 322
com.google.android.exoplayer2.upstream.cache.CachedContentIndex$DatabaseStorage in exists at line 799
com.google.android.exoplayer2.upstream.cache.CachedContentIndex in initialize at line 202
com.google.android.exoplayer2.upstream.cache.SimpleCache in initialize at line 582
com.google.android.exoplayer2.upstream.cache.SimpleCache in access$000 at line 49
com.google.android.exoplayer2.upstream.cache.SimpleCache$1 in run at line 268
```

- ExoPlayer version number: 2.14.0
- Android version: Android 9
- Android device: Meizu 16T

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.