Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Ilanoh on June 07, 2016, 04:23:42 PM



Title: Bitcoin Core keeps crashing while opening
Post by: Ilanoh on June 07, 2016, 04:23:42 PM
Hey

I updated bitcoin core recently, it worked perfectly fine until yesterday when I came home I found a crash notice, I tried to reopen it, and it keeps crashing with this message, I'm on mac

What is going on, I don't want to loose my coin :(

The error message is too long for here so I pasted it

http://pastebin.com/58bBBkEQ

Thanks

Also I transfered some btc to my wallet from coinbase when my wallet was not yet updated, have I lost those btc ? Since my wallet is crashing, the wallet has not yet retrieves the coins ? Will my wallet.dat file retrieve the btc that I have not yet in my wallet if I completely change it.

I don't know if it makes sens lol

So I transfered some btc from coinbase to my wallet, then I updated it, then while the wallet was reindexing the blocks, I arrived at the time where it retrieved my original btc, but not the new ones, then it crashed, and now it keeps crashing, and I'm wondering if I change totally the wallet and copy paste my wallet.dat, if it will retrieve the new btc I bought before the update.

thanks


Title: Re: Bitcoin Core keeps crashing while opening
Post by: xhomerx10 on June 07, 2016, 04:30:30 PM
Hey

I updated bitcoin core recently, it worked perfectly fine until yesterday when I came home I found a crash notice, I tried to reopen it, and it keeps crashing with this message, I'm on mac

What is going on, I don't want to loose my coin :(

The error message is too long for here so I pasted it

http://pastebin.com/58bBBkEQ

Thanks

Also I transfered some btc to my wallet from coinbase when my wallet was not yet updated, have I lost those btc ? Since my wallet is crashing, the wallet has not yet retrieves the coins ? Will my wallet.dat file retrieve the btc that I have not yet in my wallet if I completely change it.

 The transfer from coinbase doesn't care if your wallet is update or not - it happened.    Have you made a backup of your wallet.dat file? 


Title: Re: Bitcoin Core keeps crashing while opening
Post by: LFC_Bitcoin on June 07, 2016, 04:32:02 PM
You'll get better advice here bro - https://bitcointalk.org/index.php?board=4.0

Too many trolls & people who haven't got a clue in this section.


Title: Re: Bitcoin Core keeps crashing while opening
Post by: achow101 on June 07, 2016, 04:35:27 PM
Please post the debug.log file, your crash log means nothing to us as that is generated by the OS, not Bitcoin Core.

Your Bitcoin is safe so long as you do not delete your wallet.dat file. It doesn't matter whether your wallet is synced as once the transaction is in the blockchain, the wallet will be able to find it when it does sync up.


Title: Re: Bitcoin Core keeps crashing while opening
Post by: xhomerx10 on June 07, 2016, 04:35:47 PM
The wallet.dat file should be store here  ~/Library/Application Support/Bitcoin/
on a Mac.  Make a copy of that before you do anything else.


Title: Re: Bitcoin Core keeps crashing while opening
Post by: Ilanoh on June 07, 2016, 04:40:40 PM
yes my wallet.dat file is secure and copied somewhere else also !


Title: Re: Bitcoin Core keeps crashing while opening
Post by: xhomerx10 on June 07, 2016, 05:39:34 PM
yes my wallet.dat file is secure and copied somewhere else also !

 Excellent.  Since you recently updated the version, I think the first thing to try is rebuilding the block chain index.
From the command line, run bitcoin-qt.exe with the -reindex command.


Title: Re: Bitcoin Core keeps crashing while opening
Post by: achow101 on June 07, 2016, 05:46:42 PM
yes my wallet.dat file is secure and copied somewhere else also !

 Excellent.  Since you recently updated the version, I think the first thing to try is rebuilding the block chain index.
From the command line, run bitcoin-qt.exe with the -reindex command.

That's not going to help with the software continuously crashing.

OP, please post the debug.log file. It should be in the same place that you found the wallet.dat file.


Title: Re: Bitcoin Core keeps crashing while opening
Post by: xhomerx10 on June 07, 2016, 06:32:50 PM
yes my wallet.dat file is secure and copied somewhere else also !

 Excellent.  Since you recently updated the version, I think the first thing to try is rebuilding the block chain index.
