Bitcoin Forum
December 11, 2016, 02:16:30 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Bitcoin client crashes when I enter in passphrase  (Read 865 times)
yellowcoin
Jr. Member
*
Offline Offline

Activity: 43


View Profile
December 18, 2011, 07:53:59 AM
 #1

So I decided to encrypt my wallet.dat file like a few months ago.  Problem I am having now is trying to change it to something else.  Every time I enter in the passphrase the bitcoin client crashes.

is there a command-line I can use to decrypt my wallet.dat file???

I know this should be at the tech support section but I can't open topic there. If possible can the mods move this over so I can get some help?

Thanks,
1481422590
Hero Member
*
Offline Offline

Posts: 1481422590

View Profile Personal Message (Offline)

Ignore
1481422590
Reply with quote  #2

1481422590
Report to moderator
1481422590
Hero Member
*
Offline Offline

Posts: 1481422590

View Profile Personal Message (Offline)

Ignore
1481422590
Reply with quote  #2

1481422590
Report to moderator
1481422590
Hero Member
*
Offline Offline

Posts: 1481422590

View Profile Personal Message (Offline)

Ignore
1481422590
Reply with quote  #2

1481422590
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
yellowcoin
Jr. Member
*
Offline Offline

Activity: 43


View Profile
December 18, 2011, 08:19:30 AM
 #2

#UPDATE#
so I have a backup from client 0.4 of my wallet.  I tried to decrypt my wallet but end up having the following error
EXCEPTION: 9key_error       
CKey::SetSecret() : secret must be 32 bytes       
bitcoin in CMyApp::OnExceptionInMainLoop()


Anyone has any ideas???
EndUser256
Newbie
*
Offline Offline

Activity: 1


View Profile
January 13, 2012, 07:42:15 AM
 #3

I have the same issue.  Luckily my wallet has less than 1 BTC in it.


I encrypted a wallet in December.  Going back a month later I could not remember some details of my passphrase.  After ~50 guesses, I got the right phrase, but the client crashes when I enter it.  Any other phrase gives "The passphrase entered for the wallet decryption was incorrect."

New wallets can be encrypted and decrypted.  Trying to change the passphrase or send coins from the bad wallet causes bitcoin-qt to exit with the following output in the terminal:


Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

************************
EXCEPTION: 9key_error       
CKey::SetSecret() : secret must be 32 bytes       
bitcoin in Runaway exception       

terminate called after throwing an instance of 'key_error'
  what():  CKey::SetSecret() : secret must be 32 bytes
Aborted


DB.log is empty.


debug.log is:

block 000000000a7156c0d74b
sending getdata: block 000000000c8e0d11d32d
sending getdata: block 00000000014ec472f6b8
sending getdata: block 000000000679e7163d94
...
SetBestChain: new best=0000000004f5d303bc40  height=67293  work=1569599215717594
ProcessBlock: ACCEPTED
received block 0000000000be5b4826e7


************************
EXCEPTION: 9key_error
CKey::SetSecret() : secret must be 32 bytes
bitcoin in Runaway exception

This is on ubuntu 11.10.

I tried bitcointools on a whim, but with no luck.  I also tried clearing the .bitcoin folder and reinstalling bitcoin-qt from ppa:bitcoin/bitcoin


Do wallets die often?  I am nervous now about encrypting my next wallet or using bitcoins for substantial amounts of money.
gmaxwell
Staff
Legendary
*
Offline Offline

Activity: 2030



View Profile
April 19, 2012, 02:29:18 AM
 #4

#UPDATE#
so I have a backup from client 0.4 of my wallet.  I tried to decrypt my wallet but end up having the following error
EXCEPTION: 9key_error       
CKey::SetSecret() : secret must be 32 bytes       

You are entering the wrong password.   There was (now fixed in GIT but not in any released version) a somewhat tricky bug where a small fraction of incorrect passwords caused a crash rather than the wrong password notice.

The log message of "secret must be 32 bytes" is a very strong and clear indication of this.

Unfortunately this behavior seems to convince the afflicted user that they actually have the right password, making it unlikely that they'll keep trying and get the right not.

Here is the related pull request: https://github.com/bitcoin/bitcoin/pull/1039
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!