spacemeshos / smrepl

A Spacemesh Terminal wallet app
https://spacemesh.io
MIT License
16 stars 9 forks source link

status-node err :panic: runtime error: invalid memory address or nil pointer dereference #24

Open lulei0215 opened 3 years ago

lulei0215 commented 3 years ago

Welcome to Spacemesh. Connected to api server at localhost:9092 (GRPC API 2.0). >> Insecure Connection. Use only with a local trusted server <<

Network id: 29 Max transactions per second: 16 Layers per epoch: 288 Layer duration: 300 seconds Current layer: 1951 Current epoch: 6 Genesis time: 2021-05-04 23:15:48 +0800 CST Your console window is too small...$ status-node Version: v0.1.15 Build: a0df2b8f87d05085182e7e2989d09901aca8dc3c API server: localhost:9092 (GRPC API 2.0). >> Insecure Connection. Use only with a local trusted server << Synced: false panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x9a63c8]

goroutine 1 [running]: github.com/spacemeshos/CLIWallet/repl.(repl).nodeInfo(0xc00049e240) /home/ll/go/src/awesomeProject/cli-wallet/repl/node_commands.go:27 +0x4e8 github.com/spacemeshos/CLIWallet/repl.(repl).executor(0xc00049e240, 0xafaeb4, 0xb) /home/ll/go/src/awesomeProject/cli-wallet/repl/repl.go:191 +0x19c github.com/c-bata/go-prompt.(*Prompt).Run(0xc000475580) /home/ll/go/pkg/mod/github.com/c-bata/go-prompt@v0.2.3/prompt.go:85 +0x7b0 github.com/spacemeshos/CLIWallet/repl.runPrompt(0xc0004a4010, 0xc0004a4020, 0xc000321e48, 0x18) /home/ll/go/src/awesomeProject/cli-wallet/repl/prompt.go:25 +0x110 github.com/spacemeshos/CLIWallet/repl.Start(0xbefda8, 0xc00041cb70)

avive commented 3 years ago

Please run with node v0.1.32 build f2edc21fba85df7d4a8ce05a07cd4c878dee58ea. Looks like you are running an older node. https://github.com/spacemeshos/go-spacemesh/releases/tag/v0.1.32 You should get something like this w/o panic:

$ status-node

Version: v0.1.32 Build: f2edc21fba85df7d4a8ce05a07cd4c878dee58ea API server: localhost:9092 (GRPC API 2.0). >> Insecure Connection. Use only with a local trusted server << Synced: true Synced layer: 1959 Current layer: 1959 Verified layer: 1958 Peers: 8

lulei0215 commented 3 years ago

what do you mean =》I run the 0.1.32 version of the code on the horse,It's ok, right?

lulei0215 commented 3 years ago

But isn’t the released version 0.1.15?

lulei0215 commented 3 years ago

When will version 0. 2 come out ?

avive commented 3 years ago

The current testnet is netid=30. Please use the go-spacemesh and cliwallets releases for this network using the info in the github repos readmes, and let us know if the issue is still reproducible.

avive commented 3 years ago

Need to try to repro with most recent releases of smrepl and node