Bitcoin Forum
April 26, 2024, 07:04:16 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin crashes after downloading the blockchain  (Read 1210 times)
mrich8 (OP)
Newbie
*
Offline Offline

Activity: 45
Merit: 0


View Profile
January 24, 2013, 05:11:35 AM
 #1

Bitcoin 0.7.2 on Windows XP. A few days ago the computer crashed. When I rebooted it, Bitcoin would not run. It had some BS error about the database and not enough disk space, but there is plenty of space. So I trashed the blockchain and everything except the wallet.dat and let it download again. It runs fine, I can see all of my transactions in the list, unconfirmed, until it gets to the very end of the blockchain, then it crashes with several exceptions that do not detail anything specific. If you try to load again it might do a Rescanning that takes a long time and then crashes again. One time it said the wallet.dat was corrupted and then crashed.

Just now I tried to load the program and it does load but the blockchain stopped downloading from around 6/27/2012, around block 185,000. Now I let it download the other blocks while I sleep.

Is it really a corrupted wallet.dat? Is there any remedy? I have a backup but it is a few months old. How does that work if I have to use the backup? Does it "fill in" with the coins I sent and received since then? What about new address used to receive coins not in the wallet backup?
1714158256
Hero Member
*
Offline Offline

Posts: 1714158256

View Profile Personal Message (Offline)

Ignore
1714158256
Reply with quote  #2

1714158256
Report to moderator
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714158256
Hero Member
*
Offline Offline

Posts: 1714158256

View Profile Personal Message (Offline)

Ignore
1714158256
Reply with quote  #2

1714158256
Report to moderator
1714158256
Hero Member
*
Offline Offline

Posts: 1714158256

View Profile Personal Message (Offline)

Ignore
1714158256
Reply with quote  #2

1714158256
Report to moderator
1714158256
Hero Member
*
Offline Offline

Posts: 1714158256

View Profile Personal Message (Offline)

Ignore
1714158256
Reply with quote  #2

1714158256
Report to moderator
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1025



View Profile WWW
January 24, 2013, 02:38:00 PM
 #2

I suspect that your computer is crashing because of a hardware problem. Lemme guess which one:

1. Overclocking CPU
2. Laptop

Bitcoin does not have any error message relating to disk space; when it runs out of space to download the blockchain it just crashes. Such an error would be from the operating system. Errors in the disk file allocation table may report incorrect free space to you or to applications.

Bitcoin cannot run on a computer that has hardware problems. Laptops commonly fail because they have undersized cpu coolers that get plugged up with lint. Overclockers usually overclock until just before the computer crashes all the time, but Bitcoin won't tolerate a CPU that makes even occasional calculation errors from overclocking. Your computer crashing will also cause disk file system problems, you should do a disk check on each drive, and reboot when prompted.

As long as you have a recent backup of wallet.dat on a different media, your bitcoins are safe. There are 100 addresses pre-created in a keypool, only if you have made more than 100 transactions or manually added more addresses since the wallet backup may there be loss.
mrich8 (OP)
Newbie
*
Offline Offline

Activity: 45
Merit: 0


View Profile
January 25, 2013, 12:28:13 AM
 #3

I suspect that your computer is crashing because of a hardware problem. Lemme guess which one:

1. Overclocking CPU
2. Laptop

No. This is a dedicated computer which only runs a mining program and Bitcoin. It is not overclocked, it is not a laptop. It is a well ventilated desktop.


Bitcoin does not have any error message relating to disk space; when it runs out of space to download the blockchain it just crashes. Such an error would be from the operating system. Errors in the disk file allocation table may report incorrect free space to you or to applications.reboot when prompted.

Here is an exact error I received a few times:

EXCEPTION: 11DbException
Db::get: Not enough space
C:\Users\Owner\Desktop\Bitcoin\bitcoin.exe in AppInit()

Now when I load it, I get a "Runaway Exception" after it sits there for several hours not downloading any blocks.
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1024



View Profile
January 25, 2013, 01:42:00 AM
 #4

Try -salvagewallet first.

The usefulness of your backup depends on your keypoolsize (default: 100) and how many keys you've used since the backup.  Every time you ask for a new address, you use one key from the pool.  Every time you send and get change, you use one key from the pool.  If your wallet isn't busy, a backup from a few months ago may still be fine.  Try -salvagewallet first anyway.

The "not enough space" message probably doesn't mean what you think it means.  Check your db.log file for clues.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
January 25, 2013, 02:15:57 PM
 #5

Try -salvagewallet first.

The usefulness of your backup depends on your keypoolsize (default: 100) and how many keys you've used since the backup.  Every time you ask for a new address, you use one key from the pool.  Every time you send and get change, you use one key from the pool.  If your wallet isn't busy, a backup from a few months ago may still be fine.  Try -salvagewallet first anyway.

The "not enough space" message probably doesn't mean what you think it means.  Check your db.log file for clues.

hmm, I've always put 'keys=0' in my config file, to stop wallet bloat
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1025



View Profile WWW
January 25, 2013, 09:04:15 PM
 #6

Try -salvagewallet first.

The usefulness of your backup depends on your keypoolsize (default: 100) and how many keys you've used since the backup.  Every time you ask for a new address, you use one key from the pool.  Every time you send and get change, you use one key from the pool.  If your wallet isn't busy, a backup from a few months ago may still be fine.  Try -salvagewallet first anyway.

The "not enough space" message probably doesn't mean what you think it means.  Check your db.log file for clues.

hmm, I've always put 'keys=0' in my config file, to stop wallet bloat
This is a very bad idea. When you send a payment, the remainder of an input is sent back to you to a new address. Normally this is sent to one of 100 reserve pool addresses that are pre-created. If you make a backup of your wallet with no reserve keys, as soon as you start spending money, you will be receiving change back at addresses not in your backup, making your backup instantly obsolete, and guaranteeing the loss of funds if you need to use the backup.
John (John K.)
Global Troll-buster and
Legendary
*
Offline Offline

Activity: 1288
Merit: 1225


Away on an extended break


View Profile
January 26, 2013, 09:35:38 AM
 #7

Try -salvagewallet first.

The usefulness of your backup depends on your keypoolsize (default: 100) and how many keys you've used since the backup.  Every time you ask for a new address, you use one key from the pool.  Every time you send and get change, you use one key from the pool.  If your wallet isn't busy, a backup from a few months ago may still be fine.  Try -salvagewallet first anyway.

The "not enough space" message probably doesn't mean what you think it means.  Check your db.log file for clues.

hmm, I've always put 'keys=0' in my config file, to stop wallet bloat
This is a very bad idea. When you send a payment, the remainder of an input is sent back to you to a new address. Normally this is sent to one of 100 reserve pool addresses that are pre-created. If you make a backup of your wallet with no reserve keys, as soon as you start spending money, you will be receiving change back at addresses not in your backup, making your backup instantly obsolete, and guaranteeing the loss of funds if you need to use the backup.

This. I usually set keys=100 to make my backups easier.
mrich8 (OP)
Newbie
*
Offline Offline

Activity: 45
Merit: 0


View Profile
January 26, 2013, 07:24:59 PM
 #8

I am starting to think the wallet is not corrupted. I backed up the current wallet and deleted everything Bitcoin related from the computer. Then I installed again and let it download the blockchain with a new empty wallet. When it gets somewhere near the end, Bitcoin still crashes with exceptions!

So it could be a bad CPU (but I did not overclock), or more likely some bad RAM or a drive corruption.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!