openvcash / vcash

A decentralized currency for the internet.
https://vcash.info
GNU Affero General Public License v3.0
36 stars 35 forks source link

Node crash with 'Assertion address_info_map._count(nid2) == 1' failed #27

Open whphhg opened 7 years ago

whphhg commented 7 years ago

After running the node compiled using debug rather than release, it crashed a couple of times with the message below (I've replaced the IP with 0.0.0.0).

[DEBUG] - handle_message: TCP connection getblocks stopping at 747802 000000000006a41eb299.
[DEBUG] - send_ping_message: TCP connection is sending ping, nonce = 133175916.
[DEBUG] - handle_message: TCP connection got pong, nonce = 856285506.
[DEBUG] - handle_message: TCP transport got 1 addresses.
[DEBUG] - handle_message: TCP connection got addr.address = 0.0.0.0, addr.port = 42532, is_local = 0, timestamp = 0 mins.
[DEBUG] - add: Address manager added 83.134.46.31:42532, timestamp = 0.0227778.
[DEBUG] - handle_message: TCP transport got 1 addresses.
[DEBUG] - handle_message: TCP connection got addr.address = 0.0.0.0, addr.port = 42532, is_local = 0, timestamp = 0 mins.
[DEBUG] - handle_message: TCP transport got 1 addresses.
[DEBUG] - handle_message: TCP connection got addr.address = 0.0.0.0, addr.port = 42532, is_local = 0, timestamp = 0 mins.
[DEBUG] - handle_message: TCP transport got 1 addresses.
[DEBUG] - handle_message: TCP connection got addr.address = 0.0.0.0, addr.port = 42532, is_local = 0, timestamp = 0 mins.
[DEBUG] - handle_message: TCP transport got 1 addresses.
[DEBUG] - handle_message: TCP connection got addr.address = 0.0.0.0, addr.port = 42532, is_local = 0, timestamp = 0 mins.
vcashd-debug: ../src/address_manager.cpp:1541 void coin::address_manager::swap_random(const uint32_t&, const uint32_t&): Assertion `address_info_map_.count(nid2) == 1 failed.
Aborted (core dumped)
bobfeldbauer commented 6 years ago

I've had the same issue on a regular node which is not staking and is not an incentive node. Replaced address in log with 'x.x.x.x':

[DEBUG] - handle_message: TCP transport got 1 addresses. [DEBUG] - handle_message: TCP connection got addr.address = x.x.x.x, addr.port = 54368, is_local = 0, timestamp = 0 mins. vcashd: ../src/address_manager.cpp:1541: void coin::address_manager::swap_random(const uint32_t&, const uint32_t&): Assertion `address_infomap.count(nid2) == 1' failed.