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

Error: unhandled exception: len(s) == length the length of the HashSet changed while iterating over it [AssertionDefect] #1480

Closed
shyba opened this issue Feb 23, 2023 · 3 comments
Labels
bug Something isn't working Sync Prevents or affects sync with Ethereum network

Comments

@shyba
Copy link

shyba commented Feb 23, 2023

Hi,

I was following the README to play on a server when this happened. I'm unsure if it is worth reporting as it is experimental, but feel free to close it.
Server is a proxmox/lxc container with debian 11. Just followed the instructions line by line strictly except for default port as there is another node running there.

$ ./build/nimbus --tcp-port=30304                                                                                                                                                            
INF 2023-02-23 22:57:30.434+00:00 UPnP: added port mapping                   topics="eth net nat" tid=59967 file=nat.nim:173 externalPort=30304 internalPort=30304 protocol=TCP                                    
ERR 2023-02-23 22:57:30.440+00:00 UPnP port mapping                          topics="eth net nat" tid=59967 file=nat.nim:164 msg=ConflictInMappingEntry port=30304                                                 
INF 2023-02-23 22:57:30.441+00:00 RLPx listener up                           topics="eth p2p" tid=59967 file=p2p.nim:145 self=enode:https://<REDACTED>:30304                                  
INF 2023-02-23 22:57:30.441+00:00 Fast Sync: start sync from                 topics="legacy-sync" tid=59967 file=legacy.nim:959 number=0 hash=D4E56740F876AEF8C010B86A40D5F56745A118D0906A34E69AEC8C0DB1CB8FA3     
ERR 2023-02-23 22:59:53.408+00:00 not able to get pooled transactions        tid=59967 file=eth.nim:265
ERR 2023-02-23 23:00:23.556+00:00 not able to get pooled transactions        tid=59967 file=eth.nim:265
ERR 2023-02-23 23:01:20.902+00:00 not able to get pooled transactions        tid=59967 file=eth.nim:265

(that repeats a lot until)

ERR 2023-02-23 23:02:59.210+00:00 not able to get pooled transactions        tid=59967 file=eth.nim:265
/home/user/nimbus-eth1/nimbus/nimbus.nim(490) nimbus
/home/user/nimbus-eth1/nimbus/nimbus.nim(463) process
/home/user/nimbus-eth1/vendor/nim-chronos/chronos/asyncloop.nim(295) poll
/home/user/nimbus-eth1/vendor/nim-chronos/chronos/asyncfutures2.nim(369) futureContinue
/home/user/nimbus-eth1/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/sets.nim(266) startSyncWithPeerImpl
/home/user/nimbus-eth1/vendor/nimbus-build-system/vendor/Nim/lib/system/assertions.nim(38) failedAssertImpl
/home/user/nimbus-eth1/vendor/nimbus-build-system/vendor/Nim/lib/system/assertions.nim(28) raiseAssert
/home/user/nimbus-eth1/vendor/nimbus-build-system/vendor/Nim/lib/system/fatal.nim(54) sysFatal
[[reraised from:
/home/user/nimbus-eth1/nimbus/nimbus.nim(490) nimbus
/home/user/nimbus-eth1/nimbus/nimbus.nim(463) process
/home/user/nimbus-eth1/vendor/nim-chronos/chronos/asyncloop.nim(295) poll
/home/user/nimbus-eth1/vendor/nim-chronos/chronos/asyncfutures2.nim(391) futureContinue
]]
Error: unhandled exception: /home/user/nimbus-eth1/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/sets.nim(266, 13) `len(s) == length` the length of the HashSet changed while iterating over it [AssertionDefect]
@jangko jangko added bug Something isn't working Sync Prevents or affects sync with Ethereum network labels Feb 24, 2023
@ahmadina
Copy link

same issue, any help?

@jangko
Copy link
Contributor

jangko commented Jul 25, 2023

perhaps you can try --sync-mode:full, the default legacy sync mode is known to have many issues

@tersec
Copy link
Contributor

tersec commented May 30, 2024

Legacy sync has been removed: #2237

@tersec tersec closed this as completed May 30, 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 Sync Prevents or affects sync with Ethereum network
Projects
None yet
Development

No branches or pull requests

4 participants