nhachicha / SnappyDB

A key-value database for Android
1.78k stars 220 forks source link

IO error: lock already held by process #87

Open l114624915 opened 8 years ago

l114624915 commented 8 years ago

09-30 17:33:39.023 30131-30167/com.xxx.android W/System.err: com.snappydb.SnappydbException: Failed to open/create database: IO error: lock /data/data/com.xxx.android//appdatabase/LOCK: already held by process 09

guimellon commented 7 years ago

did you figure out how to solve this problem?

davidtcdeveloper commented 7 years ago

That happens to me too. Basically, you can't have multiple threads working in the same database at the same time. Make sure you access the database in the same thread always.