2

我在我的 android 应用程序中使用 SqlCipher 来加密数据库。我的应用程序可以在线和离线工作,并且有许多数据库事务。

我正在使用 SQLCipher 3.5.7 版本。

我很少遇到以下异常,它主要发生在三星设备中。我无法重现异常。请帮忙。

java.util.concurrent.TimeoutException: net.sqlcipher.database.SQLiteCompiledSql.finalize() timed out after 60 seconds at java.lang.Object.wait(Native Method) at 
java.lang.Thread.parkFor$(Thread.java:2137) at 
sun.misc.Unsafe.park(Unsafe.java:358) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190) at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:868) at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:900) at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1223) at 

java.util.concurrent.locks.ReentrantLock$FairSync.lock(ReentrantLock.java:225) at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:286) at 
net.sqlcipher.database.SQLiteDatabase.lock(SQLiteDatabase.java:553) at 
net.sqlcipher.database.SQLiteCompiledSql.releaseSqlStatement(SQLiteCompiledSql.java:106) at 
net.sqlcipher.database.SQLiteCompiledSql.finalize(SQLiteCompiledSql.java:152) at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:250) at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:237) at java.lang.Daemons$Daemon.run(Daemons.java:103) at java.lang.Thread.run(Thread.java:764)
4

0 回答 0