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

Unable to deliver IBC transfer packet due to divide by zero #1388

Closed
joe-bowman opened this issue Apr 4, 2024 · 0 comments · Fixed by #1389
Closed

Unable to deliver IBC transfer packet due to divide by zero #1388

joe-bowman opened this issue Apr 4, 2024 · 0 comments · Fixed by #1389

Comments

@joe-bowman
Copy link
Contributor

2024-04-03T18:36:28.493525Z ERROR ThreadId(01) Failed to relay reverse recv and timeout packets: link failed with underlying error: gRPC call `send_tx_simulate` failed with status: status: Unknown, message: "recovered: division by zero\nstack:\ngoroutine 24655233 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x5e\ngithub.com/cosmos/cosmos-sdk/baseapp.NewBaseApp.newDefaultRecoveryMiddleware.func1({0x2410340?, 0x34f94c0})\n\tgithub.com/cosmos/[email protected]/baseapp/recovery.go:71 +0x26\ngithub.com/cosmos/cosmos-sdk/baseapp.NewBaseApp.newDefaultRecoveryMiddleware.newRecoveryMiddleware.func2({0x2410340?, 0x34f94c0?})\n\tgithub.com/cosmos/[email protected]/baseapp/recovery.go:39 +0x2d\ngithub.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x2410340, 0x34f94c0}, 0x0?)\n\tgithub.com/cosmos/[email protected]/baseapp/recovery.go:28 +0x2f\ngithub.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x2410340, 0x34f94c0}, 0x0?)\n\tgithub.com/cosmos/[email protected]/baseapp/recovery.go:33 +0x53\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx.func1()\n\tgithub.com/cosmos/[email protected]/baseapp/baseapp.go:642 +0xfe\npanic({0x2410340?, 0x34f94c0?})\n\truntime/panic.go:914 +0x21f\nmath/big.nat.div({0x0?, 0x20?, 0x20?}, {0x0?, 0xc01cf73480?, 0x7c28df6bcc38?}, {0x0?, 0x20?, 0xc000580000?}, {0x0, ...})\n\tmath/big/natdiv.go:520 +0x32e\nmath/big.(*Int).Quo(0xc09876b1a0, 0xc09876b1a0, 0xc09876b180)\n\tmath/big/int.go:268 +0x6c\ncosmossdk.io/math.LegacyDec.QuoMut({0x414605?}, {0xc00005ed50?})\n\tcosmossdk.io/[email protected]/dec.go:386 +0x3d\ncosmossdk.io/math.LegacyDec.ImmutOp({0xc0459f4150?}, 0x2fac900, {0xc01cf73600?})\n\tcosmossdk.io/[email protected]/dec.go:249 +0x158\ncosmossdk.io/math.LegacyDec.Quo(...)\n\tcosmossdk.io/[email protected]/dec.go:377\ngithub.com/quicksilver-zone/quicksilver/x/interchainstaking/keeper.(*Keeper).DistributeToClaimants.func2(0x29c9053d?, {{0xc0be35e7b0, 0x2c}, {0xc09020cce0, 0xe}, 0x1, {0xc09020ccf0, 0xd}, 0x0, {0xc09876b120}})\n\tgithub.com/quicksilver-zone/quicksilver/x/interchainstaking/keeper/ibc_packet_handlers.go:352 +0xdc\ngithub.com/quicksilver-zone/quicksilver/x/claimsmanager/keeper.Keeper.IterateLastEpochClaims({{_, _}, {_, _}, _}, {{0x3527248, 0x4c060e0}, {0x353b820, 0xc0a56e51c0}, {{0xb, ...}, ...}, ...}, ...)\n\tgithub.com/quicksilver-zone/quicksilver/x/claimsmanager/keeper/claims.go:125 +0x2d4\ngithub.com/quicksilver-zone/quicksilver/x/interchainstaking/keeper.(*Keeper).DistributeToClaimants(_, {{0x3527248, 0x4c060e0}, {0x353b820, 0xc0a56e51c0}, {{0xb, 0x0}, {0xc03bfea400, 0xd}, 0x661769, ...}, ...}, ...)\n\tgithub.com/quicksilver-zone/quicksilver/x/interchainstaking/keeper/ibc_packet_handlers.go:351 +0x59b\ngithub.com/quicksilver-zone/quicksilver/x/interchainstaking/keeper.(*Keeper).HandleMsgTransfer(_, {{0x3527248, 0x4c060e0}, {0x353b820, 0xc0a56e51c0}, {{0xb, 0x0}, {0xc03bfea400, 0xd}, 0x661769, ...}, ...}, ...)\n\tgithub.com/quicksilver-zone/quicksilver/x/interchainstaking/keeper/ibc_packet_handlers.go:324 +0x585\ngithub.com/quicksilver-zone/quicksilver/x/interchainstaking.TransferMiddleware.OnRecvPacket({{_, _}, _}, {{0x3527248, 0x4c060e0}, {0x353b820, 0xc0a56e51c0}, {{0xb, 0x0}, {0xc03bfea400, ...}, ...}, ...}, ...)\n\tgithub.com/quicksilver-zone/quicksilver/x/interchainstaking/transfer_middleware.go:102 +0x369\ngithub.com/cosmos/ibc-go/v5/modules/core/keeper.Keeper.RecvPacket({{0x0, 0x0}, {0x353b6d0, 0xc0014894c0}, {{0x3508d88, 0xc00054e050}, {0x353b6d0, 0xc0014894c0}, {{0x353b6d0, 0xc0014894c0}, ...}, ...}, ...}, ...)\n\tgithub.com/cosmos/ibc-go/[email protected]/modules/core/keeper/msg_server.go:410 +0x5b8\ngithub.com/cosmos/ibc-go/v5/modules/core/04-channel/types._Msg_RecvPacket_Handler.func1({0x3527788, 0xc07905ff80}, {0x27dc1e0?, 0xc069b76160})\n\tgithub.com/cosmos/ibc-go/[email protected]/modules/core/04-channel/types/tx.pb.go:1322 +0x72\ngithub.com/cosmos/cosmos-sdk/baseapp.(*MsgServiceRouter).RegisterService.func2.1({0x35272b8, 0xc01afe18c0}, {0xc01cf76478?, 0x411d65?}, 0x2a0?, 0xc07ef2f758)\n\tgithub.com/cosmos/[email protected]/baseapp/msg_service_router.go:118 +0x93\ngithub.com/cosmos/ibc-go/v5/modules/core/04-channel/types._Msg_RecvPacket_Handler({0x287d4e0?, 0xc0014ccf00}, {0x35272b8, 0xc01afe18c0}, 0x2fab210, 0xc0b2c9ea60)\n\tgithub.com/cosmos/ibc-go/[email protected]/modules/core/04-channel/types/tx.pb.go:1324 +0x135\ngithub.com/cosmos/cosmos-sdk/baseapp.(*MsgServiceRouter).RegisterService.func2({{0x3527248, 0x4c060e0}, {0x353b820, 0xc0905c1600}, {{0xb, 0x0}, {0xc03bfea400, 0xd}, 0x661769, {0x29c9053d, ...}, ...}, ...}, ...)\n\tgithub.com/cosmos/[email protected]/baseapp/msg_service_router.go:145 +0x3a3\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runMsgs(_, {{0x3527248, 0x4c060e0}, {0x353b820, 0xc0905c1600}, {{0xb, 0x0}, {0xc03bfea400, 0xd}, 0x661769, ...}, ...}, ...)\n\tgithub.com/cosmos/[email protected]/baseapp/baseapp.go:788 +0x285\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx(0xc0019288c0, 0x2, {0xc01ae7c000, 0x39a1, 0x4000})\n\tgithub.com/cosmos/[email protected]/baseapp/baseapp.go:728 +0xd05\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).Simulate(...)\n\tgithub.com/cosmos/[email protected]/baseapp/test_helpers.go:25\ngithub.com/cosmos/cosmos-sdk/x/auth/tx.txServer.Simulate({{{0x0, 0x0, 0x0}, {0x354ebe8, 0xc006f889c0}, 0x0, {0x0, 0x0}, {0x3542e30, 0xc000a8b3e0}, ...}, ...}, ...)\n\tgithub.com/cosmos/[email protected]/x/auth/tx/service.go:132 +0x129\ngithub.com/cosmos/cosmos-sdk/types/tx._Service_Simulate_Handler.func1({0x3527788, 0xc09f7e9b60}, {0x27b1280?, 0xc0752b1140})\n\tgithub.com/cosmos/[email protected]/types/tx/service.pb.go:933 +0x72\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).RegisterGRPCServer.func1({0x3527788, 0xc046831860}, {0x27b1280, 0xc0752b1140}, 0xc0752b1160?, 0xc0321c28d0)\n\tgithub.com/cosmos/[email protected]/baseapp/grpcserver.go:68 +0x391\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).RegisterGRPCServer.func2.ChainUnaryServer.func2.1({0x3527788?, 0xc046831860?}, {0x27b1280?, 0xc0752b1140?})\n\tgithub.com/grpc-ecosystem/[email protected]/chain.go:48 +0x45\ngithub.com/grpc-ecosystem/go-grpc-middleware/recovery.UnaryServerInterceptor.func1({0x3527788?, 0xc046831860?}, {0x27b1280?, 0xc0752b1140?}, 0xc0321c28d0?, 0x0?)\n\tgithub.com/grpc-ecosystem/[email protected]/recovery/interceptors.go:33 +0xb0\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).RegisterGRPCServer.func2.ChainUnaryServer.func2({0x3527788, 0xc046831860}, {0x27b1280, 0xc0752b1140}, 0xc0752b1160, 0x414605?)\n\tgithub.com/grpc-ecosystem/[email protected]/chain.go:53 +0x135\ngithub.com/cosmos/cosmos-sdk/types/tx._Service_Simulate_Handler({0x2736500?, 0xc00482e000}, {0x3527788, 0xc046831860}, 0xc0d3b40580, 0xc046831890)\n\tgithub.com/cosmos/[email protected]/types/tx/service.pb.go:935 +0x135\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).RegisterGRPCServer.func2({0x2736500, 0xc00482e000}, {0x3527788, 0xc046831860}, 0x284d600?, 0xc072bfc480?)\n\tgithub.com/cosmos/[email protected]/baseapp/grpcserver.go:82 +0x112\ngoogle.golang.org/grpc.(*Server).processUnaryRPC(0xc002c18c00, {0x3527788, 0xc0722622a0}, {0x3539180, 0xc029814d00}, 0xc072bfc480, 0xc02f3ba1e0, 0xc02f3a8200, 0x0)\n\tgoogle.golang.org/[email protected]/server.go:1386 +0xe23\ngoogle.golang.org/grpc.(*Server).handleStream(0xc002c18c00, {0x3539180, 0xc029814d00}, 0xc072bfc480)\n\tgoogle.golang.org/[email protected]/server.go:1797 +0x100c\ngoogle.golang.org/grpc.(*Server).serveStreams.func2.1()\n\tgoogle.golang.org/[email protected]/server.go:1027 +0x8b\ncreated by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 13727333\n\tgoogle.golang.org/[email protected]/server.go:1038 +0x135\n: panic [cosmos/[email protected]/baseapp/recovery.go:69] With gas wanted: '150000000' and gas used: '346676' ", details: [], metadata: MetadataMap { headers: {"server": "nginx/1.24.0", "date": "Wed, 03 Apr 2024 18:36:28 GMT", "content-type": "application/grpc", "x-cosmos-block-height": "6690665"} }
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