Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
After installing Bitcoin Core 26.0 in Windows Pro 11 and starting IBD, Core crashes.
I know Windows might not be exactly ideal, but I like to run a pruned node on my work laptop as well. I didn’t set pruning yet by the way, I started Core just with the standard settings.
Bitcoin Core crashes and the following error pops up in debug.log:
ERROR: ReadBlockFromDisk: Deserialize or I/O error - ReadCompactSize(): size too large: iostream error at FlatFilePos(nFile=327, nPos=8)
Expected behaviour
I expect to get to the tip of the chain, but unfortunately the chain gets corrupted every time.
Steps to reproduce
There are no settings, no bitcoin.conf file.
The problem persists after reindexing. It also persists after removing Core and removing the Bitcoin folder in %appdata% and trying a fresh start.
The disk is an NVMe Samsung 970 Evo Plus 2 TB. I read that the problem should be due to disk corruption. I tried the Samsung Magician program, which did a full scan for a whopping 18 hours, but didn’t find any issues. Also tried Minitool Partition Wizard, which found no issues either.
I thought the problem could be the laptop going into sleep mode. However, after disabling sleep mode, and trying to sync again, I found out this doesn’t cause the issue either.
Relevant log output
First attempt for which I have debug.log file:
02024-01-16T11:39:33Z UpdateTip: new best=00000000000000001240f87e370943617c128a8d098b3cad6bd06e4c0927c3fe height=372076 version=0x00000003 log2_work=83.275584 tx=81612997 date='2015-08-29T14:53:41Z' progress=0.085632 cache=115.5MiB(1048378txo)
12024-01-16T11:39:33Z UpdateTip: new best=00000000000000000f8136ee9499e2920b99510bbc0bef7a2dfd95e49a911b99 height=372077 version=0x00000003 log2_work=83.275613 tx=81613437 date='2015-08-29T14:58:17Z' progress=0.085632 cache=115.5MiB(1048327txo)
22024-01-16T11:39:33Z ERROR: ReadBlockFromDisk: Deserialize or I/O error - ReadCompactSize(): size too large: iostream error at FlatFilePos(nFile=327, nPos=8)
32024-01-16T11:39:33Z *** Failed to read block
42024-01-16T11:39:33Z Error: A fatal internal error occurred, see debug.log for details
52024-01-16T13:01:41Z ERROR: ProcessNewBlock: ActivateBestChain failed (Failed to read block)
62024-01-16T13:01:42Z New outbound-full-relay v1 peer connected: version: 70016, blocks=826027, peer=37
72024-01-16T13:01:42Z Synchronizing blockheaders, height: 826027 (~100.00%)
82024-01-16T13:01:42Z tor: Thread interrupt
92024-01-16T13:01:42Z torcontrol thread exit
102024-01-16T13:01:42Z addcon thread exit
112024-01-16T13:01:42Z opencon thread exit
122024-01-16T13:01:42Z Shutdown: In progress...
132024-01-16T13:01:42Z net thread exit
142024-01-16T13:01:43Z ERROR: ReadBlockFromDisk: Deserialize or I/O error - ReadCompactSize(): size too large: iostream error at FlatFilePos(nFile=327, nPos=8)
152024-01-16T13:01:43Z *** Failed to read block
162024-01-16T13:01:43Z Error: A fatal internal error occurred, see debug.log for details
172024-01-16T13:01:43Z ERROR: ProcessNewBlock: ActivateBestChain failed (Failed to read block)
182024-01-16T13:01:43Z msghand thread exit
192024-01-16T13:01:43Z DumpAnchors: Flush 0 outbound block-relay-only peer addresses to anchors.dat started
202024-01-16T13:01:43Z DumpAnchors: Flush 0 outbound block-relay-only peer addresses to anchors.dat completed (0.01s)
212024-01-16T13:01:44Z scheduler thread exit
222024-01-16T13:01:44Z Writing 0 unbroadcast transactions to disk.
232024-01-16T13:01:44Z Dumped mempool: 2.8e-05s to copy, 0.01356s to dump
242024-01-16T13:01:44Z Flushed fee estimates to fee_estimates.dat.
Another attempt from scratch:
2024-01-16T17:48:48Z UpdateTip: new best=0000000000000000002cf0d7bfe0db7ae76733bd0cfb72ae44db3043d60ef8fc height=385247 version=0x00000003 log2_work=83.646829 tx=94144065 date=‘2015-11-25T07:28:22Z’ progress=0.098767 cache=138.9MiB(1283001txo) 2024-01-16T17:48:48Z ERROR: ReadBlockFromDisk: Deserialize or I/O error - ReadCompactSize(): size too large: iostream error at FlatFilePos(nFile=380, nPos=8136310) 2024-01-16T17:48:48Z *** Failed to read block 2024-01-16T17:48:48Z Error: A fatal internal error occurred, see debug.log for details
How did you obtain Bitcoin Core
Pre-built binaries
What version of Bitcoin Core are you using?
v26.0.0
Operating system and version
Windows 11 Pro
Machine specifications
Asus ExpertBook B5 B5602CBA-MB0220X Intel Core i7-1260P 16 GB DDR5 RAM Added: NVMe Samsung SSD 970 EVO Plus 2TB.