A critical error loading Sia has occured: Siad unexpectedly exited. (division by zero)
-
Here is the full output:
A critical error loading Sia has occured: Siad unexpectedly exited. Error log: Sia Daemon v1.3.1
Loading...
(0/6) Loading siad...
(1/6) Loading gateway...
(2/6) Loading consensus...
panic: division by zerogoroutine 1 [running]:
math/big.(*Rat).Inv(0xc042a27840, 0xc042a27880, 0x0)
/usr/local/go/src/math/big/rat.go:361 +0x2b7
github.com/NebulousLabs/Sia/types.Target.Inverse(0x0, 0x0, 0x0, 0x0, 0xc042a277c0)
/home/luke/go/src/github.com/NebulousLabs/Sia/types/target.go:79 +0x76
github.com/NebulousLabs/Sia/types.Target.AddDifficulties(0x600000000000000, 0xa2e5dcd59445b7c2, 0xc8d412996dbd4683, 0xf7b852c4c5482ddf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/luke/go/src/github.com/NebulousLabs/Sia/types/target.go:32 +0xd4
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).storeBlockTotals(0xc0420adb80, 0xc0421c81c0, 0x1501e, 0x7302000000000000, 0x95aab934286d7dbc, 0x4bd0c7fd13e45dfb, 0x676506933cd2994c, 0x19541, 0x5871175e, 0x58711910, ...)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/difficulty.go:181 +0x1a1
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).initOak(0xc0420adb80, 0xc0421c81c0, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/difficulty.go:242 +0x560
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).loadDB.func1(0xc0421c81c0, 0xaf16f8, 0xc0421c81c0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/persist.go:45 +0xc4
github.com/NebulousLabs/bolt.(*DB).Update(0xc0420592c0, 0xc0420570e8, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/bolt/db.go:603 +0xa1
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).loadDB(0xc0420adb80, 0xc0421404a0, 0xc0421e9bc0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/persist.go:33 +0x12a
github.com/NebulousLabs/Sia/modules/consensus.(*ConsensusSet).initPersist(0xc0420adb80, 0xc042140490, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/persist.go:88 +0x184
github.com/NebulousLabs/Sia/modules/consensus.New(0xdee820, 0xc0420a0840, 0x1, 0xc04200a940, 0x37, 0x1b, 0x0, 0x0)
/home/luke/go/src/github.com/NebulousLabs/Sia/modules/consensus/consensusset.go:139 +0x5a7
main.(*Server).loadModules(0xc04207e4b0, 0xaf1aa0, 0xc04207e4b0)
/home/luke/go/src/github.com/NebulousLabs/Sia/cmd/siad/server.go:475 +0x1fd0
main.startDaemon(0x0, 0x0, 0xc0420103ab, 0xe, 0xc04201211b, 0x5, 0xc0420103ec, 0x5, 0x0, 0xc04201215a, ...)
/home/luke/go/src/github.com/NebulousLabs/Sia/cmd/siad/daemon.go:164 +0x1ae
main.startDaemonCmd(0xc0420aad80, 0xc042082410, 0x0, 0x5)
/home/luke/go/src/github.com/NebulousLabs/Sia/cmd/siad/daemon.go:209 +0x169
github.com/spf13/cobra.(*Command).execute(0xc0420aad80, 0xc04205e010, 0x5, 0x7, 0xc0420aad80, 0xc04205e010)
/home/luke/go/src/github.com/spf13/cobra/command.go:750 +0x2c8
github.com/spf13/cobra.(*Command).ExecuteC(0xc0420aad80, 0xae2c79, 0x3b, 0xc04203d900)
/home/luke/go/src/github.com/spf13/cobra/command.go:831 +0x315
github.com/spf13/cobra.(*Command).Execute(0xc0420aad80, 0xefcd80, 0xacaf03)
/home/luke/go/src/github.com/spf13/cobra/command.go:784 +0x32
main.main()
/home/luke/go/src/github.com/NebulousLabs/Sia/cmd/siad/main.go:174 +0x797What should I do?
-
Update: weirdly enough running siad.exe using cmd and then opening the Sia-UI seems to have solved my issue.
-
@yachtyacht interesting - can you reproduce the error in the old way now that it worked once?