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

sync fails early #17

Open
liamzebedee opened this issue Jul 25, 2024 · 1 comment
Open

sync fails early #17

liamzebedee opened this issue Jul 25, 2024 · 1 comment
Labels
bug Something isn't working testnet-1

Comments

@liamzebedee
Copy link
Collaborator

2024/07/25 14:57:41 [sync] (downloader) Peer summary table
2024/07/25 14:57:41 [sync] (downloader) Peer #0: jobs=9 success=9 failed=0 avg_duration=318.78 ms rate_per_s=3.14
panic: sync: WaitGroup is reused before previous Wait has returned

goroutine 1747 [running]:
sync.(*WaitGroup).Wait(0x1400036c240)
	/nix/store/n1k6wf8q10q7k0863gb78b1rf0j07r7r-go-1.22.1/share/go/src/sync/waitgroup.go:118 +0xac
github.com/liamzebedee/tinychain-go/core/nakamoto.(*DownloadEngine).Start.func4()
	/Users/liamz/tinychain-go/core/nakamoto/sync_downloader.go:190 +0x28
created by github.com/liamzebedee/tinychain-go/core/nakamoto.(*DownloadEngine).Start in goroutine 1727
	/Users/liamz/tinychain-go/core/nakamoto/sync_downloader.go:189 +0x5b0
@liamzebedee liamzebedee added bug Something isn't working testnet-1 labels Jul 25, 2024
@liamzebedee
Copy link
Collaborator Author

And another one

2024/07/29 22:03:49 [sync] (downloader) error: not enough workers to fill jobs
2024/07/29 22:03:49 [sync] (downloader) Peer summary table
2024/07/29 22:03:49 [sync] (downloader) Peer #0: jobs=1 success=0 failed=1 avg_duration=1.00 ms rate_per_s=0.00
2024/07/29 22:03:49 [node] (sync) Failed to download bodies: Error downloading: not enough workers to fill jobs
2024/07/29 22:03:49 [node] (sync) synchronisation done
2024/07/29 22:03:49 [node] (sync) Total headers downloaded: 0
2024/07/29 22:03:49 [node] Sync complete downloaded=0
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x18 pc=0x100cfa5dc]

goroutine 1000 [running]:
github.com/liamzebedee/tinychain-go/core/nakamoto.(*DownloadEngine).Start.func1.1()
	/Users/liamz/Documents/Projects/tinychain-go/core/nakamoto/sync_downloader.go:123 +0x22c
created by github.com/liamzebedee/tinychain-go/core/nakamoto.(*DownloadEngine).Start.func1 in goroutine 995
	/Users/liamz/Documents/Projects/tinychain-go/core/nakamoto/sync_downloader.go:111 +0x188
(base) ➜  build git:(explorer) ./tinychain-darwin-arm64 node --port 8080 --db node1.db

@liamzebedee liamzebedee changed the title sync fails sync fails early Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working testnet-1
Projects
None yet
Development

No branches or pull requests

1 participant