Skip to content
This repository has been archived by the owner on Apr 20, 2020. It is now read-only.

problem with SPV chain download (double lock?) #10

Open
mackuba opened this issue Oct 21, 2013 · 2 comments
Open

problem with SPV chain download (double lock?) #10

mackuba opened this issue Oct 21, 2013 · 2 comments
Labels

Comments

@mackuba
Copy link
Member

mackuba commented Oct 21, 2013

10/11/13 5:06:54.086 PM [0x0-0xa7da7d].com.grabhive.Hive: Caused by: com.google.bitcoin.store.BlockStoreException: File size on disk does not match expected size: 0 vs 641024

This is probably because of a lock on the SPV chain file set by another instance of Hive. The problem is that sometimes there's no other instance of Hive and the lock is still set.

@mackuba
Copy link
Member Author

mackuba commented Feb 10, 2014

This is appearing randomly, Wei had this a few weeks ago when her Mac crashed at some point and Hive couldn't start after reboot, and now a user reported this too.

This has nothing to do with the lock - the exception when a lock is set is the same exception class BlockStoreException, but with a different message. This happens when the memory-mapped chain file was not flushed from memory to disk for some reason (this isn't supposed to happen...).

@mackuba
Copy link
Member Author

mackuba commented Feb 11, 2014

Some fixes to make it possible to detect this error and fix it by deleting the chain file:

c4cfcbd
d0e1d8a

(I don't know how to prevent this from happening yet)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant