Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: UnmarshalBinaryBare expected to read prefix bytes when launch basecli account <adress> #1900

Closed
4 tasks
DominiqueDurand opened this issue Aug 1, 2018 · 3 comments

Comments

@DominiqueDurand
Copy link

DominiqueDurand commented Aug 1, 2018

Summary of Bug

basecli account cosmosaccaddr19gxeh7nhrekcv2erst24q3qtu0rud8fr7p2wdt
panic: UnmarshalBinaryBare expected to read prefix bytes 75FBFAB8 (since it is registered concrete) but got 0A142A0D...

goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/examples/basecoin/types.GetAccountDecoder.func1(0x133d0120, 0x26, 0x27, 0x0, 0x0, 0x0, 0x0)
/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/examples/basecoin/types/account.go:42 +0x140
github.com/cosmos/cosmos-sdk/x/auth/client/cli.GetAccountCmd.func1(0x1334ea20, 0x12a99d48, 0x1, 0x1, 0x0, 0x0)
/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/x/auth/client/cli/account.go:63 +0x168
github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra.(*Command).execute(0x1334ea20, 0x12a99d30, 0x1, 0x1, 0x1334ea20, 0x12a99d30)
/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra/command.go:698 +0x364
github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xd60b40, 0x7d2ab8, 0x1d, 0x12a99cf8)
/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra/command.go:783 +0x1f8
github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra.(*Command).Execute(0xd60b40, 0xd60bb0, 0x12a99d00)
/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra/command.go:736 +0x1c
github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/libs/cli.Executor.Execute(0xd60b40, 0x920fe8, 0x2, 0x12a2aec0)
/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/libs/cli/setup.go:89 +0x28
main.main()
/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/examples/basecoin/cmd/basecli/main.go:79 +0x3f0

Steps to Reproduce

basecli version
0.22.0-9f2b83cb

basecli send --from=Dominique --amount=10000WTU --to=cosmosaccaddr19gxeh7nhrekcv2erst24q3qtu0rud8fr7p2wdt --chain-id=chain-WorldTradingUnit
Defaulting to account number: 0
Defaulting to next sequence number: 0
Password to sign with 'Dominique':
Committed at block 56. Hash: 31E148AB7086A19A349C4399AEEFECABBE7DC18F

basecli account cosmosaccaddr19gxeh7nhrekcv2erst24q3qtu0rud8fr7p2wdt
panic: UnmarshalBinaryBare expected to read prefix bytes 75FBFAB8 (since it is registered concrete) but got 0A142A0D...

goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/examples/basecoin/types.GetAccountDecoder.func1(0x133d0120, 0x26, 0x27, 0x0, 0x0, 0x0, 0x0)
/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/examples/basecoin/types/account.go:42 +0x140
github.com/cosmos/cosmos-sdk/x/auth/client/cli.GetAccountCmd.func1(0x1334ea20, 0x12a99d48, 0x1, 0x1, 0x0, 0x0)
/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/x/auth/client/cli/account.go:63 +0x168
github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra.(*Command).execute(0x1334ea20, 0x12a99d30, 0x1, 0x1, 0x1334ea20, 0x12a99d30)
/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra/command.go:698 +0x364
github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xd60b40, 0x7d2ab8, 0x1d, 0x12a99cf8)
/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra/command.go:783 +0x1f8
github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra.(*Command).Execute(0xd60b40, 0xd60bb0, 0x12a99d00)
/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/spf13/cobra/command.go:736 +0x1c
github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/libs/cli.Executor.Execute(0xd60b40, 0x920fe8, 0x2, 0x12a2aec0)
/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/libs/cli/setup.go:89 +0x28
main.main()
/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/examples/basecoin/cmd/basecli/main.go:79 +0x3f0

and when i sent for the second time i have :

