View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0002778 | Spring engine | Lua | public | 2011-11-26 13:44 | 2011-11-27 23:39 | ||||
Reporter | KingRaptor | ||||||||
Assigned To | zerver | ||||||||
Priority | normal | Severity | crash | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 84.0 | ||||||||
Target Version | Fixed in Version | 84.0.1 | |||||||
Summary | 0002778: (MT) Creating unit in gadget:Initialize() = "Unsafe attempt to change game state" -> LuaRules crash | ||||||||
Description | The PlanetWars gadget in Zero-K v0.9 creates units in gadget:Initialize(). This results in minor issues in ST (see issue 2769), but in MT it produces the following error: [f=0000000] Error: Lua LoadCode pcall error = 0, LuaRules/main.lua, error = 2, LuaRules/gadgets.lua, [string "LuaRules/Gadgets/unit_planetwars.lua"]:99: Unsafe attempt to change game state Needless to say this results in the game becoming completely non-functional. | ||||||||
Steps To Reproduce | Join any PlanetWars host for ZK v0.9 and start with Spring MT. | ||||||||
Additional Information | Gadget code: http://code.google.com/p/zero-k/source/browse/trunk/mods/zk/LuaRules/Gadgets/unit_planetwars.lua?r=3931 Also note the 585 line stacktrace upon hang detection in the attached infolog, but that's another issue | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
Notes | |
KingRaptor (reporter) 2011-11-26 16:11 |
It appears I forgot to upload the infolog, so I grabbed a fresh one. (Unfortunately the longest stacktrace in this one is only 80 lines) PlanetWars has moved on to Zero-K v0.9.0.1 which works around this issue, but it should be reproducible with the script attached to issue 2769. |
zerver (reporter) 2011-11-27 23:39 |
https://github.com/spring/spring/commit/d4e78b8c437ad66f1f3d03e9da6e1b1362822fae |
Issue History | |||
Date Modified | Username | Field | Change |
---|---|---|---|
2011-11-26 13:44 | KingRaptor | New Issue | |
2011-11-26 16:11 | KingRaptor | Note Added: 0007714 | |
2011-11-27 01:53 | zerver | Status | new => assigned |
2011-11-27 01:53 | zerver | Assigned To | => zerver |
2011-11-27 23:39 | zerver | Note Added: 0007736 | |
2011-11-27 23:39 | zerver | Status | assigned => resolved |
2011-11-27 23:39 | zerver | Fixed in Version | => 84.0.1 |
2011-11-27 23:39 | zerver | Resolution | open => fixed |