aeternity / aepp-sdk-go

Golang SDK to interact with the Æternity blockchain
ISC License
18 stars 10 forks source link

aecli-go account balance genesis.json fails with nil pointer deref #48

Closed randomshinichi closed 5 years ago

randomshinichi commented 5 years ago

shinichi@ilya:~/source/aeternity aecli-go account balance genesis.json Enter the password to unlock the keystore: panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x502416]

goroutine 1 [running]: math/big.(Int).scan(0x0, 0xb6bd80, 0xc0004c2180, 0x0, 0x30, 0xa32840, 0xc000486001, 0xc0004c2180) /usr/lib/go/src/math/big/intconv.go:180 +0x66 math/big.(Int).setFromScanner(0x0, 0xb6bd80, 0xc0004c2180, 0x0, 0x52dfa1, 0x9fe0c0) /usr/lib/go/src/math/big/int.go:421 +0x4d math/big.(Int).UnmarshalText(0x0, 0xc00013c00b, 0x1a, 0x1f5, 0xc00008a658, 0x0) /usr/lib/go/src/math/big/intmarsh.go:58 +0x99 math/big.(Int).UnmarshalJSON(0x0, 0xc00013c00b, 0x1a, 0x1f5, 0x0, 0x0) /usr/lib/go/src/math/big/intmarsh.go:79 +0x57 encoding/json.(decodeState).literalStore(0xc000110188, 0xc00013c00b, 0x1a, 0x1f5, 0xa8e840, 0xc0004860c0, 0x199, 0x0, 0x6e, 0xc0001101b0) /usr/lib/go/src/encoding/json/decode.go:855 +0x2f4a encoding/json.(decodeState).value(0xc000110188, 0xa8e840, 0xc0004860c0, 0x199, 0xa8e840, 0xc0004860c0) /usr/lib/go/src/encoding/json/decode.go:395 +0x1ef encoding/json.(decodeState).object(0xc000110188, 0xa30a40, 0xc0004860c0, 0x16, 0xc0001101b0, 0x54087b) /usr/lib/go/src/encoding/json/decode.go:763 +0x1899 encoding/json.(decodeState).value(0xc000110188, 0xa30a40, 0xc0004860c0, 0x16, 0xb65c20, 0xa) /usr/lib/go/src/encoding/json/decode.go:381 +0x6e encoding/json.(decodeState).unmarshal(0xc000110188, 0xa30a40, 0xc0004860c0, 0x0, 0x1) /usr/lib/go/src/encoding/json/decode.go:179 +0x1fe encoding/json.(Decoder).Decode(0xc000110160, 0xa30a40, 0xc0004860c0, 0x8, 0xa09f40) /usr/lib/go/src/encoding/json/stream.go:73 +0x188 github.com/go-openapi/runtime.JSONConsumer.func1(0xb67100, 0xc0000a6380, 0xa30a40, 0xc0004860c0, 0xc0004f9900, 0xb67100) /home/shinichi/source/go/src/github.com/go-openapi/runtime/json.go:27 +0x76 github.com/go-openapi/runtime.ConsumerFunc.Consume(0xabc8c8, 0xb67100, 0xc0000a6380, 0xa30a40, 0xc0004860c0, 0x40bf18, 0x8) /home/shinichi/source/go/src/github.com/go-openapi/runtime/interfaces.go:42 +0x4e github.com/aeternity/aepp-sdk-go/generated/client/external.(GetAccountByPubkeyOK).readResponse(0xc00000e008, 0xb73040, 0xc0000ea000, 0xb67820, 0xabc8c8, 0xb773c0, 0xc0001650b0, 0x0, 0x0) /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/generated/client/external/get_account_by_pubkey_responses.go:76 +0xbf github.com/aeternity/aepp-sdk-go/generated/client/external.(GetAccountByPubkeyReader).ReadResponse(0xc0004b6050, 0xb73040, 0xc0000ea000, 0xb67820, 0xabc8c8, 0x1, 0x0, 0x0, 0x0) /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/generated/client/external/get_account_by_pubkey_responses.go:30 +0x36c github.com/go-openapi/runtime/client.(Runtime).Submit(0xc0001b4820, 0xc0001b00c0, 0x0, 0x0, 0x0, 0x0) /home/shinichi/source/go/src/github.com/go-openapi/runtime/client/runtime.go:422 +0x813 github.com/aeternity/aepp-sdk-go/generated/client/external.(Client).GetAccountByPubkey(0xc0001a6de0, 0xc0004f0060, 0x8c0269, 0xc0000cc480, 0x265) /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/generated/client/external/external_client.go:36 +0x29f github.com/aeternity/aepp-sdk-go/aeternity.getAccount(0xc0001a6dc0, 0xc0003e4380, 0x35, 0x7, 0xc0004f0030, 0x0) /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/aeternity/api.go:103 +0x78 github.com/aeternity/aepp-sdk-go/aeternity.(Ae).APIGetAccount(...) /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/aeternity/api.go:96 github.com/aeternity/aepp-sdk-go/cmd.balanceFunc(0xfcc280, 0xc00019dfa0, 0x1, 0x1, 0x0, 0x0) /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/cmd/account.go:132 +0xcb github.com/spf13/cobra.(Command).execute(0xfcc280, 0xc00019df60, 0x1, 0x1, 0xfcc280, 0xc00019df60) /home/shinichi/source/go/src/github.com/spf13/cobra/command.go:762 +0x465 github.com/spf13/cobra.(Command).ExecuteC(0xfcdca0, 0xc00049e870, 0x4c, 0x31) /home/shinichi/source/go/src/github.com/spf13/cobra/command.go:852 +0x2c0 github.com/spf13/cobra.(Command).Execute(...) /home/shinichi/source/go/src/github.com/spf13/cobra/command.go:800 github.com/aeternity/aepp-sdk-go/cmd.Execute(0xb680a0, 0x1f) /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/cmd/root.go:42 +0x5e main.main() /home/shinichi/source/go/src/github.com/aeternity/aepp-sdk-go/main.go:29 +0x39 shinichi@ilya:~/source/aeternity