Hello! I'm using bitcoin-kit in production and for some users application crashing because of
Exception android.database.sqlite.SQLiteReadOnlyDatabaseException: attempt to write a readonly database (code 1032 SQLITE_READONLY_DBMOVED)
at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount
at android.database.sqlite.SQLiteConnection.executeForChangedRowCount (SQLiteConnection.java:913)
at android.database.sqlite.SQLiteSession.executeForChangedRowCount (SQLiteSession.java:756)
at android.database.sqlite.SQLiteStatement.executeUpdateDelete (SQLiteStatement.java:67)
at androidx.sqlite.db.framework.FrameworkSQLiteStatement.executeUpdateDelete (FrameworkSQLiteStatement.kt)
at io.horizontalsystems.bitcoincore.storage.BlockHashDao_Impl.delete (BlockHashDao_Impl.java:129)
at io.horizontalsystems.bitcoincore.storage.Storage.deleteBlockchainBlockHashes (Storage.kt)
at io.horizontalsystems.bitcoincore.blocks.BlockSyncer.clearBlockHashes (BlockSyncer.kt)
at io.horizontalsystems.bitcoincore.blocks.BlockSyncer.prepareForDownload (BlockSyncer.kt)
at io.horizontalsystems.bitcoincore.blocks.BlockSyncer.downloadFailed (BlockSyncer.kt)
at io.horizontalsystems.bitcoincore.blocks.InitialBlockDownload.onPeerDisconnect (InitialBlockDownload.kt)
at io.horizontalsystems.bitcoincore.network.peer.PeerGroup.onDisconnect (PeerGroup.kt)
at io.horizontalsystems.bitcoincore.network.peer.Peer.disconnected (Peer.kt)
at io.horizontalsystems.bitcoincore.network.peer.PeerConnection.run (PeerConnection.kt)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644)
at java.lang.Thread.run (Thread.java:1012)
This was reproducing with 1.2.0, I updated to master-SNAPSHOT version, but I still have this issue. Could you, please, take a look?
Hello! I'm using bitcoin-kit in production and for some users application crashing because of
Exception android.database.sqlite.SQLiteReadOnlyDatabaseException: attempt to write a readonly database (code 1032 SQLITE_READONLY_DBMOVED)
at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount
at android.database.sqlite.SQLiteConnection.executeForChangedRowCount (SQLiteConnection.java:913)
at android.database.sqlite.SQLiteSession.executeForChangedRowCount (SQLiteSession.java:756)
at android.database.sqlite.SQLiteStatement.executeUpdateDelete (SQLiteStatement.java:67)
at androidx.sqlite.db.framework.FrameworkSQLiteStatement.executeUpdateDelete (FrameworkSQLiteStatement.kt)
at io.horizontalsystems.bitcoincore.storage.BlockHashDao_Impl.delete (BlockHashDao_Impl.java:129)
at io.horizontalsystems.bitcoincore.storage.Storage.deleteBlockchainBlockHashes (Storage.kt)
at io.horizontalsystems.bitcoincore.blocks.BlockSyncer.clearBlockHashes (BlockSyncer.kt)
at io.horizontalsystems.bitcoincore.blocks.BlockSyncer.prepareForDownload (BlockSyncer.kt)
at io.horizontalsystems.bitcoincore.blocks.BlockSyncer.downloadFailed (BlockSyncer.kt)
at io.horizontalsystems.bitcoincore.blocks.InitialBlockDownload.onPeerDisconnect (InitialBlockDownload.kt)
at io.horizontalsystems.bitcoincore.network.peer.PeerGroup.onDisconnect (PeerGroup.kt)
at io.horizontalsystems.bitcoincore.network.peer.Peer.disconnected (Peer.kt)
at io.horizontalsystems.bitcoincore.network.peer.PeerConnection.run (PeerConnection.kt)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644)
at java.lang.Thread.run (Thread.java:1012)
This was reproducing with 1.2.0, I updated to master-SNAPSHOT version, but I still have this issue. Could you, please, take a look?