2024-05-16 22:29 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002778Spring engineLuapublic2011-11-27 23:39
ReporterKingRaptor 
Assigned Tozerver 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Product Version84.0 
Target VersionFixed in Version84.0.1 
Summary0002778: (MT) Creating unit in gadget:Initialize() = "Unsafe attempt to change game state" -> LuaRules crash
DescriptionThe 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 ReproduceJoin any PlanetWars host for ZK v0.9 and start with Spring MT.
Additional InformationGadget 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
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0007714

KingRaptor (reporter)

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.

~0007736

zerver (reporter)

https://github.com/spring/spring/commit/d4e78b8c437ad66f1f3d03e9da6e1b1362822fae
+Notes

-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
+Issue History