2025-07-27 23:19 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003422Spring engineLuapublic2013-01-26 14:28
ReporterKingRaptor 
Assigned ToKloot 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0003422: (91.0.1) If a Spring.CreateUnit() call fails, all subsequent CreateUnit calls will fail with a recursion error
Descriptione.g.:
[f=0000505] Error: LuaRules::RunCallIn: error = 2, GameFrame, [string "LuaRules/Gadgets/unit_explosion_spawner.lua"]:86: [CreateUnit()]: recursion is not permitted
stack traceback:
    [C]: in function 'CreateUnit'
    [string "LuaRules/Gadgets/unit_explosion_spawner.lua"]:86: in function 'GameFrame'
    [string "LuaRules/gadgets.lua"]:961: in function <[string "LuaRules/gadgets.lua"]:959>
    (tail call): ?

Tested with 91.0.1-1216-g77e3dc3 release (OMP)
Steps To ReproduceStart ZK.
Attempt to use terraform (under the Special tab in the menu, if you can't find it). The action will fail due to invalid args to CreateUnit().
Attempt to terraform again. The recursion error will occur.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0009661

KingRaptor (reporter)

On that note, could someone please document the new args to Spring.CreateUnit() on the wiki?
+Notes

-Issue History
Date Modified Username Field Change
2013-01-26 14:08 KingRaptor New Issue
2013-01-26 14:08 KingRaptor Note Added: 0009661
2013-01-26 14:28 Kloot Changeset attached => spring release f1e40ead
2013-01-26 14:28 Kloot Assigned To => Kloot
2013-01-26 14:28 Kloot Status new => resolved
2013-01-26 14:28 Kloot Resolution open => fixed
+Issue History