View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001489 | Spring engine | Lua | public | 2009-07-04 05:03 | 2009-07-04 13:02 |
| Reporter | SirMaverick | Assigned To | Kloot | ||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 0.79.1.0+git | ||||
| Fixed in Version | 0.79.1.0+git | ||||
| Summary | 0001489: reading FeatureDef crashes spring | ||||
| Description | Spring 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 Information | 0x083720e5 in ModelHeight (L=0xa890b28, data=0xa979f68) at rts/Lua/LuaFeatureDefs.cpp:337 337 case DRAWTYPE_MODEL: { height = LoadModel(fd)->height; break; } | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Checked infolog.txt for Errors | |||||
|
|
Added longer backtrace. Skipped repeating parts. It happens also with Spring 0.79.1.1. |
|
|
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. |
| 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 |