[0.11.16] unnecessary 10 second hang when dropping players

This subforum contains all the issues which we already resolved.
Post Reply
thuejk
Fast Inserter
Fast Inserter
Posts: 113
Joined: Fri Feb 13, 2015 8:41 pm
Contact:

[0.11.16] unnecessary 10 second hang when dropping players

Post by thuejk »

While hosting a multiplayer game with a friend, his game kept crashing. This bug report is not about those crashes, but about the 10 second delay after my friend has pressed quit on the crash screen, and until he is dropped and the game continues.

Whenever he crashed, my client would very quickly say "player XXX" dropped ingame, but it would then still hang for ~10 seconds after my friend presses "quit", while the bash command line output
12949.753379 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414026) from peer(11). Drop detection state(100/900).
12949.753430 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414027) from peer(11). Drop detection state(100/900).
12949.753442 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414028) from peer(11). Drop detection state(100/900).
12950.820922 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414026) from peer(11). Drop detection state(200/900).
12950.820961 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414027) from peer(11). Drop detection state(200/900).
12950.820984 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414028) from peer(11). Drop detection state(200/900).
12951.938477 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414026) from peer(11). Drop detection state(300/900).
12951.938516 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414027) from peer(11). Drop detection state(300/900).
12951.938529 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414028) from peer(11). Drop detection state(300/900).
12953.022737 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414026) from peer(11). Drop detection state(400/900).
12953.022774 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414027) from peer(11). Drop detection state(400/900).
12953.022806 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414028) from peer(11). Drop detection state(400/900).
12954.090383 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414026) from peer(11). Drop detection state(500/900).
12954.090429 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414027) from peer(11). Drop detection state(500/900).
12954.090442 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414028) from peer(11). Drop detection state(500/900).
12955.174740 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414026) from peer(11). Drop detection state(600/900).
12955.174777 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414027) from peer(11). Drop detection state(600/900).
12955.174788 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414028) from peer(11). Drop detection state(600/900).
12956.225585 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414026) from peer(11). Drop detection state(700/900).
12956.225709 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414027) from peer(11). Drop detection state(700/900).
12956.225733 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414028) from peer(11). Drop detection state(700/900).
12957.309738 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414026) from peer(11). Drop detection state(800/900).
12957.309775 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414027) from peer(11). Drop detection state(800/900).
12957.309786 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414028) from peer(11). Drop detection state(800/900).
12958.444059 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414026) from peer(11). Drop detection state(900/900).
12958.444098 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414027) from peer(11). Drop detection state(900/900).
12958.444113 Info Synchronizer.cpp:456: NetworkTick(414030) Requesting heartbeat for networkTick(414028) from peer(11). Drop detection state(900/900).
12958.460887 Info Synchronizer.cpp:566: NetworkTick(414030) peer(11) peerHeartbeatsEmpty(true) is not responding, dropping.
So even though one part of the game knows that he has been dropped (because my client said so), the game still hangs while timing out the heartbeat. This seems silly. In 0.11.14 the drop on crash didn't have this problem.

MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

Re: [0.11.16] unnecessary 10 second hang when dropping players

Post by MF- »

Could it be wrong error text?
What if the real message was "Player connection lost"?

In that case it would be nice if the game waited a couple of seconds
whether the player manages to regain connection or not.

User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: [0.11.16] unnecessary 10 second hang when dropping players

Post by cube »

Hi, this should be fixed in 0.17.0 by the slpwnd's refactorings of the multiplayer code. Additionally there is now a progress bar while the game is waiting to drop someone who is not responding.

thuejk
Fast Inserter
Fast Inserter
Posts: 113
Joined: Fri Feb 13, 2015 8:41 pm
Contact:

Re: [0.11.16] unnecessary 10 second hang when dropping players

Post by thuejk »

Thanks!

Post Reply

Return to “Resolved Problems and Bugs”