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 when get torrent stats #972

Closed
monkeyWie opened this issue Sep 9, 2024 · 3 comments
Closed

Panic when get torrent stats #972

monkeyWie opened this issue Sep 9, 2024 · 3 comments

Comments

@monkeyWie
Copy link
Contributor

When I call the torrent.Stats() method, there is a certain probability of panic:

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x18 pc=0x7ffce875243d]

goroutine 2546 [running]:
github.com/anacrolix/torrent.webrtcNetConn.RemoteAddr({{0x7ffce8da1f40, 0xc0000290c0}, {{0xc0019f1600, 0x1f}, 0x0, {0xaf, 0x30, 0x26, 0x3c, 0x30, ...}, ...}})
	C:/Users/runneradmin/go/pkg/mod/github.com/anacrolix/[email protected]/webrtc.go:56 +0x1d
github.com/anacrolix/torrent.(*Torrent).numTotalPeers(0xc000174a88)
	C:/Users/runneradmin/go/pkg/mod/github.com/anacrolix/[email protected]/torrent.go:2204 +0x95
github.com/anacrolix/torrent.(*Torrent).statsLocked(0xc000174a88)
	C:/Users/runneradmin/go/pkg/mod/github.com/anacrolix/[email protected]/torrent.go:2188 +0xb4
github.com/anacrolix/torrent.(*Torrent).Stats(0xc000174a88)
	C:/Users/runneradmin/go/pkg/mod/github.com/anacrolix/[email protected]/torrent.go:2181 +0xba
@anacrolix
Copy link
Owner

@monkeyWie
Copy link
Contributor Author

I can't reproduce this problem stably, can you release a new version for this? if it happens again, we can reopen it. Thanks!

@anacrolix
Copy link
Owner

Yes I have release v1.57.0.

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

2 participants