Bitcoin Forum
June 07, 2024, 08:30:43 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: EXCEPTION: St13runtime_error CWallet::GetCredit() : value out of range  (Read 2001 times)
agibby5 (OP)
Sr. Member
****
Offline Offline

Activity: 267
Merit: 250


View Profile
August 16, 2012, 04:33:57 AM
 #1

I'm getting this error and I cannot open Bitcoin with my wallet.  I got a message at the bottom of the Bitcoin Client in Ubuntu that I needed to upgrade. However, I was already on the newest version.  I decided to download the latest blockchain from the nightly from here: http://eu1.bitcoincharts.com/blockchain/ since I hadn't run the Client for a week or so.

I deleted my old blockchain files and replaced them with this one. I opened bitcoin-qt with the -rescan option and it appears that now I cannot open Bitcoin at all with my wallet.
EXCEPTION: St13runtime_error
CWallet::GetCredit() : value out of range

I tried opening my wallet on Linux and Windows. Under Windows, I tried 0.5.4 and 0.4.1 per the suggestion of another post which was unrelated. I cannot find another instance of this error happening.  However, I did stumble across this code: http://gitorious.org/intersango/bitcoind/blobs/e9f61c8787af99c49678ba4bc182b24b8fdba0c4/src/wallet.h

There, it looks like it fails the check of:
if (!MoneyRange(txout.nValue))
            throw std::runtime_error("CWallet::GetCredit() : value out of range");

I do not know what this means.

Any ideas on this and/or how to remedy it?

I know this is in the wrong place, but I don't have permission to post anywhere else and I'm sorta desperate!  I have about ~30 bitcoins in that wallet.

Thanks in advance.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
August 16, 2012, 11:41:39 AM
 #2

I'm getting this error and I cannot open Bitcoin with my wallet.

Sorry to ask the obvious, but just in case ... no backup?

Do you use an encrypted wallet?

What does debug.log show?

Have you tried to access the keys with a tool, like pywallet?


Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


agibby5 (OP)
Sr. Member
****
Offline Offline

Activity: 267
Merit: 250


View Profile
August 16, 2012, 01:52:30 PM
 #3

I'm getting this error and I cannot open Bitcoin with my wallet.

Sorry to ask the obvious, but just in case ... no backup?

Do you use an encrypted wallet?

What does debug.log show?

Have you tried to access the keys with a tool, like pywallet?



I did not have backups, sadly. That is something I will immediately start doing after this situation is remedied.

No.

Not sure. As a first step to try to fix this, I deleted everything except the blockchain I downloaded from the nightly tar and my wallet file.

I have found and tried the fixwallet.py with --notxes (https://bitcointalk.org/index.php?topic=11331.0).  It opened this time!  It is currently rescanning now. Hopefully it doesn't crash again as it picks up my later transactions.
agibby5 (OP)
Sr. Member
****
Offline Offline

Activity: 267
Merit: 250


View Profile
August 16, 2012, 06:24:13 PM
 #4

Phew. This thing is taking a long time to process the blocks.  I downloaded the nightly blockchain tar from 8/16, yet it's still synchronizing with the network with 18k+ blocks left.  It's been running almost 12 hours now. I thought the purpose of downloading a full blockchain was that it would go quicker. It still looks like it's pulling alot from the P2P network.
casascius
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1386
Merit: 1136


The Casascius 1oz 10BTC Silver Round (w/ Gold B)


View Profile WWW
August 16, 2012, 06:25:54 PM
 #5

If you can extract the private keys then you have the upper hand: you can always import them into a new wallet.

Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable.  I never believe them.  If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins.  I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion.  Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice.  Don't keep coins online. Use paper or hardware wallets instead.
Stephen Gornick
Legendary
*
Offline Offline

Activity: 2506
Merit: 1010


View Profile
August 16, 2012, 07:42:57 PM
 #6

Phew. This thing is taking a long time to process the blocks.  I downloaded the nightly blockchain tar from 8/16, yet it's still synchronizing with the network with 18k+ blocks left.  It's been running almost 12 hours now. I thought the purpose of downloading a full blockchain was that it would go quicker. It still looks like it's pulling alot from the P2P network.

It is creating the index, which is just about as slow as downloading the blockchain itself.

I think the ones from Sourceforge include the index, so you only need to download the new blocks since.

 - http://sourceforge.net/projects/bitcoin/files/Bitcoin/blockchain/bitcoin_blockchain_170000.zip

Unichange.me

            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █
            █


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!