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

[BTC]: Crash happening sometimes when Btc wallets are loading. #73

Open
dmigwi opened this issue Jun 22, 2023 · 5 comments
Open

[BTC]: Crash happening sometimes when Btc wallets are loading. #73

dmigwi opened this issue Jun 22, 2023 · 5 comments
Labels

Comments

@dmigwi
Copy link
Owner

dmigwi commented Jun 22, 2023

Issue first identified here: https://code.cryptopower.dev/group/cryptopower/-/merge_requests/1147#note_9091

How to replicate this crash:

  • Immediately the wallets load and appear on the UI, Click randomly at one of the synced BTC wallet and this crash occurs.

I got this crash:

2022-11-28 16:10:45.808 [INF] BTC: Catching up block hashes to height 2408810, this might take a while
2022-11-28 16:10:45.809 [INF] BTC: Done catching up block hashes
2022-11-28 16:10:45.809 [INF] BTC: Finished rescan for 4843 addresses (synced to block 0000000000000010f7db3cade7e5c742d3ea514b715f6bfc449fd8b8885d7c4f, height 2408810)
panic: close of closed channel

goroutine 2820 [running]:
github.com/lightninglabs/neutrino.(*delayedCloser).closeNow.func1()
	/home/dmigwi/work/app/golang/pkg/mod/github.com/lightninglabs/[email protected]/query.go:1307 +0x25
sync.(*Once).doSlow(0x4cd097?, 0x3b9aca00?)
	/usr/local/go/src/sync/once.go:68 +0xc2
sync.(*Once).Do(...)
	/usr/local/go/src/sync/once.go:59
github.com/lightninglabs/neutrino.(*delayedCloser).closeNow(0xc008326960?)
	/home/dmigwi/work/app/golang/pkg/mod/github.com/lightninglabs/[email protected]/query.go:1306 +0x45
github.com/lightninglabs/neutrino.(*delayedCloser).closeEventually.func1()
	/home/dmigwi/work/app/golang/pkg/mod/github.com/lightninglabs/[email protected]/query.go:1300 +0xc9
created by github.com/lightninglabs/neutrino.(*delayedCloser).closeEventually
	/home/dmigwi/work/app/golang/pkg/mod/github.com/lightninglabs/[email protected]/query.go:1293 +0x72
exit status 2

(Issue originally authored by: @kennedy Izuegbu in gitlab.com)

@dmigwi dmigwi added the Blocked label Jun 22, 2023
@dmigwi
Copy link
Owner Author

dmigwi commented Jun 22, 2023

As described here, this seems to be an issue on the neutrino v0.14.2 where different peers are resolving into the same IP address:
lightninglabs/neutrino#258 (comment)

By Migwi Ndung'u on 2022-12-06T00:26:24 (imported from GitLab)

(Comment originally authored by: @kennedy Izuegbu in gitlab.com)

@dmigwi
Copy link
Owner Author

dmigwi commented Jun 22, 2023

This more of a malicious actor intentional causing this.

By Migwi Ndung'u on 2023-01-16T11:22:15 (imported from GitLab)

(Comment originally authored by: @kennedy Izuegbu in gitlab.com)

@dmigwi
Copy link
Owner Author

dmigwi commented Jun 22, 2023

could you elaborate?

By Kennedy Izuegbu on 2023-01-16T11:22:15 (imported from GitLab)

(Comment originally authored by: @kennedy Izuegbu in gitlab.com)

@dmigwi
Copy link
Owner Author

dmigwi commented Jun 22, 2023

assigned to @dmigwi

By Migwi Ndung'u on 2022-12-01T13:18:50 (imported from GitLab)

(Comment originally authored by: @kennedy Izuegbu in gitlab.com)

@dmigwi
Copy link
Owner Author

dmigwi commented Jun 22, 2023

unassigned @dmigwi

By Kennedy Izuegbu on 2023-01-16T11:21:57 (imported from GitLab)

(Comment originally authored by: @kennedy Izuegbu in gitlab.com)

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

No branches or pull requests

1 participant