NebulousLabs / Sia

Blockchain-based marketplace for file storage. Project has moved to GitLab: https://gitlab.com/NebulousLabs/Sia
https://sia.tech
MIT License
2.71k stars 442 forks source link

macOS never ending Bug story #3170

Closed MichelSakr closed 5 years ago

MichelSakr commented 5 years ago

This same error that occurs whenever launching SIA UI, I couldn't use 1.3.2 as it wasn't solved and still same on 1.3.3 ..

BUG REPORT

Stack Trace or error message Sia Daemon v1.3.3 Git Revision 94ea84e Loading... (0/6) Loading siad... (1/6) Loading gateway... (2/6) Loading consensus... (3/6) Loading transaction pool... (4/6) Loading wallet... (5/6) Loading host... (6/6) Loading renter... Finished loading in 1.170117179 seconds panic: page 795069 already freed

goroutine 66 [running]: github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(freelist).free(0xc420087e00, 0x43877, 0xc6852000) /home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/freelist.go:143 +0x449 github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(Bucket).free.func1(0xc6852000, 0x0, 0x0) /home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/bucket.go:682 +0x51 github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(Bucket)._forEachPageNode(0xc425372640, 0xc21bd, 0x0, 0xc420cc6318) /home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/bucket.go:504 +0x87 github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(Bucket).forEachPageNode(0xc425372640, 0xc420cc6318) /home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/bucket.go:497 +0x72 github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(Bucket).free(0xc425372640) /home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/bucket.go:680 +0x5f github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(Bucket).DeleteBucket(0xc42206f978, 0xc42372c490, 0xd, 0x10, 0x10, 0xc425372640) /home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/bucket.go:248 +0x289 github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(Tx).DeleteBucket(0xc42206f960, 0xc42372c490, 0xd, 0x10, 0xc425372640, 0xc42372c490) /home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/tx.go:121 +0x4f github.com/NebulousLabs/Sia/modules/consensus.deleteDSCOBucket(0xc42206f960, 0x2550a) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/consensusdb.go:550 +0x11f github.com/NebulousLabs/Sia/modules/consensus.applyMaturedSiacoinOutputs(0xc42206f960, 0xc4259918c0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/maintenance.go:101 +0x634 github.com/NebulousLabs/Sia/modules/consensus.applyMaintenance(0xc42206f960, 0xc4259918c0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/maintenance.go:191 +0x4d github.com/NebulousLabs/Sia/modules/consensus.generateAndApplyDiff(0xc42206f960, 0xc4259918c0, 0xc42005bb60, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/diffs.go:231 +0x1e5 github.com/NebulousLabs/Sia/modules/consensus.(ConsensusSet).applyUntilBlock(0xc420172780, 0xc42206f960, 0xc4259918c0, 0x0, 0x0, 0x0, 0x400000000000000, 0x864e011d93d0a10d) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/fork.go:88 +0x216 github.com/NebulousLabs/Sia/modules/consensus.(ConsensusSet).forkBlockchain(0xc420172780, 0xc42206f960, 0xc4259918c0, 0x0, 0x9753874825273784, 0x4c58c4186be4e2ea, 0x3f906023e99b5da2, 0x95883084, 0x5aea25e1, 0xc422f20a00, ...) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/fork.go:115 +0xac github.com/NebulousLabs/Sia/modules/consensus.(ConsensusSet).addBlockToTree(0xc420172780, 0xc42206f960, 0x0, 0x9753874825273784, 0x4c58c4186be4e2ea, 0x3f906023e99b5da2, 0x95883084, 0x5aea25e1, 0xc422f20a00, 0x1, ...) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/accept.go:164 +0xfc github.com/NebulousLabs/Sia/modules/consensus.(ConsensusSet).managedAcceptBlocks.func1(0xc42206f960, 0x16eb398, 0xc42206f960) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/accept.go:261 +0x3a1 github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt.(DB).Update(0xc42013c780, 0xc421fc7330, 0x0, 0x0) /home/luke/go/src/github.com/NebulousLabs/Sia/vendor/github.com/coreos/bbolt/db.go:673 +0x90 github.com/NebulousLabs/Sia/modules/consensus.(ConsensusSet).managedAcceptBlocks(0xc420172780, 0xc4231b2000, 0xa, 0xa, 0x0, 0x0, 0x0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/accept.go:243 +0x413 github.com/NebulousLabs/Sia/modules/consensus.(ConsensusSet).managedReceiveBlocks(0xc420172780, 0x175e2e0, 0xc423ada1c0, 0x0, 0x0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/synchronize.go:225 +0x4d5 github.com/NebulousLabs/Sia/modules/consensus.(ConsensusSet).(github.com/NebulousLabs/Sia/modules/consensus.managedReceiveBlocks)-fm(0x175e2e0, 0xc423ada1c0, 0x0, 0x0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/synchronize.go:445 +0x3e github.com/NebulousLabs/Sia/modules/gateway.(Gateway).managedRPC(0xc4200da840, 0xc4202559a0, 0x12, 0x16b8ca7, 0xa, 0xc4202221a0, 0x0, 0x0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/gateway/rpc.go:66 +0x2ab github.com/NebulousLabs/Sia/modules/gateway.(Gateway).RPC(0xc4200da840, 0xc4202559a0, 0x12, 0x16b8ca7, 0xa, 0xc4202221a0, 0x0, 0x0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/gateway/rpc.go:76 +0xc4 github.com/NebulousLabs/Sia/modules/consensus.(ConsensusSet).threadedInitialBlockchainDownload.func1(0xc420172780, 0xc420cc7f18, 0xc420cc7ec0, 0xc420cc7ec8, 0x0, 0x0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/synchronize.go:580 +0x118 github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).threadedInitialBlockchainDownload(0xc420172780, 0x0, 0x0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/synchronize.go:601 +0x14a github.com/NebulousLabs/Sia/modules/consensus.NewCustomConsensusSet.func1(0x1, 0xc420172780, 0xc420170670, 0x175f060, 0xc4200da840) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/consensusset.go:160 +0x373 created by github.com/NebulousLabs/Sia/modules/consensus.NewCustomConsensusSet /home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/consensusset.go:153 +0x61f Expected Behavior To run without crashing How to reproduce it (as minimally and precisely as possible) Start Sia UI Environment Macbook pro

MichelSakr commented 5 years ago

In the consensus log it seems it is stuck in a loop on one block

2018/07/17 16:26:12.908446 accept.go:289: accept: finished block processing loop 2018/07/17 16:26:15.058528 accept.go:244: accept: starting block processing loop (10 blocks, height 152841) 2018/07/17 16:26:15.176783 accept.go:289: accept: finished block processing loop 2018/07/17 16:26:18.079890 accept.go:244: accept: starting block processing loop (10 blocks, height 152841) 2018/07/17 16:26:18.089395 accept.go:289: accept: finished block processing loop 2018/07/17 16:26:20.196226 accept.go:244: accept: starting block processing loop (10 blocks, height 152841) 2018/07/17 16:26:20.220859 accept.go:289: accept: finished block processing loop 2018/07/17 16:26:21.942885 accept.go:244: accept: starting block processing loop (10 blocks, height 152841) 2018/07/17 16:26:21.970101 accept.go:289: accept: finished block processing loop 2018/07/17 16:26:23.776200 accept.go:244: accept: starting block processing loop (10 blocks, height 152841)