Skip to content

SQLiteDatabaseLockedException: database is locked (code 5) #210

@ramack

Description

@ramack
	at android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:938)
	at android.database.sqlite.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:754)
	at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:64)
	at android.database.sqlite.SQLiteDatabase.updateWithOnConflict(SQLiteDatabase.java:2113)
	at android.database.sqlite.SQLiteDatabase.update(SQLiteDatabase.java:2058)
	at de.rampro.activitydiary.db.ActivityDiaryContentProvider.update(ActivityDiaryContentProvider.java:418)
	at android.content.ContentProvider$Transport.update(ContentProvider.java:359)
	at android.content.ContentResolver.update(ContentResolver.java:1678)
	at android.content.AsyncQueryHandler$WorkerHandler.handleMessage(AsyncQueryHandler.java:100)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:164)
	at android.os.HandlerThread.run(HandlerThread.java:65)

probably it occurs due to the conditions, as they tend to use
mOpenHelper.getReadableDatabase(); instead of the ContentProvider

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions