android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode

GitHub | JakeWharton | 2 months ago
  1. 0

    GitHub comment 139#249851416

    GitHub | 2 months ago | JakeWharton
    android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode
  2. 0

    database is locked (code 5)

    GitHub | 2 months ago | yuwu
    android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Android Jelly bean database is locked (code 5)

    Stack Overflow | 4 years ago | mtraxdroid
    android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA al_mode
  5. 0

    Failed to open Database in android app

    Stack Overflow | 5 years ago | Siva K
    android.database.sqlite.SQLiteDatabaseLockedException: database is locked
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. android.database.sqlite.SQLiteDatabaseLockedException

    database is locked (code 5): , while compiling: PRAGMA journal_mode

    at android.database.sqlite.SQLiteConnection.nativePrepareStatement()
  2. Android Platform
    SQLiteOpenHelper.getReadableDatabase
    1. android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
    2. android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:889)
    3. android.database.sqlite.SQLiteConnection.executeForString(SQLiteConnection.java:634)
    4. android.database.sqlite.SQLiteConnection.setJournalMode(SQLiteConnection.java:320)
    5. android.database.sqlite.SQLiteConnection.setWalModeFromConfiguration(SQLiteConnection.java:294)
    6. android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:215)
    7. android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:193)
    8. android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463)
    9. android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185)
    10. android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177)
    11. android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:804)
    12. android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:789)
    13. android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:694)
    14. android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:988)
    15. android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:256)
    16. android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:224)
    17. android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:188)
    17 frames
  3. com.squareup.sqlbrite
    BriteDatabase.query
    1. com.squareup.sqlbrite.BriteDatabase.getReadableDatabase(BriteDatabase.java:138)
    2. com.squareup.sqlbrite.BriteDatabase.query(BriteDatabase.java:375)
    2 frames
  4. blackhole.androiddesign.realm
    RealmActivity$2.call
    1. blackhole.androiddesign.realm.model.RealmActivity$2.call(RealmActivity.java:57)
    2. blackhole.androiddesign.realm.model.RealmActivity$2.call(RealmActivity.java:52)
    2 frames
  5. rxjava
    ScheduledAction.run
    1. rx.Observable.unsafeSubscribe(Observable.java:10151)
    2. rx.internal.operators.OperatorSubscribeOn$1.call(OperatorSubscribeOn.java:94)
    3. rx.internal.schedulers.CachedThreadScheduler$EventLoopWorker$1.call(CachedThreadScheduler.java:228)
    4. rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
    4 frames
  6. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
    4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
    5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    7. java.lang.Thread.run(Thread.java:841)
    7 frames