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: Int64() out of bound for Cosmos SDK v0.46.10 #37

Closed
ryssroad opened this issue May 22, 2023 · 1 comment
Closed

panic: Int64() out of bound for Cosmos SDK v0.46.10 #37

ryssroad opened this issue May 22, 2023 · 1 comment

Comments

@ryssroad
Copy link

ryssroad commented May 22, 2023

On latest version (v0.3.0) service crashes with following error:

11:19PM INF Started with following parameters --bech-account-prefix=cascadia --bech-account-pubkey-prefix=cascadiapub --bech-consensus-node-prefix=cascadiavalcons --bech-consensus-node-pubkey-prefix=cascadiavalconspub --bech-validator-prefix=cascadiavaloper --bech-validator-pubkey-prefix=cascadiavaloperpub --denom=aCC --listen-address=:9300 --log-level=info --node=localhost:9190
panic: Int64() out of bound
goroutine 89 [running]:
github.com/cosmos/cosmos-sdk/types.Dec.RoundInt64(0xc00013dd20, 0x1bc16d6713136a8a)
        /home/runner/go/pkg/mod/github.com/cosmos/[email protected]/types/decimal.go:554 +0xb3
main.ValidatorsHandler.func1.1(0x0, 0x60, 0x14367e0)
        /home/runner/work/cosmos-exporter/cosmos-exporter/validators.go:155 +0x85
sort.medianOfThree_func(0xc00156df90, 0xc000e27590, 0x0, 0x60, 0xc0)
        /opt/hostedtoolcache/go/1.16.5/x64/src/sort/zfuncversion.go:53 +0x3e
sort.doPivot_func(0xc00156df90, 0xc000e27590, 0x0, 0x303, 0xfa523e, 0x7f1a0212a2a0)
        /opt/hostedtoolcache/go/1.16.5/x64/src/sort/zfuncversion.go:76 +0x4fc
sort.quickSort_func(0xc00156df90, 0xc000e27590, 0x0, 0x303, 0x14)
        /opt/hostedtoolcache/go/1.16.5/x64/src/sort/zfuncversion.go:143 +0x97
sort.Slice(0x1301460, 0xc00000d350, 0xc00156df90)
        /opt/hostedtoolcache/go/1.16.5/x64/src/sort/slice.go:20 +0xe8
main.ValidatorsHandler.func1(0xc00059c474, 0xc0005aeb40, 0xc000d62e00, 0xc0011029d8)
        /home/runner/work/cosmos-exporter/cosmos-exporter/validators.go:154 +0x3bd
created by main.ValidatorsHandler
        /home/runner/work/cosmos-exporter/cosmos-exporter/validators.go:129 +0x1336
cosmos-exporter.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
cosmos-exporter.service: Failed with result 'exit-code'.
cosmos-exporter.service: Scheduled restart job, restart counter is at 31.
Stopped Cosmos Exporter.
Started Cosmos Exporter.

node running on cosmos_sdk_version: v0.46.10 / tendermint v0.34.26

@ryssroad
Copy link
Author

fixed by #23

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

1 participant