View Issue Details

IDProjectCategoryView StatusLast Update
0004332Spring engineGeneralpublic2014-03-16 19:39
ReporterAnarchid Assigned Toabma  
PrioritynormalSeveritymajorReproducibilitysometimes
Status closedResolutionnot fixable 
Product Version96.0 
Summary0004332: zk hangs on exit in multiplayer games
DescriptionSometimes after the game has concluded and i tell the spring to close itself (via epic menu), it hangs for uncounted time and doesn't respond to anything short of kill dash nine.

Steps To Reproduce1) Start a multiplayer game (with 96.0 x64 linux client via primusrun)
- Playing a botgame with Springie doesn't trigger the bug.
- The probability of failure seems to increase with amount of players.
- Type of host doesn't matter (both SPADS and Springie seemed to do this)

2) Play game until end.

3) Issue occurs in approximately 50% cases in 2v2 games, and in approximately 20% 1v1.
Additional InformationThis error seems to have ~ 100% correlation with Springie failure to save issue (see http://code.google.com/p/zero-k/issues/detail?id=1838#c4).

*None* of my test subjects with whom i played the test games did not experienced the bug. It seems it's mostly reproducible for me (running static, buildbot-provided spring 96.0 on linux x64 via primusrun) and for Springie (running 96.0 spring-dedicated on a windows environment)

I have obtained a gdb "bt full" output with debug symbols extracted next to spring binary, while experiencing this bug after an Evo game. See http://paste.springfiles.com/view/0cbd830e. I don't know if this is useful: if not, i will require additional instructions how to produce an useful trace.

The Evo game in question was hosted on a Spads autohost. This is not purely a Springie issue, but in this question Spads host didn't seem to hang itself (while my client did!)

It seems that this causes Springie to hang itself too (on windows environment) due to high correlation with failure-to-save bug (see above) and similar symptoms (see attached file in the zk issue).

Naive assumption is that this is not platform-dependant but is network-related and might be somehow config-dependant?
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

abma

2014-03-16 18:29

administrator   ~0012943

Last edited: 2014-03-16 18:34

translated the second part of the bt:
http://paste.springfiles.com/view/c7721f23

first part seems to be the same.

abma

2014-03-16 18:33

administrator   ~0012944

infolog.txt with LogFlush = 1 please

abma

2014-03-16 18:40

administrator   ~0012945

https://github.com/spring/spring/blob/96.0/rts/Lua/LuaHandle.cpp#L138
https://github.com/spring/spring/blob/96.0/rts/Lua/LuaUI.cpp#L248
https://github.com/spring/spring/blob/96.0/rts/Lua/LuaUI.cpp#L112
https://github.com/spring/spring/blob/96.0/rts/Game/UI/GuiHandler.cpp#L118
https://github.com/spring/spring/blob/96.0/rts/Game/UI/GuiHandler.cpp#L125
https://github.com/spring/spring/blob/96.0/rts/System/Util.h#L174
https://github.com/spring/spring/blob/96.0/rts/Game/Game.cpp#L523
https://github.com/spring/spring/blob/96.0/rts/System/SpringApp.cpp#L1072
https://github.com/spring/spring/blob/96.0/rts/System/SpringApp.cpp#L1041
https://github.com/spring/spring/blob/96.0/rts/System/Main.cpp#L65
https://github.com/spring/spring/blob/96.0/rts/System/Main.cpp#L126

abma

2014-03-16 18:44

administrator   ~0012946

Last edited: 2014-03-16 19:10

[18:43:42] <[LCC]jK> that hang has 0% todo with springie failing to save replay
[18:43:52] <[LCC]jK> cause it happens in LUA
[18:44:08] <[LCC]jK> and dedi doesn't execute such at all!
[18:44:35] <[LCC]jK> also it indicates that there is a lua bug in zk
[18:45:19] <[LCC]jK> -> check all :Shutdown for crap code

Issue History

Date Modified Username Field Change
2014-03-16 15:08 Anarchid New Issue
2014-03-16 18:29 abma Note Added: 0012943
2014-03-16 18:33 abma Note Added: 0012944
2014-03-16 18:34 abma Note Edited: 0012943
2014-03-16 18:40 abma Note Added: 0012945
2014-03-16 18:44 abma Note Added: 0012946
2014-03-16 19:10 abma Note Edited: 0012946
2014-03-16 19:11 abma Summary Spring hangs on exit in multiplayer games => zk hangs on exit in multiplayer games
2014-03-16 19:11 abma Additional Information Updated
2014-03-16 19:39 abma Status new => closed
2014-03-16 19:39 abma Assigned To => abma
2014-03-16 19:39 abma Resolution open => not fixable