basecli send --from=Dominique --amount=10000WTU --to=cosmosaccaddr19gxeh7nhrekcv2erst24q3qtu0rud8fr7p2wdt --chain-id=chain-WorldTradingUnit
Defaulting to account number: 0
Defaulting to next sequence number: 1
Password to sign with 'Dominique':
ERROR: checkTx failed: (65537) === ABCI Log ===
Codespace: 1
Code: 1
ABCICode: 65537
Error: --= Error =--
Data: common.FmtError{format:"recovered: unmarshal to auth.Account failed after 4 bytes (unrecognized prefix bytes 0A142A0D): 0A142A0D9BFA771E6D862B2382D550440BE3C7C69D23120C0A03575455120531303030302002\nstack:\ngoroutine 3988 [running]:\nruntime/debug.Stack(0x14000b5c, 0x74f2a8, 0x13b72f00)\n\t/usr/local/go/src/runtime/debug/stack.go:24 +0x80\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx.func1(0x140014b0, 0x14001348, 0x14001370)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/baseapp/baseapp.go:600 +0x8c\npanic(0x74f2a8, 0x13b72f00)\n\t/usr/local/go/src/runtime/panic.go:502 +0x204\ngithub.com/cosmos/cosmos-sdk/x/auth.AccountMapper.decodeAccount(0x9f3488, 0x111bc690, 0x97b0fc, 0x11998380, 0x12529870, 0x26, 0x40, 0x20, 0x4fdd40)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/x/auth/mapper.go:169 +0x90\ngithub.com/cosmos/cosmos-sdk/x/auth.AccountMapper.GetAccount(0x9f3488, 0x111bc690, 0x97b0fc, 0x11998380, 0x9f6638, 0x1251a400, 0x111c4f60, 0xd, 0x1123d620, 0x14, ...)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/x/auth/mapper.go:74 +0x114\ngithub.com/cosmos/cosmos-sdk/x/bank.getCoins(0x9f6638, 0x1251a400, 0x111c4f60, 0xd, 0x9f3488, 0x111bc690, 0x97b0fc, 0x11998380, 0x1123d620, 0x14, ...)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/x/bank/keeper.go:121 +0xc4\ngithub.com/cosmos/cosmos-sdk/x/bank.addCoins(0x9f6638, 0x1251a400, 0x111c4f60, 0xd, 0x9f3488, 0x111bc690, 0x97b0fc, 0x11998380, 0x1123d620, 0x14, ...)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/x/bank/keeper.go:165 +0xc8\ngithub.com/cosmos/cosmos-sdk/x/bank.inputOutputCoins(0x9f6638, 0x1251a400, 0x111c4f60, 0xd, 0x9f3488, 0x111bc690, 0x97b0fc, 0x11998380, 0x1360f6e0, 0x1, ...)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/x/bank/keeper.go:205 +0x320\ngithub.com/cosmos/cosmos-sdk/x/bank.Keeper.InputOutputCoins(0x9f3488, 0x111bc690, 0x97b0fc, 0x11998380, 0x9f6638, 0x1251a400, 0x111c4f60, 0xd, 0x1360f6e0, 0x1, ...)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/x/bank/keeper.go:60 +0x84\ngithub.com/cosmos/cosmos-sdk/x/bank.handleMsgSend(0x9f6638, 0x1251a400, 0x111c4f60, 0xd, 0x9f3488, 0x111bc690, 0x97b0fc, 0x11998380, 0x1360f6e0, 0x1, ...)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/x/bank/handler.go:28 +0x94\ngithub.com/cosmos/cosmos-sdk/x/bank.NewHandler.func1(0x9f6638, 0x1251a400, 0x111c4f60, 0xd, 0x9f6c98, 0x1360f780, 0x0, 0x0, 0x0, 0x0, ...)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/x/bank/handler.go:14 +0x234\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runMsgs(0x1198e240, 0x9f6638, 0x1251a400, 0x111c4f60, 0xd, 0x13b72960, 0x1, 0x1, 0x0, 0x0, ...)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/baseapp/baseapp.go:540 +0x164\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx(0x1198e240, 0x0, 0x126b21c0, 0xd9, 0xdb, 0x9f2600, 0x12638880, 0x0, 0x0, 0x0, ...)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/baseapp/baseapp.go:639 +0x208\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).CheckTx(0x1198e240, 0x126b21c0, 0xd9, 0xdb, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/baseapp/baseapp.go:447 +0x18c\ngithub.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/abci/client.(*localClient).CheckTxAsync(0x115c1040, 0x126b21c0, 0xd9, 0xdb, 0x0)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/abci/client/local_client.go:86 +0x54\ngithub.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/proxy.(*appConnMempool).CheckTxAsync(0x1110f428, 0x126b21c0, 0xd9, 0xdb, 0x1)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/proxy/app_conn.go:114 +0x40\ngithub.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/mempool.(*Mempool).CheckTx(0x1198e960, 0x126b21c0, 0xd9, 0xdb, 0x13b72908, 0x0, 0x0)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/mempool/mempool.go:266 +0x120\ngithub.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/rpc/core.BroadcastTxCommit(0x126b21c0, 0xd9, 0xdb, 0x0, 0x0, 0x0)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/rpc/core/mempool.go:168 +0x380\nreflect.Value.call(0x7363f8, 0x97ae5c, 0x13, 0x813c25, 0x4, 0x13df2770, 0x1, 0x1, 0x1, 0x0, ...)\n\t/usr/local/go/src/reflect/value.go:447 +0x6b0\nreflect.Value.Call(0x7363f8, 0x97ae5c, 0x13, 0x13df2770, 0x1, 0x1, 0x1, 0x1, 0x0)\n\t/usr/local/go/src/reflect/value.go:308 +0x74\ngithub.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/rpc/lib/server.makeJSONRPCHandler.func1(0x9f5a38, 0x13df2740, 0x124ba300)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/rpc/lib/server/handlers.go:145 +0x2c4\ngithub.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/rpc/lib/server.handleInvalidJSONRPCPaths.func1(0x9f5a38, 0x13df2740, 0x124ba300)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/rpc/lib/server/handlers.go:165 +0x70\nnet/http.HandlerFunc.ServeHTTP(0x111bca60, 0x9f5a38, 0x13df2740, 0x124ba300)\n\t/usr/local/go/src/net/http/server.go:1947 +0x34\nnet/http.(*ServeMux).ServeHTTP(0x119ec900, 0x9f5a38, 0x13df2740, 0x124ba300)\n\t/usr/local/go/src/net/http/server.go:2337 +0x108\ngithub.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/rpc/lib/server.maxBytesHandler.ServeHTTP(0x9f1958, 0x119ec900, 0xf4240, 0x0, 0x9f5a38, 0x13df2740, 0x124ba300)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/rpc/lib/server/http_server.go:219 +0xd8\ngithub.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/rpc/lib/server.RecoverAndLogHandler.func1(0x9f5e38, 0x11a32f30, 0x124ba300)\n\t/home/pi/goApps/src/github.com/cosmos/cosmos-sdk/vendor/github.com/tendermint/tendermint/rpc/lib/server/http_server.go:192 +0x2f8\nnet/http.HandlerFunc.ServeHTTP(0x119fe220, 0x9f5e38, 0x11a32f30, 0x124ba300)\n\t/usr/local/go/src/net/http/server.go:1947 +0x34\nnet/http.serverHandler.ServeHTTP(0x11a0df00, 0x9f5e38, 0x11a32f30, 0x124ba300)\n\t/usr/local/go/src/net/http/server.go:2694 +0x74\nnet/http.(*conn).serve(0x12682900, 0x9f65d8, 0x13e8eea0)\n\t/usr/local/go/src/net/http/server.go:1830 +0x57c\ncreated by net/http.(*Server).Serve\n\t/usr/local/go/src/net/http/server.go:2795 +0x208\n", args:[]interface {}(nil)}
Msg Traces:
--= /Error =--

=== /ABCI Log ===


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@DominiqueDurand
Copy link
Author

same probleme with
basecli version 0.23.1-23e3d5ac

@ValarDragon
Copy link
Contributor

ValarDragon commented Aug 4, 2018

This should be closed by #1919

@ValarDragon
Copy link
Contributor

Closed by #1942

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants