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

get SectorsStatus failed when invoke SectorsStatus on inactive sectors #3984

Closed
eazlong opened this issue Sep 24, 2020 · 1 comment · Fixed by #4026
Closed

get SectorsStatus failed when invoke SectorsStatus on inactive sectors #3984

eazlong opened this issue Sep 24, 2020 · 1 comment · Fixed by #4026
Labels
kind/bug Kind: Bug

Comments

@eazlong
Copy link

eazlong commented Sep 24, 2020

Describe the bug
When invoke StorageMiner.SectorsStatus with showOnChainInfo(true) on inactive sectors, I got:

fatal error calling 'Filecoin.SectorsStatus': panic in rpc method 'Filecoin.SectorsStatus': runtime error: invalid memory address or nil pointer dereference

Version (run lotus version):
v0.7.2

@jennijuju jennijuju added the kind/bug Kind: Bug label Sep 25, 2020
@jennijuju
Copy link
Member

Another one

github.com/filecoin-project/go-jsonrpc.doCall.func1
	/home/stander/go/pkg/mod/github.com/filecoin-project/[email protected]/handler.go:126
runtime.gopanic
	/usr/local/go/src/runtime/panic.go:969
runtime.panicmem
	/usr/local/go/src/runtime/panic.go:212
runtime.sigpanic
	/usr/local/go/src/runtime/signal_unix.go:695
github.com/filecoin-project/lotus/node/impl.(*StorageMinerAPI).SectorsStatus
	/home/stander/lotus7/lotus/node/impl/storminer.go:196
reflect.Value.call
	/usr/local/go/src/reflect/value.go:460
reflect.Value.Call
	/usr/local/go/src/reflect/value.go:321
github.com/filecoin-project/go-jsonrpc/auth.PermissionedProxy.func1
	/home/stander/go/pkg/mod/github.com/filecoin-project/[email protected]/auth/auth.go:62
reflect.callReflect
	/usr/local/go/src/reflect/value.go:549
reflect.makeFuncStub
	/usr/local/go/src/reflect/asm_amd64.s:20
github.com/filecoin-project/lotus/api/apistruct.(*StorageMinerStruct).SectorsStatus
	/home/stander/lotus7/lotus/api/apistruct/struct.go:1038
reflect.Value.call
	/usr/local/go/src/reflect/value.go:460
reflect.Value.Call
	/usr/local/go/src/reflect/value.go:321
github.com/filecoin-project/go-jsonrpc.doCall
	/home/stander/go/pkg/mod/github.com/filecoin-project/[email protected]/handler.go:130
github.com/filecoin-project/go-jsonrpc.(*RPCServer).handle
	/home/stander/go/pkg/mod/github.com/filecoin-project/[email protected]/handler.go:221
github.com/filecoin-project/go-jsonrpc.(*RPCServer).handleReader
	/home/stander/go/pkg/mod/github.com/filecoin-project/[email protected]/handler.go:119
github.com/filecoin-project/go-jsonrpc.(*RPCServer).ServeHTTP
	/home/stander/go/pkg/mod/github.com/filecoin-project/[email protected]/server.go:83
github.com/gorilla/mux.(*Router).ServeHTTP
	/home/stander/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:210
github.com/filecoin-project/go-jsonrpc/auth.(*Handler).ServeHTTP
	/home/stander/go/pkg/mod/github.com/filecoin-project/[email protected]/auth/handler.go:47
net/http.serverHandler.ServeHTTP
	/usr/local/go/src/net/http/server.go:2836
net/http.(*conn).serve
	/usr/local/go/src/net/http/server.go:1924
2020-09-24T14:40:25.665+0300	ERROR	rpc	[email protected]/server.go:87	RPC Error: fatal error calling 'Filecoin.SectorsStatus': panic in rpc method 'Filecoin.SectorsStatus': runtime error: invalid memory address or nil pointer dereference
2020-09-24T14:40:25.665+0300	WARN	rpc	[email protected]/server.go:93	rpc error: fatal error calling 'Filecoin.SectorsStatus': panic in rpc method 'Filecoin.SectorsStatus': runtime error: invalid memory address or nil pointer dereference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Kind: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants