nhachicha/SnappyDB

IO error: lock already held by process

l114624915 opened this issue · 2 comments

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

did you figure out how to solve this problem?

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.