Getting "Long monitor contention with owner Thread" log message

Hello,

I am getting following log message:

Long monitor contention with owner Thread-5 (9179) at void net.sqlcipher.database.SQLiteCompiledSql.native_compile(java.lang.String)(SQLiteCompiledSql.java:-2) waiters=0 in net.sqlcipher.database.SQLiteDatabase net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase(byte[]) for 3.814s

Sometimes, app crash error is received.

What would be missing here that cause such behavior.

Hi @Doli

This may be caused by the usage of synchronized within the source of SQLCipher for Android (see this for reference). We have been working on a new version of SQLCipher for Android which will have much better concurrency support. We hope to have a preview available soon, but I cannot provide a timeframe at this time.