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

query error about mint module #8426

Closed
4 tasks
carameleon opened this issue Jan 25, 2021 · 6 comments · Fixed by #8658
Closed
4 tasks

query error about mint module #8426

carameleon opened this issue Jan 25, 2021 · 6 comments · Fixed by #8658
Labels
Milestone

Comments

@carameleon
Copy link

carameleon commented Jan 25, 2021

Summary of Bug

I queried mint/inflation works well but now gives an error.
Annual_provisions also gives an error.

stargate-e is work well
stargate-final CLI also gives the same error

stargate-final
https://lcd-office.cosmostation.io/stargate-final/cosmos/mint/v1beta1/annual_provisions
https://lcd-office.cosmostation.io/stargate-final/cosmos/mint/v1beta1/inflation
http://34.71.170.158:1317/cosmos/mint/v1beta1/inflation
http://34.71.170.158:1317/cosmos/mint/v1beta1/annual_provisions

stargate-e
https://lcd-office.cosmostation.io/cosmoshub-test-stargate-e/cosmos/mint/v1beta1/inflation
https://lcd-office.cosmostation.io/cosmoshub-test-stargate-e/cosmos/mint/v1beta1/annual_provisions

Version

Steps to Reproduce

You can check simply with LCD or CLI with endpoints.
http://34.71.170.158:1317/


For Admin Use

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

It seems to overflow because huge amount coins exist on the stargate-final.

@amaury1093 amaury1093 added this to the v0.40.X milestone Jan 25, 2021
@kwunyeung
Copy link
Contributor

Make gRPC unary request to the service cosmos.mint.v1beta1.QueryInflation.
Node got panic with the following log.

Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: panic: invalid Go type types.Dec for field cosmos.mint.v1beta1.QueryInflationResponse.inflation
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: goroutine 949 [running]:
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/protobuf/internal/impl.newSingularConverter(0x208b8e0, 0x1be6580, 0x208b7c0, 0xc0060f7ea0, 0x2c46260, 0x203001)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/protobuf@v1.25.0/internal/impl/convert.go:143 +0xf17
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/protobuf/internal/impl.NewConverter(0x208b8e0, 0x1be6580, 0x208b7c0, 0xc0060f7ea0, 0x188b1c0, 0x203001)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/protobuf@v1.25.0/internal/impl/convert.go:60 +0xdc
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/protobuf/internal/impl.fieldInfoForScalar(0x208b7c0, 0xc0060f7ea0, 0x1a2f056, 0x9, 0x0, 0x0, 0x208b8e0, 0x1be6580, 0x1a2f061, 0x6f, ...)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/protobuf@v1.25.0/internal/impl/message_reflect_field.go:234 +0x115
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/protobuf/internal/impl.(*MessageInfo).makeKnownFieldsFunc(0xc006755680, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xc0067e5cb0, 0xc0067e5ce0, 0xc0067e5d10, 0xc0067e5d40)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/protobuf@v1.25.0/internal/impl/message_reflect.go:67 +0x97d
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/protobuf/internal/impl.(*MessageInfo).makeReflectFuncs(0xc006755680, 0x208b8e0, 0x1a1dba0, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xc0067e5cb0, 0xc0067e5ce0, 0xc0067e5d10, ...)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/protobuf@v1.25.0/internal/impl/message_reflect.go:36 +0x65
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/protobuf/internal/impl.(*MessageInfo).initOnce(0xc006755680)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/protobuf@v1.25.0/internal/impl/message.go:90 +0x192
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/protobuf/internal/impl.(*MessageInfo).init(...)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/protobuf@v1.25.0/internal/impl/message.go:72
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/protobuf/internal/impl.(*messageReflectWrapper).ProtoMethods(0xc0067a1340, 0xc005c89828)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/protobuf@v1.25.0/internal/impl/message_reflect_gen.go:150 +0x53
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/protobuf/proto.protoMethods(...)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/protobuf@v1.25.0/proto/proto_methods.go:18
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/protobuf/proto.MarshalOptions.marshal(0xc006000001, 0x0, 0x0, 0x0, 0x2085ac0, 0xc0067a1340, 0xc0067a1340, 0x2085ac0, 0xc0067a1340, 0x1b35a00, ...)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/protobuf@v1.25.0/proto/encode.go:143 +0x49
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/protobuf/proto.MarshalOptions.MarshalAppend(0x1000001, 0x0, 0x0, 0x0, 0x202d7e0, 0xc0067a1340, 0x1b35a00, 0x205bc40, 0x0, 0x1b35a00, ...)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/protobuf@v1.25.0/proto/encode.go:125 +0x98
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: github.com/golang/protobuf/proto.marshalAppend(0x0, 0x0, 0x0, 0x205bc40, 0xc005c652e0, 0xc005c65100, 0xc005c899be, 0x1e69690, 0x206a680, 0xc0067e41e0, ...)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         github.com/golang/protobuf@v1.4.3/proto/wire.go:40 +0xc7
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: github.com/golang/protobuf/proto.Marshal(...)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         github.com/golang/protobuf@v1.4.3/proto/wire.go:23
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/grpc/encoding/proto.codec.Marshal(0x1b35a00, 0xc005c652e0, 0x2c769e0, 0xc0067c9720, 0x410e9f, 0xc003144000, 0x1a058e0)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/grpc@v1.35.0/encoding/proto/proto.go:39 +0x5f
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/grpc.encode(0x7f832e215558, 0x2c769e0, 0x1b35a00, 0xc005c652e0, 0x2c769e0, 0xc0067e41e0, 0x1b358c0, 0x2c769e0, 0xc0067c9720)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/grpc@v1.35.0/rpc_util.go:592 +0x52
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/grpc.(*Server).sendResponse(0xc000d59a40, 0x207cc00, 0xc002f0dc80, 0xc00614b600, 0x1b35a00, 0xc005c652e0, 0x0, 0x0, 0xc00675ba88, 0x0, ...)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/grpc@v1.35.0/server.go:1006 +0x86
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/grpc.(*Server).processUnaryRPC(0xc000d59a40, 0x207cc00, 0xc002f0dc80, 0xc00614b600, 0xc005163800, 0xc0048f7878, 0x0, 0x0, 0x0)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/grpc@v1.35.0/server.go:1252 +0x618
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/grpc.(*Server).handleStream(0xc000d59a40, 0x207cc00, 0xc002f0dc80, 0xc00614b600, 0x0)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/grpc@v1.35.0/server.go:1540 +0xd05
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc0053b0930, 0xc000d59a40, 0x207cc00, 0xc002f0dc80, 0xc00614b600)
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/grpc@v1.35.0/server.go:878 +0xa5
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]: created by google.golang.org/grpc.(*Server).serveStreams.func1
Jan 25 16:41:22 cosmos-t-bd-ln-tyo gaiad[1403487]:         google.golang.org/grpc@v1.35.0/server.go:876 +0x1fd

The log for cosmos.mint.v1beta1.QueryAnnualProvisions.

Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: panic: invalid Go type types.Dec for field cosmos.mint.v1beta1.QueryAnnualProvisionsResponse.annual_provisions
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: goroutine 1196 [running]:
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/protobuf/internal/impl.newSingularConverter(0x208b8e0, 0x1be6580, 0x208b7c0, 0xc005d2f500, 0xc001514c00, 0x203001)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/protobuf@v1.25.0/internal/impl/convert.go:143 +0xf17
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/protobuf/internal/impl.NewConverter(0x208b8e0, 0x1be6580, 0x208b7c0, 0xc005d2f500, 0x188b1c0, 0x203001)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/protobuf@v1.25.0/internal/impl/convert.go:60 +0xdc
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/protobuf/internal/impl.fieldInfoForScalar(0x208b7c0, 0xc005d2f500, 0x1aaaf23, 0x10, 0x0, 0x0, 0x208b8e0, 0x1be6580, 0x1aaaf35, 0x95, ...)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/protobuf@v1.25.0/internal/impl/message_reflect_field.go:234 +0x115
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/protobuf/internal/impl.(*MessageInfo).makeKnownFieldsFunc(0xc005fe6000, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xc005fdd3b0, 0xc005fdd3e0, 0xc005fdd410, 0xc005fdd440)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/protobuf@v1.25.0/internal/impl/message_reflect.go:67 +0x97d
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/protobuf/internal/impl.(*MessageInfo).makeReflectFuncs(0xc005fe6000, 0x208b8e0, 0x1a1daa0, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xc005fdd3b0, 0xc005fdd3e0, 0xc005fdd410, ...)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/protobuf@v1.25.0/internal/impl/message_reflect.go:36 +0x65
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/protobuf/internal/impl.(*MessageInfo).initOnce(0xc005fe6000)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/protobuf@v1.25.0/internal/impl/message.go:90 +0x192
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/protobuf/internal/impl.(*MessageInfo).init(...)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/protobuf@v1.25.0/internal/impl/message.go:72
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/protobuf/internal/impl.(*messageReflectWrapper).ProtoMethods(0xc005f8b090, 0xc001d3f828)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/protobuf@v1.25.0/internal/impl/message_reflect_gen.go:150 +0x53
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/protobuf/proto.protoMethods(...)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/protobuf@v1.25.0/proto/proto_methods.go:18
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/protobuf/proto.MarshalOptions.marshal(0xc005000001, 0x0, 0x0, 0x0, 0x2085ac0, 0xc005f8b090, 0xc005f8b090, 0x2085ac0, 0xc005f8b090, 0x1b35780, ...)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/protobuf@v1.25.0/proto/encode.go:143 +0x49
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/protobuf/proto.MarshalOptions.MarshalAppend(0x1000001, 0x0, 0x0, 0x0, 0x202d7e0, 0xc005f8b090, 0x1b35780, 0x205bb80, 0x0, 0x1b35780, ...)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/protobuf@v1.25.0/proto/encode.go:125 +0x98
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: github.com/golang/protobuf/proto.marshalAppend(0x0, 0x0, 0x0, 0x205bb80, 0xc005e18810, 0xc005e18700, 0xc001d3f9be, 0x1e69690, 0x206a680, 0xc005fcb8c0, ...)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         github.com/golang/protobuf@v1.4.3/proto/wire.go:40 +0xc7
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: github.com/golang/protobuf/proto.Marshal(...)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         github.com/golang/protobuf@v1.4.3/proto/wire.go:23
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/grpc/encoding/proto.codec.Marshal(0x1b35780, 0xc005e18810, 0x2c769e0, 0xc005fc6da0, 0x410e9f, 0xc001378000, 0x1a058e0)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/grpc@v1.35.0/encoding/proto/proto.go:39 +0x5f
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/grpc.encode(0x7f4378154b98, 0x2c769e0, 0x1b35780, 0xc005e18810, 0x2c769e0, 0xc005fcb8c0, 0x1b35640, 0x2c769e0, 0xc005fc6da0)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/grpc@v1.35.0/rpc_util.go:592 +0x52
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/grpc.(*Server).sendResponse(0xc001590c40, 0x207cc00, 0xc00145f500, 0xc005e13500, 0x1b35780, 0xc005e18810, 0x0, 0x0, 0xc005fc4a28, 0x0, ...)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/grpc@v1.35.0/server.go:1006 +0x86
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/grpc.(*Server).processUnaryRPC(0xc001590c40, 0x207cc00, 0xc00145f500, 0xc005e13500, 0xc005645a40, 0xc005642120, 0x0, 0x0, 0x0)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/grpc@v1.35.0/server.go:1252 +0x618
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/grpc.(*Server).handleStream(0xc001590c40, 0x207cc00, 0xc00145f500, 0xc005e13500, 0x0)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/grpc@v1.35.0/server.go:1540 +0xd05
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc004e4d000, 0xc001590c40, 0x207cc00, 0xc00145f500, 0xc005e13500)
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/grpc@v1.35.0/server.go:878 +0xa5
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]: created by google.golang.org/grpc.(*Server).serveStreams.func1
Jan 25 17:16:19 cosmos-t-bd-ln-tyo gaiad[1405068]:         google.golang.org/grpc@v1.35.0/server.go:876 +0x1fd

@kwunyeung
Copy link
Contributor

It got panic in cosmoshub-4.

INF ABCIQuery data= module=rpc path=/cosmos.mint.v1beta1.Query/AnnualProvisions result={"code":111222,"codespace":"undefined","height":"0","index":"0","info":"","key":null,"log":"panic message redacted to hide potentially sensitive system info: panic","proofOps":null,"value":null}

@kwunyeung
Copy link
Contributor

kwunyeung commented Feb 22, 2021

The /cosmos.mint.v1beta1.Query/ is now working in gaia v4.0.4. It was fixed there cosmos/gaia@a1a89e8 .

@amaury1093
Copy link
Contributor

The current patch is to add the replace google.golang.org/grpc => google.golang.org/grpc v1.33.2 line in your go.mod. See cosmos/gaia#649 for an example.

I also updated the docs in #8658. Once the docs are merged in, I consider this issue closed.

@carameleon
Copy link
Author

@AmauryM
Okay, I close this issue.

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

Successfully merging a pull request may close this issue.

3 participants