From the command line, run bitcoin-qt.exe with the -reindex command.

That's not going to help with the software continuously crashing.

OP, please post the debug.log file. It should be in the same place that you found the wallet.dat file.

 Program crashed on thread 7 which appeared to me to be running the UniValue subroutine which contains the comments

143     // Strict type-specific getters, these throw std::runtime_error if the
144     // value is of unexpected type

Which lead me to believe the block chain index needs to be rebuilt.  I believe that running the bitcoin-qt executable with the -reindex command will accomplish this task.  That being said, it could be a hardware issue - perhaps some bad memory?

 You may be right but it can't hurt to try my advice.  Worst case scenario is another program crash.





Title: Re: Bitcoin Core keeps crashing while opening
Post by: xhomerx10 on June 08, 2016, 04:54:36 PM
Wow.  Twenty-four hours and OP hasn't logged in since.  Maybe it was a hardware issue and the computer died.


Title: Re: Bitcoin Core keeps crashing while opening
Post by: Ilanoh on June 10, 2016, 03:38:40 PM
Hey guys thanks for the help and messages my computer was not with me, I was at my GF place :p

I try your solution now

However I'm on mac, will it work with the .exe extension ?

today's debug.log

2016-06-10 15:35:28 Bitcoin version v0.12.1 (2016-04-11 13:01:43 +0200)
2016-06-10 15:35:28 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2016-06-10 15:35:32 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2016-06-10 15:35:32 Default data directory /Users/Ilan/Library/Application Support/Bitcoin
2016-06-10 15:35:32 Using data directory /Users/Ilan/Library/Application Support/Bitcoin
2016-06-10 15:35:32 Using config file /Users/Ilan/Library/Application Support/Bitcoin/bitcoin.conf
2016-06-10 15:35:32 Using at most 125 connections (2560 file descriptors available)
2016-06-10 15:35:32 Using 2 threads for script verification
2016-06-10 15:35:32 Using wallet wallet.dat
2016-06-10 15:35:32 scheduler thread start
2016-06-10 15:35:32 init message: Verifying wallet...
2016-06-10 15:35:32 CDBEnv::Open: LogDir=/Users/Ilan/Library/Application Support/Bitcoin/database ErrorFile=/Users/Ilan/Library/Application Support/Bitcoin/db.log
2016-06-10 15:35:35 Bound to [::]:8333
2016-06-10 15:35:35 Bound to 0.0.0.0:8333
2016-06-10 15:35:35 Cache configuration:
2016-06-10 15:35:35 * Using 2.0MiB for block index database
2016-06-10 15:35:35 * Using 32.5MiB for chain state database
2016-06-10 15:35:35 * Using 65.5MiB for in-memory UTXO set
2016-06-10 15:35:35 init message: Loading block index...
2016-06-10 15:35:35 Opening LevelDB in /Users/Ilan/Library/Application Support/Bitcoin/blocks/index
2016-06-10 15:35:36 Opened LevelDB successfully
2016-06-10 15:35:36 Using obfuscation key for /Users/Ilan/Library/Application Support/Bitcoin/blocks/index: 0000000000000000
2016-06-10 15:35:36 Opening LevelDB in /Users/Ilan/Library/Application Support/Bitcoin/chainstate
2016-06-10 15:35:39 Opened LevelDB successfully
2016-06-10 15:35:39 Using obfuscation key for /Users/Ilan/Library/Application Support/Bitcoin/chainstate: 60e545cbe8463538
2016-06-10 15:35:45 LoadBlockIndexDB: last block file = 23
2016-06-10 15:35:45 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=282, size=49159492, heights=272691...273714, time=2013-12-02...2013-12-08)
2016-06-10 15:35:45 Checking all blk files are present...
2016-06-10 15:35:45 LoadBlockIndexDB: transaction index disabled
2016-06-10 15:35:45 LoadBlockIndexDB: hashBestChain=00000000000000048a7b11f71c6ee2926bb2b91e5e20fd953446f7f2be18fb2d height=272857 date=2013-12-03 13:46:45 progress=0.103760
2016-06-10 15:35:46 init message: Verifying blocks...
2016-06-10 15:35:46 Verifying last 288 blocks at level 3


Title: Re: Bitcoin Core keeps crashing while opening
Post by: achow101 on June 10, 2016, 03:49:11 PM
Hey guys thanks for the help and messages my computer was not with me, I was at my GF place :p

I try your solution now

However I'm on mac, will it work with the .exe extension ?
Just omit the .exe part.

today's debug.log
Is that it? We need to see the full thing.


Title: Re: Bitcoin Core keeps crashing while opening
Post by: Jet Cash on June 11, 2016, 06:23:21 AM
Just as an aside. I back up the blockchain as well as my wallet. I don't want to have to download the blockchain again if I have a hardware problem.


Title: Re: Bitcoin Core keeps crashing while opening
Post by: Ilanoh on June 11, 2016, 09:33:55 AM
Hey guys thanks for the help and messages my computer was not with me, I was at my GF place :p

I try your solution now

However I'm on mac, will it work with the .exe extension ?
Just omit the .exe part.

today's debug.log
Is that it? We need to see the full thing.

The entire file is huge,

I have omited the .exe part but I get an invalid command


Title: Re: Bitcoin Core keeps crashing while opening
Post by: xhomerx10 on June 11, 2016, 12:06:22 PM
Hey guys thanks for the help and messages my computer was not with me, I was at my GF place :p

I try your solution now

However I'm on mac, will it work with the .exe extension ?
Just omit the .exe part.

today's debug.log
Is that it? We need to see the full thing.

The entire file is huge,

I have omited the .exe part but I get an invalid command


 Okay then, first show us the next 30 lines of the log after this line
Code:
2016-06-10 15:35:46 Verifying last 288 blocks at level 3
and also show us what you are typing into the console that gives an invalid command.


Title: Re: Bitcoin Core keeps crashing while opening
Post by: Ilanoh on June 11, 2016, 08:09:38 PM
There is nothing after this line,

I suppose the program crash at this moment

For the console

Marie-Stellas-MacBook-Pro:~ Ilan$ /Applications/bitcoin-qt.app -reindex
-bash: /Applications/bitcoin-qt.app: is a directory

Marie-Stellas-MacBook-Pro:~ Ilan$ bitcoin-qt -reindex
-bash: bitcoin-qt: command not found


Title: Re: Bitcoin Core keeps crashing while opening
Post by: longbob72 on June 11, 2016, 08:23:54 PM
There is nothing after this line,

I suppose the program crash at this moment

For the console

Marie-Stellas-MacBook-Pro:~ Ilan$ /Applications/bitcoin-qt.app -reindex
-bash: /Applications/bitcoin-qt.app: is a directory

Marie-Stellas-MacBook-Pro:~ Ilan$ bitcoin-qt -reindex
-bash: bitcoin-qt: command not found

It's /Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt -reindex

And in the debug.log, there should be some spaces between each of your sessions. You said the client crashed multiple times so check the last few lines of each sessions which the client crashed on and see if they are the same.

You can copy the debug.log and clear it, by the way. That way the file won't be so huge for you to post it here.


Title: Re: Bitcoin Core keeps crashing while opening
Post by: Ilanoh on June 11, 2016, 08:37:57 PM
Yes it crashes always at the same point... "Verifying last 288 blocks at level 3"

WOOOW your command opened the wallet in 1 second !

What should I do now, if it keeps crashing ?

How long does it takes to reindex ?


Title: Re: Bitcoin Core keeps crashing while opening
Post by: longbob72 on June 11, 2016, 08:52:12 PM
Yes it crashes always at the same point... "Verifying last 288 blocks at level 3"

WOOOW your command opened the wallet in 1 second !

What should I do now, if it keeps crashing ?

How long does it takes to reindex ?

Few minutes to couple of hours depending on your pc's performance, your sync stats before, and how bad the damage is.

If it keeps crashing then I don't know what to do except to reformat your harddisk (that's what I once did.).


Title: Re: Bitcoin Core keeps crashing while opening
Post by: Ilanoh on June 11, 2016, 08:59:54 PM
If I go to another disk and copy paste wallet.dat will it work ?


