View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003292 | Spring engine | General | public | 2012-09-29 22:43 | 2012-09-30 12:40 |
| Reporter | SirMaverick | Assigned To | Kloot | ||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 91.0 | ||||
| Fixed in Version | 91.0.1+git | ||||
| Summary | 0003292: Segmentation fault at game start | ||||
| Description | Huge ZK game crashed after count down. | ||||
| Steps To Reproduce | Run demo. | ||||
| Additional Information | [f=0000000] GameID: e24f6750bb9d67661b515f2497174d8b [f=0000000] Disabled LuaRules: Duplicate CMD_ID code: 31801 [f=0000000] Error: Segmentation fault (SIGSEGV) in spring 91.0 (OMP) [f=0000000] Error: Stacktrace: [f=0000000] Error: <0> [0xb7755400] [f=0000000] Error: <1> /home/spring/spring/spring/spring-git/rts/lib/lua/src/lapi.cpp:161 [f=0000000] Error: <2> /home/spring/spring/spring/spring-git/rts/Lua/LuaHandle.cpp:231 [f=0000000] Error: <3> /home/spring/spring/spring/spring-git/rts/Game/Game.cpp:1052 [f=0000000] Error: <4> /home/spring/spring/spring/spring-git/rts/Game/Game.cpp:1096 [f=0000000] Error: <5> /home/spring/spring/spring/spring-git/rts/System/SpringApp.cpp:941 [f=0000000] Error: <6> /home/spring/spring/spring/spring-git/rts/System/SpringApp.cpp:1018 [f=0000000] Error: <7> /home/spring/spring/spring/spring-git/rts/System/Main.cpp:51 [f=0000000] Error: <8> /home/spring/spring/spring/spring-git/rts/System/Main.cpp:65 [f=0000000] Error: <9> /home/spring/spring/spring/spring-git/rts/System/Main.cpp:93 | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Checked infolog.txt for Errors | |||||
|
|
Also: http://pastebin.com/rA2zaD0H http://pastebin.com/zjsfEJ8t |
|
|
didn't look too deeply yet and don't know if I want to, but it has to do with the fact that UnitMorph registers command ID's 31800 and 31801 (along with a whole lot of others), and then TransportAIbuttons gets loaded and wants to register 31800 and 31801 again because they also represent CMD_EMBARK / CMD_DISEMBARK --> Script.Kill is called --> the LuaRules state somehow becomes FUBAR |
|
|
Thank you for examining it. So there is clearly bug in ZK that causes the command IDs of CMD_MORPH and CMD_EMBARK to overlap. The crash was happening every time we made a game with >20 people. It seems quite logical now: ZK generates 30 morph pairs for every player (6 comm types each with 5 morph levels) so for 20 players you get 600 command IDs used by morph gadget and this is enough for the IDs to start overlapping with CMD_EMBARK id. But engine probably shouldn't crash because of this so there is a bug too. |
|
|
fixed for 92.0 in the mean time, avoid calling Script.Kill |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2012-09-29 22:43 | SirMaverick | New Issue | |
| 2012-09-29 22:43 | SirMaverick | File Added: 20120929_214404_SandCastles2_91.sdf | |
| 2012-09-29 22:43 | SirMaverick | File Added: infolog.txt | |
| 2012-09-29 23:09 | Rafal99 | Note Added: 0009233 | |
| 2012-09-30 00:03 | Kloot | Note Added: 0009234 | |
| 2012-09-30 00:03 | Kloot | Note Edited: 0009234 | |
| 2012-09-30 03:19 | Rafal99 | Note Added: 0009235 | |
| 2012-09-30 12:07 | Kloot | Assigned To | => Kloot |
| 2012-09-30 12:07 | Kloot | Status | new => assigned |
| 2012-09-30 12:40 | Kloot | Note Added: 0009236 | |
| 2012-09-30 12:40 | Kloot | Status | assigned => resolved |
| 2012-09-30 12:40 | Kloot | Fixed in Version | => 91.0.1+git |
| 2012-09-30 12:40 | Kloot | Resolution | open => fixed |