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

Problem: panic on importing valid genesis.json exported state. #1138

Closed
alpha-omega-labs opened this issue Aug 22, 2023 · 0 comments · Fixed by #1140
Closed

Problem: panic on importing valid genesis.json exported state. #1138

alpha-omega-labs opened this issue Aug 22, 2023 · 0 comments · Fixed by #1140

Comments

@alpha-omega-labs
Copy link

  1. state (as of few days ago) exported
  2. genesis.json with state validated by cronosd as valid
  3. starting chain with it throw panic:
initializing blockchain state from genesis.json
panic: value is nil

goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/store/types.AssertValidValue(...)
        github.com/cosmos/cosmos-sdk@v0.46.15-0.20230807104542-537257060180/store/types/validity.go:13
github.com/cosmos/cosmos-sdk/store/gaskv.(*Store).Set(0x5272070?, {0xc0fd499d20?, 0x1?, 0x1?}, {0x0?, 0xed?, 0xed?})
        github.com/cosmos/cosmos-sdk@v0.46.15-0.20230807104542-537257060180/store/gaskv/store.go:49 +0x11c
github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper.SetAccount({{0x3c83788, 0xc0016b5190}, {0x3cb2ed0, 0xc0010be170}, {{0x3cb2ed0, 0xc0010be170}, 0xc000d84000, {0x3c83788, 0xc0016b5200}, {0x3c837d8, ...}, ...}, ...}, ...)
        github.com/cosmos/cosmos-sdk@v0.46.15-0.20230807104542-537257060180/x/auth/keeper/account.go:82 +0x2da
github.com/cosmos/cosmos-sdk/x/auth/keeper.AccountKeeper.InitGenesis({{0x3c83788, 0xc0016b5190}, {0x3cb2ed0, 0xc0010be170}, {{0x3cb2ed0, 0xc0010be170}, 0xc000d84000, {0x3c83788, 0xc0016b5200}, {0x3c837d8, ...}, ...}, ...}, ...)
        github.com/cosmos/cosmos-sdk@v0.46.15-0.20230807104542-537257060180/x/auth/keeper/genesis.go:23 +0x285
github.com/cosmos/cosmos-sdk/x/auth.AppModule.InitGenesis({{}, {{0x3c83788, 0xc0016b5190}, {0x3cb2ed0, 0xc0010be170}, {{0x3cb2ed0, 0xc0010be170}, 0xc000d84000, {0x3c83788, 0xc0016b5200}, ...}, ...}, ...}, ...)
        github.com/cosmos/cosmos-sdk@v0.46.15-0.20230807104542-537257060180/x/auth/module.go:144 +0x125
github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(_, {{0x3c9fe68, 0xc0000560a0}, {0x3cb38e0, 0xc000e2a2c0}, {{0x0, 0x0}, {0xc001d0c010, 0xc}, 0x67049f, ...}, ...}, ...)
        github.com/cosmos/cosmos-sdk@v0.46.15-0.20230807104542-537257060180/types/module/module.go:322 +0x363
github.com/crypto-org-chain/cronos/app.(*App).InitChainer(_, {{0x3c9fe68, 0xc0000560a0}, {0x3cb38e0, 0xc000e2a2c0}, {{0x0, 0x0}, {0xc001d0c010, 0xc}, 0x67049f, ...}, ...}, ...)
        github.com/crypto-org-chain/cronos/app/app.go:872 +0x1cf
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0xc0001488c0, {{0x1, 0xed9ed0804, 0x0}, {0xc001d0c010, 0xc}, 0xc00059f4a0, {0xc001230480, 0x2c, 0x2c}, ...})
        github.com/cosmos/cosmos-sdk@v0.46.15-0.20230807104542-537257060180/baseapp/abci.go:71 +0x3f5
