Mac: Siad crashes
-
Hey folks!
I've just downloaded Sia-UI, started the app and created an account.
Blockhain is synchronising as the app says.But then something happens and siaD crashes.
Button to start siad inside Sia-UI doesn't work.Here's what it looks like if siad is started manually from the terminal:
~~ Sia ./siad ⏎
Loading...
(1/7) Loading gateway...
(2/7) Loading consensus...
(3/7) Loading transaction pool...
(4/7) Loading wallet...
(5/7) Loading miner...
(6/7) Loading host...
(7/7) Loading renter...
Finished loading in 0.145870354 seconds
Rescanning consensus set...
Scanned to height 5081...
Done!
panic: runtime error: index out of rangegoroutine 12 [running]:
panic(0x6d2c00, 0xc82000a0d0)
/usr/local/go/src/runtime/panic.go:464 +0x3e6
github.com/NebulousLabs/bolt.(*Bucket).pageNode(0xc820e3c540, 0x4be97fb30b0, 0xc82269eb10, 0x0)
/home/luke/go/src/github.com/NebulousLabs/bolt/bucket.go:697 +0x2e6
github.com/NebulousLabs/bolt.(*Cursor).search(0xc821913c50, 0xb5dde0, 0x15, 0x15, 0x4be97fb30b0)
/home/luke/go/src/github.com/NebulousLabs/bolt/cursor.go:254 +0x40
github.com/NebulousLabs/bolt.(*Cursor).seek(0xc821913c50, 0xb5dde0, 0x15, 0x15, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/luke/go/src/github.com/NebulousLabs/bolt/cursor.go:159 +0xda
github.com/NebulousLabs/bolt.(*Bucket).Put(0xc820e3c540, 0xb5dde0, 0x15, 0x15, 0xc820a515a0, 0x20, 0x20, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/bolt/bucket.go:293 +0x1f6
github.com/NebulousLabs/Sia/modules/transactionpool.(*TransactionPool).putRecentConsensusChange(0xc8202ce5a0, 0xc82178ec40, 0xe9f09f58b7326ad2, 0x54abed08512e2baa, 0xdb40a8b7cecaf430, 0xaf8f3413189ff518, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/transactionpool/persist.go:117 +0xeb
github.com/NebulousLabs/Sia/modules/transactionpool.(*TransactionPool).ProcessConsensusChange.func1(0xc82178ec40, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/transactionpool/update.go:41 +0x472
github.com/NebulousLabs/bolt.(*DB).Update(0xc82010e960, 0xc821914788, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/bolt/db.go:595 +0xb3
github.com/NebulousLabs/Sia/modules/transactionpool.(*TransactionPool).ProcessConsensusChange(0xc8202ce5a0, 0xe9f09f58b7326ad2, 0x54abed08512e2baa, 0xdb40a8b7cecaf430, 0xaf8f3413189ff518, 0x0, 0x0, 0x0, 0xc8206ad7a0, 0x1, ...)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/transactionpool/update.go:24 +0x86
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).readlockUpdateSubscribers(0xc82015e780, 0x0, 0x0, 0x0, 0xc82087f6a0, 0x1, 0x1)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/subscribe.go:100 +0x332
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).managedAcceptBlock(0xc82015e780, 0xc68e000000000000, 0x2bc99c9cc0d96c00, 0x11342b637cfdd162, 0xc5994d3930146fbe, 0x7000000045c6373, 0x5621897c, 0xc820d15d80, 0x1, 0x1, ...)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/accept.go:289 +0x2cc
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).threadedReceiveBlocks(0xc82015e780, 0xe223f8, 0xc8202d0760, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/synchronize.go:216 +0x767
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).(github.com/NebulousLabs/Sia/modules/consensus.threadedReceiveBlocks)-fm(0xe223f8, 0xc8202d0760, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/consensusset.go:148 +0x42
github.com/NebulousLabs/Sia/modules/gateway.(*Gateway).managedRPC(0xc8200ca2d0, 0xc8200d3260, 0x13, 0x7c7bb0, 0xa, 0xc8202d2090, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/gateway/rpc.go:53 +0x4b9
github.com/NebulousLabs/Sia/modules/gateway.(*Gateway).RPC(0xc8200ca2d0, 0xc8200d3260, 0x13, 0x7c7bb0, 0xa, 0xc8202d2090, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/gateway/rpc.go:63 +0xfe
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).threadedInitialBlockchainDownload(0xc82015e780)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/synchronize.go:500 +0x4fb
github.com/NebulousLabs/Sia/modules/consensus.New.func1(0xc82015e780, 0xd9fea8, 0xc8200ca2d0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/consensusset.go:140 +0x25
created by github.com/NebulousLabs/Sia/modules/consensus.New
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/consensusset.go:161 +0x76b~
-
How would I resolve this error?
-
What version are you running? Also, thanks for the crash log, it's super helpful.
I think what you need to do is delete your consensus/ folder. That will force you to re-IBD, but this seems to be an issue with bolt and we're not sure how to stop it from happening.
-
Thanks for prompt reply!
I'm using the latest version which is Sia-UI-v1.0.2.
Deleting the consensus folder didn't resolve the problem. But deleting the transctionpool did, but after like 2 minutes app crashed again.
Here's the crash log: http://pastebin.com/EVbSfud6
-
This post is deleted!
-
Ok here's another crash log which is different from the previous one.
After starting siad manually it syncs for 1 minute and then says that siad crashed.
http://pastebin.com/3PiZJHAu
-
@zakroma: is there any chance you can upload both the consensus.tb file and the transactionpool.db file? I think that pixeldra.in will be able to handle files that large. Those are some really interesting errors and it'd be good to be able to reproduce them. I think it's a bug in boltdb
-
Sure! Here're the files you requested: https://pixeldra.in/u/guklgU
Thank you for your help!