Title: Re: Bitcoin Core keeps crashing while opening
Post by: longbob72 on June 11, 2016, 09:10:35 PM
If I go to another disk and copy paste wallet.dat will it work ?

No because wallet.dat only have your wallet info and not the blocks. This is seems to be an issue with verifying blocks. Something which to my understanding usually caused by corrupted files or bad sectors in harddisk.

And I forgot that you can try downloading the whole blockchain again before trying to reformat.


Title: Re: Bitcoin Core keeps crashing while opening
Post by: xhomerx10 on June 12, 2016, 01:33:42 AM
If I go to another disk and copy paste wallet.dat will it work ?

 This will work but it would take days to get the entire block chain and you would have to rescan which would also take quite some time.
Are you saying it crashed again when you ran Bitcoin-qt with the -reindex command?  Is it running or not?

 I had to reindex on my laptop computer in the fall of last year and it took a good portion of a day.  My laptop contained an I7-720M with an SSD - the speed of your computer and virtual memory is critical in determining how long it will take.


Title: Re: Bitcoin Core keeps crashing while opening
Post by: Ilanoh on June 12, 2016, 05:58:07 AM
It's been reindexing since 8:37p yesterday.

It's 7:57am

It has reindexed until 2 years and 48 weeks.

And I don't have all the blocks on my computer since I hadn't opened bitcoin wallet since about 1-2 years.


Title: Re: Bitcoin Core keeps crashing while opening
Post by: xhomerx10 on June 12, 2016, 02:39:39 PM
That's good news.  Hopefully this fixes your crashing issue.
Let us know!


Title: Re: Bitcoin Core keeps crashing while opening
Post by: Ilanoh on June 12, 2016, 06:42:18 PM
Ok lol now it's 2 years and 25 weeks, I will let you know in 2 weeks


Title: Re: Bitcoin Core keeps crashing while opening
Post by: longbob72 on June 12, 2016, 06:45:00 PM
Ok lol now it's 2 years and 25 weeks, I will let you know in 2 weeks

It's been what, 20 hours? You're still reindexing after all that time? That's not normal. If it goes on for 20 hours more it'll be faster to delete the block files and resync (if you don't mind the redownloading.).


Title: Re: Bitcoin Core keeps crashing while opening
Post by: Ilanoh on June 12, 2016, 06:45:41 PM
about 20 hours yes I have a 4 year old mac

No it been 12 hours !

Ok I checked it is not reindexing, it is downloading the blocks now


Title: Re: Bitcoin Core keeps crashing while opening
Post by: longbob72 on June 12, 2016, 06:54:54 PM
about 20 hours yes I have a 4 year old mac

No it been 12 hours !

Ok I checked it is not reindexing, it is downloading the blocks now

Ah. That's good. I think reindexing fixed your problem. Post here if it still crashes after all that.


Title: Re: Bitcoin Core keeps crashing while opening
Post by: Ilanoh on June 12, 2016, 06:56:30 PM
Yes ! When everything is ok I let you know, but it may take 1 month lol !

Isn't it a way to download the blocks from somewhere else than the wallet which is slow ?


Title: Re: Bitcoin Core keeps crashing while opening
Post by: longbob72 on June 12, 2016, 07:17:17 PM
Yes ! When everything is ok I let you know, but it may take 1 month lol !

Isn't it a way to download the blocks from somewhere else than the wallet which is slow ?

Only other way is using bootstrap.dat. But they're downloaded using torrent and the download speed depends on the number of seed/peers. And you'll have to download the entire bootstrap which almost as huge as the current block size. The latest one is here (https://bitcointalk.org/index.php?topic=1310261.msg15081484#msg15081484) (posted by wayneyoyo).

Edit:
Oh wait. That's not bootstrap.dat but the archived block files. Not much difference, though. The bootstrap.dat download link is posted on the first post of that thread.


Title: Re: Bitcoin Core keeps crashing while opening
Post by: xhomerx10 on June 15, 2016, 02:40:18 AM
Yes ! When everything is ok I let you know, but it may take 1 month lol !

Isn't it a way to download the blocks from somewhere else than the wallet which is slow ?

 How about an update?  Is the program still running? Can you see any progress?