github.com/tendermint/tendermint/abci/client.(*localClient).InitChainSync(0xc00001f680, {{0x1, 0xed9ed0804, 0x0}, {0xc001d0c010, 0xc}, 0xc00059f4a0, {0xc001230480, 0x2c, 0x2c}, ...})
        github.com/tendermint/tendermint@v0.34.29/abci/client/local_client.go:272 +0x118
github.com/tendermint/tendermint/proxy.(*appConnConsensus).InitChainSync(0xc000fee570?, {{0x1, 0xed9ed0804, 0x0}, {0xc001d0c010, 0xc}, 0xc00059f4a0, {0xc001230480, 0x2c, 0x2c}, ...})
        github.com/tendermint/tendermint@v0.34.29/proxy/app_conn.go:77 +0x55
github.com/tendermint/tendermint/consensus.(*Handshaker).ReplayBlocksWithContext(_, {_, _}, {{{0xb, 0x0}, {0x2b6199c, 0x7}}, {0xc001d0c010, 0xc}, 0x67049f, ...}, ...)
        github.com/tendermint/tendermint@v0.34.29/consensus/replay.go:336 +0xf58
github.com/tendermint/tendermint/consensus.(*Handshaker).HandshakeWithContext(0xc0006baca0, {0x3c9fe30, 0xc000020fa0}, {0x3cb6728?, 0xc002600000?})
        github.com/tendermint/tendermint@v0.34.29/consensus/replay.go:274 +0x405
github.com/tendermint/tendermint/node.doHandshake({_, _}, {_, _}, {{{0xb, 0x0}, {0x2b6199c, 0x7}}, {0xc001d0c010, 0xc}, ...}, ...)
        github.com/tendermint/tendermint@v0.34.29/node/node.go:330 +0x1c8
github.com/tendermint/tendermint/node.NewNodeWithContext({0x3c9fe30, 0xc000020fa0}, 0xc000d52500, {0x3c9bf90, 0xc001014be0}, 0xc001ddbc10, {0x3c7aa40, 0xc0000125a0}, 0xbebc2?, 0x37c4420, ...)
        github.com/tendermint/tendermint@v0.34.29/node/node.go:797 +0x5b7
github.com/evmos/ethermint/server.startInProcess(_, {{0x0, 0x0, 0x0}, {0x3cc8728, 0xc0012e0750}, 0x0, {0x0, 0x0}, {0x3cbb158, ...}, ...}, ...)
        github.com/evmos/ethermint@v0.0.0-00010101000000-000000000000/server/start.go:347 +0xcc5
github.com/evmos/ethermint/server.StartCmd.func2.2()
        github.com/evmos/ethermint@v0.0.0-00010101000000-000000000000/server/start.go:145 +0x5e
github.com/evmos/ethermint/server.wrapCPUProfile(0xc0012f3f80, 0xc001a7f928)
        github.com/evmos/ethermint@v0.0.0-00010101000000-000000000000/server/start.go:656 +0x2cb
github.com/evmos/ethermint/server.StartCmd.func2(0xc001003800?, {0x54eba78?, 0x0?, 0x0?})
        github.com/evmos/ethermint@v0.0.0-00010101000000-000000000000/server/start.go:144 +0x279
github.com/spf13/cobra.(*Command).execute(0xc001003800, {0x54eba78, 0x0, 0x0})
        github.com/spf13/cobra@v1.6.1/command.go:916 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0xc000eef800)
        github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/cobra@v1.6.1/command.go:968
github.com/spf13/cobra.(*Command).ExecuteContext(...)
        github.com/spf13/cobra@v1.6.1/command.go:961
github.com/cosmos/cosmos-sdk/server/cmd.Execute(0x2498210?, {0x2b5fd82, 0x6}, {0xc00109ab60, 0xd})
        github.com/cosmos/cosmos-sdk@v0.46.15-0.20230807104542-537257060180/server/cmd/execute.go:36 +0x20f
main.main()
        github.com/crypto-org-chain/cronos/cmd/cronosd/main.go:13 +0x38

#1124 (comment)

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

Successfully merging a pull request may close this issue.

1 participant