Skip to content

cometBFT crashed with recheck cursor is not nil before resCbFirstTime #1239

@p4u

Description

@p4u

On vocdoni-node branch dev, using cometbft v1.0.0-alpha.1

2024-01-16T13:11:22.576Z ERR vochain/cometbft.go:216 > checkTx error="voteTx: process 63f57be98f80079bd064d886b7198f4a4c110a17a8f8f8f8c532020000000000 not in READY state - current state: RESULTS"
2024-01-16T13:11:22.59Z INF vochain status blockPeriod="10m:12.614s 1h:10.895s 24h:10.424s" blocksMinute=6.00 elections=85 height=10019 mempool=7990 peers=4 voteCache=15976 votes=64558 votes/min=0
2024-01-16T13:11:24.223Z WRN transaction/vote_tx.go:67 > deprecated block count based vote detected process=63f57be98f805e3c7cfb4535c3a7b612ca4a64892478b9765c14020000000000
2024-01-16T13:11:24.223Z ERR vochain/cometbft.go:216 > checkTx error="voteTx: process 63f57be98f805e3c7cfb4535c3a7b612ca4a64892478b9765c14020000000000 not in READY state - current state: ENDED"
2024-01-16T13:11:24.404Z INF api/censuses.go:306 > adding participants to census census=885afa81627066761c521e1c81f7eae7f871e9802197a0605bae4d107d4da004 count=1
2024-01-16T13:11:24.668Z INF ipfs/ipfs.go:180 > published file cid=bafybeieivpqlwppcwfjezjumnm4s6ozouzvz2grytdbtgr4mrk2uwkpyom protocol=ipfs size=0
2024-01-16T13:11:26.125Z WRN transaction/election_tx.go:63 > deprecated block count based new process detected id=
panic: recheck cursor is not nil before resCbFirstTime

goroutine 984026 [running]:
github.com/cometbft/cometbft/mempool.(*CListMempool).globalCb(0xc001c31ba0, 0xc000600000?, 0xc0119eadd0)
	github.com/cometbft/cometbft@v1.0.0-alpha.1/mempool/clist_mempool.go:314 +0x145
github.com/cometbft/cometbft/abci/client.(*localClient).callback(0xc0007c8580?, 0x40?, 0x36e9de0?)
	github.com/cometbft/cometbft@v1.0.0-alpha.1/abci/client/local_client.go:64 +0x27
github.com/cometbft/cometbft/abci/client.(*localClient).CheckTxAsync(0xc004277b00, {0x453add8?, 0x6043ec0?}, 0xc01c33d460)
	github.com/cometbft/cometbft@v1.0.0-alpha.1/abci/client/local_client.go:57 +0x1e6
github.com/cometbft/cometbft/proxy.(*appConnMempool).CheckTxAsync(0xc002cc2768, {0x453add8, 0x6043ec0}, 0xc01c33d440?)
	github.com/cometbft/cometbft@v1.0.0-alpha.1/proxy/app_conn.go:148 +0x16d
github.com/cometbft/cometbft/mempool.(*CListMempool).CheckTx(0xc001c31ba0, {0xc0126143c0, 0x133, 0x135})
	github.com/cometbft/cometbft@v1.0.0-alpha.1/mempool/clist_mempool.go:293 +0x426
github.com/cometbft/cometbft/rpc/core.(*Environment).BroadcastTxSync(0xc002336a00, 0xc002ba8b20, {0xc0126143c0, 0x133, 0x135})
	github.com/cometbft/cometbft@v1.0.0-alpha.1/rpc/core/mempool.go:43 +0xa8
github.com/cometbft/cometbft/rpc/client/local.(*Local).BroadcastTxSync(...)
	github.com/cometbft/cometbft@v1.0.0-alpha.1/rpc/client/local/local.go:98
go.vocdoni.io/dvote/vochain.(*BaseApplication).SetDefaultMethods.func4({0xc0126143c0?, 0x133, 0x3b?})
	go.vocdoni.io/dvote/vochain/appsetup.go:64 +0x4e
go.vocdoni.io/dvote/vochain.(*BaseApplication).SendTx(0x24?, {0xc0126143c0?, 0x24?, 0x1b8?})
	go.vocdoni.io/dvote/vochain/app.go:339 +0x2a
go.vocdoni.io/dvote/api.(*API).sendTx(0xc01dd95ec0?, {0xc0126143c0?, 0xc00dcd28c0?, 0x42?})
	go.vocdoni.io/dvote/api/helpers.go:40 +0x2b
go.vocdoni.io/dvote/api.(*API).electionCreateHandler(0xc00dde2320, 0xc01dd66240, 0x10000c00ffe2f58?)
	go.vocdoni.io/dvote/api/elections.go:496 +0x2c8
go.vocdoni.io/dvote/httprouter/apirest.(*API).RegisterMethod.func1({{0x3619160, 0xc01dd66240}, {0xc161bdff876e01d4, 0xfe4a1c8f2d, 0x600bfa0}, {0xc01dd66280, 0x2, 0x2}, 0xc01c33d380})
	go.vocdoni.io/dvote/httprouter/apirest/apirest.go:231 +0x6b
created by go.vocdoni.io/dvote/httprouter.(*HTTProuter).AddPublicHandler.(*HTTProuter).routerHandler.func1 in goroutine 984037
	go.vocdoni.io/dvote/httprouter/httprouter.go:283 +0x3c5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions