Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failed! hashPrevBlock == view.GetBestBlock() #6196

Closed
stijnsanders opened this issue May 27, 2015 · 5 comments

Comments

Projects
None yet
4 participants
@stijnsanders
Copy link

commented May 27, 2015

I installed bitcoin-qt 0.10.2 on a Windows XP, but started it with a wallet.dat from an older version from a computer that crashed before. It runs, syncing the block chain, but halts after a while with this message:

---------------------------
MinGW Runtime Assertion
---------------------------
Assertion failed!

Program: C:\Program Files\Bitcoin\bitcoin-qt.exe
File: main.cpp, Line 1660

Expression: hashPrevBlock == view.GetBestBlock()
---------------------------
Abort   Retry   Ignore   
---------------------------
@fresheneesz

This comment has been minimized.

Copy link

commented May 31, 2015

I'm seeing the exact same assertion failure on windows 8.1. I disconnected the drive the database is on while it was downloading for the first time. Oops. The program should have a better way to recover from this.

@fanquake

This comment has been minimized.

Copy link
Member

commented Jun 3, 2015

Are you sure you haven't run out of memory? see #5670 and #6001.
That was the issue on both occasions.

@stijnsanders

This comment has been minimized.

Copy link
Author

commented Jun 3, 2015

I was running out of space on the harddisk, but have moved the data dir to another drive with ample free space. It worked, then found the block data corrupt, restarted the block sync, and then trows this again at about 28 weeks behind.

@laanwj

This comment has been minimized.

Copy link
Member

commented Jun 16, 2015

You could try using the option (or in bitcoin.conf) -dbcache=16. There are other tips to reduce memory usage of bitcoind here: https://gist.github.com/laanwj/efe29c7661ce9b6620a7

@stijnsanders

This comment has been minimized.

Copy link
Author

commented Jun 16, 2015

I've found out the computer had 'default' power usage settings, so it would suspend after x hours of inactivity, but this was invisible to me by connecting to the machine via remote desktop... If the process was getting stalled or killed by this, it may explain why data got corrupt. I expect the system to run smoothly now, so am closing this issue. Thanks for your input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.