View Issue Details

IDProjectCategoryView StatusLast Update
0001489Spring engineLuapublic2009-07-04 13:02
ReporterSirMaverick Assigned ToKloot  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.79.1.0+git 
Fixed in Version0.79.1.0+git 
Summary0001489: reading FeatureDef crashes spring
DescriptionSpring 0.79.1.2 crashes with CA r5100 (test) and r4761 (stable). Does not crash with BA 6.95.

I just read FeatureDefs like in http://springrts.com/wiki/Lua_FeatureDefs
See the widget.
Additional Information0x083720e5 in ModelHeight (L=0xa890b28, data=0xa979f68) at rts/Lua/LuaFeatureDefs.cpp:337
337 case DRAWTYPE_MODEL: { height = LoadModel(fd)->height; break; }
TagsNo tags attached.
Attached Files
featuredef.lua (Attachment missing)
backtrace.txt (Attachment missing)
Checked infolog.txt for Errors

Activities

SirMaverick

2009-07-04 05:05

reporter   ~0003715

Added longer backtrace. Skipped repeating parts.

It happens also with Spring 0.79.1.1.

Kloot

2009-07-04 12:43

developer   ~0003717

The problem is that none of your chicken units have corpse definitions (empty DEAD tables). However, the inner pairs iteration triggers Spring to load the corpse model (unitname_dead) for certain properties. Since the chickens don't have any, the result is a crash.

Issue History

Date Modified Username Field Change
2009-07-04 05:03 SirMaverick New Issue
2009-07-04 05:03 SirMaverick File Added: featuredef.lua
2009-07-04 05:04 SirMaverick File Added: backtrace.txt
2009-07-04 05:05 SirMaverick Note Added: 0003715
2009-07-04 12:43 Kloot Note Added: 0003717
2009-07-04 13:02 Kloot Status new => resolved
2009-07-04 13:02 Kloot Fixed in Version => 0.79.1.0+git
2009-07-04 13:02 Kloot Resolution open => fixed
2009-07-04 13:02 Kloot Assigned To => Kloot