Bitcoin Core Wallet Stuck on Processing Blocks

7 replies 444 views
Posts: 43 · Reputation: 203
#1Sep 16, 2021, 12:52 AM
I just opened my bitcoin core wallet on my Mac after a long break, and I can see the Overview page. But when I try to go into the wallet, it just hangs with that spinning rainbow wheel and shows 'Processing blocks on disk...' in the bottom left. It's been like this for a full day now. Anyone know how to fix this? Thanks!
4 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#2Sep 16, 2021, 01:12 AM
Your node is either rebuilding your block index or transaction index for some reason. (there's not enough info to tell why) That's expected to be a slow process but for full 24 hours and counting, your hardware must be old, using external HDD or something since it's even freezing consistently during reindex. But you can check its progress by checking your "debug.log" file (open with text editor) with the block height of the latest "UpdateTip:" lines. The file is in your data directory: en.bitcoin.it/wiki/Data_directory#Default_Location
4 Reply Quote Share
paul2017Senior Member
Posts: 218 · Reputation: 1426
#3Sep 16, 2021, 02:50 AM
For as long as I have been using Bitcoin Core on PC, there has always the problem of the UI being unresponsive when syncing a large number of blocks. I don't know the cause, but it is poor software design. I don't know why it hasn't been fixed, but it has been a problem for a long time so I assume that it will never be fixed.
3 Reply Quote Share
coin_sigmaLegendary
Posts: 1275 · Reputation: 5553
#4Sep 16, 2021, 10:22 PM
That's fixable by replacing your RAM and drive or configuring and reducing the dbcache to ensure the RAM won't hit the maximum usage. If you have slow RAM and drive this would cause unresponsive UI even the whole system is stuck because the Bitcoin core is eating many resources including CPU.
3 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#5Sep 16, 2021, 11:19 PM
Yeah, it's annoying specially if you need to close it. Had to resort to issuing 'stop' command though bitcoin-cli (with server=1 config) when that was my issue. In my experience; it's much more severe when I was using an HDD to store the datadir, it's almost unresponsive 99% of the time until it reach the tip. When I switched to SSD, I noticed that although it freezes when catching up to the tip, it only takes a few second to be responsive again.
3 Reply Quote Share
hash_bossLegendary
Posts: 1166 · Reputation: 5261
#6Sep 17, 2021, 04:48 AM
FWIW, https://github.com/bitcoin-core/gui/issues/299 explain the cause. Is it that bad? I never had to resort for such thing even though i store everything on HDD.
2 Reply Quote Share
LuckyCoinLegendary
Posts: 832 · Reputation: 4795
#7Sep 17, 2021, 04:54 AM
Well, running a disk-intensive process on an HDD along with code that explicitly hangs the GUI thread is always going to be a recipe for disaster. Even for a healthy disk, the most reliable ones (I mean the ones you see in data centers from Seagate and WD) would struggle with lots of small reads and writes, which is exactly what the wallet updating code seems to do.
1 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#8Sep 17, 2021, 07:17 AM
It wasn't that bad, just an annoyance during certain situations while it's syncing and unresponsive. IIRC, Issuing commands through "bitcoin-cli" while "bitcoin-qt" is unresponsive took longer to return a response. Of course, shouldn't be an issue if you're using "bitcoind". For someone (like me) who can't run Bitcoin Core 24/7, I always have to catch-up to the tip at least once a day. The GUI was almost non-responsive, but only until it fully synced. Not to mention, the time it took was significantly longer than my setup today. But once it's synced, it rarely freezes. Never had that issue again since I moved the datadir to an internal SSD.
1 Reply Quote Share

Related topics