Electric-Coin-Company / zcash-android-wallet-sdk

Native Android SDK for Zcash
MIT License
5 stars 9 forks source link

Database disk image is malformed while scanning new blocks #1440

Closed HonzaR closed 4 months ago

HonzaR commented 4 months ago

Describe the issue

Under some conditions, we've been able to experience and reproduce possibly concurrent access to our database tables:

CompactBlockProcessor.scanBatchOfBlocks$zcash_android_sdk_2_1_1_release(): Failed while scanning batch BlockBatch(order=13, range=BlockHeight(value=2223701)..BlockHeight(value=2223800), blocks=100) with java.lang.RuntimeException: Rust error while scanning blocks (limit 100): The underlying datasource produced the following error: database disk image is malformed

1434 could be related

Can you reliably reproduce the issue?

If so, please list the steps to reproduce below:

  1. New Zashi app install
  2. Restore a sufficiently old wallet
  3. Wait until the failure occurs or sync is done

Expected behaviour

No failure while syncing

Actual behavior + errors

Logs from the SDK: error_log.pdf