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

issue stijnsanders opened this issue on May 27, 2015
  1. stijnsanders commented at 8:31 PM on May 27, 2015: none

    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   
    ---------------------------
    
  2. laanwj added the label Bug on May 29, 2015
  3. laanwj added the label Windows on May 29, 2015
  4. fresheneesz commented at 7:11 AM on May 31, 2015: none

    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.

  5. fanquake commented at 2:40 PM on June 3, 2015: member

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

  6. stijnsanders commented at 8:33 PM on June 3, 2015: none

    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.

  7. laanwj commented at 12:54 PM on June 16, 2015: member

    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

  8. stijnsanders commented at 1:21 PM on June 16, 2015: none

    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.

  9. stijnsanders closed this on Jun 16, 2015

  10. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-15 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me