View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0000624 | Spring engine | General | public | 2007-09-04 10:27 | 2007-09-05 04:38 | ||||
Reporter | Maelstrom | ||||||||
Assigned To | trepan | ||||||||
Priority | normal | Severity | crash | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000624: Spring crashes when using SetUnitHealth(unit.ID, {build = 1.0}) on a unit under construction in Lua | ||||||||
Description | Spring crashes out when performing SetUnitHealth(unit.ID, {build = 1.0}) on a unit that is under construction. This happens with all values >= 1, but values < 1 work properly. | ||||||||
Steps To Reproduce | Run the Lua Gadget attached, and build a unit from a factory. Commenting out the line with SetUnitHealth() causes the gadget to run perfectly fine. Leaving it in causes a crash. (My Lua isnt perfect, but that isnt whats causing the crash, so dont mock it to much :P ) | ||||||||
Additional Information | infolog.txt: Using script Cmds 1000 res Map: RollingHills.smf Mod: "SWTA 1.50" from sws.v006.sdd Created server on port 8452 Local client connected using number 0 Mod uses default reclaim rules Mod uses default transportability rules Opening map file Loading Map Loading detail textures Creating overhead texture Creating ground shading Loading tile file Reading tiles Reading tile map Creating projectile texture Number of damage types: 7 Loading units and weapons Initializing map features Generating trees Parsing unit icons Creating unit textures Unknown feature type armjeth_dead Unknown feature type armckfus_dead Reading estimate path costs Creating sky LUARULES-MAIN (GADGETS) LUARULES-DRAW (GADGETS) Spring 0.75b2+svn4220 Reloaded ctrlpanel with: LuaUI/ctrlpanel.txt LuaUI: bound F11 to the widget selector LuaUI: bound CTRL+F11 to tweak mode LuaUI v0.2 Player Maelstrom joined as 0 Adding new unit to newUnits[]: Garrison Base Adding new unit to newUnits[]: M-C-V Processing element... unitID: 1 build: 1 already built Processing element... unitID: 1 build: 1 already built Adding new unit to newUnits[]: Royal Guard Processing element... unitID: 3 build: 1 already built Adding new unit to newUnits[]: Royal Guard Processing element... unitID: 4 build: 1 already built Adding new unit to newUnits[]: Stormtrooper Processing element... unitID: 5 build: 0.0062500000931323 can build! Spring 0.75b2+svn4220 has crashed. Exception: Access violation (0xc0000005) Exception Address: 0x00898b03 DLL information: 0x00400000 spring 0x77f80000 ntdll 0x7c2d0000 ADVAPI32 0x7c570000 KERNEL32 0x77d30000 RPCRT4 0x51080000 dsound 0x78000000 msvcrt 0x77e10000 USER32 0x77f40000 GDI32 0x7ce20000 ole32 0x77570000 WINMM 0x77820000 VERSION 0x759b0000 LZ32 0x6fac0000 GLU32 0x69510000 OPENGL32 0x51000000 DDRAW 0x728a0000 DCIMAN32 0x77920000 IMAGEHLP 0x75050000 WSOCK32 0x75030000 WS2_32 0x75020000 WS2HELP 0x10000000 SDL 0x7c340000 MSVCR71 0x00d00000 DevIL 0x66fc0000 freetype6 0x61b80000 zlib1 0x00e90000 glew32 0x00ec0000 ILU 0x01410000 MsgPlusLoader 0x01e50000 LgWndHk 0x01e60000 xfire_toucan_27712 0x70a70000 SHLWAPI 0x74870000 AVIFIL32 0x77410000 MSACM32 0x6a8f0000 MSVFW32 0x7cf30000 SHELL32 0x71710000 COMCTL32 0x6b2c0000 MSIMG32 0x02420000 LgMsgHk 0x75ff0000 MSVCP60 0x02430000 nvoglnt 0x74fd0000 msafd 0x75010000 wshtcpip 0x77560000 wdmaud 0x77400000 msacm32 0x5ef80000 KsUser 0x72a00000 DBGHELP Stacktrace: (0) D:\Games\Spring Dev\spring.exe [0x00898B03] (1) D:\Games\Spring Dev\spring.exe [0x00898BAC] (2) D:\Games\Spring Dev\spring.exe [0x008997CB] (3) D:\Games\Spring Dev\spring.exe [0x0089C215] (4) D:\Games\Spring Dev\spring.exe [0x004F82AB] (5) D:\Games\Spring Dev\spring.exe [0x00892080] (6) D:\Games\Spring Dev\spring.exe [0x008A3685] (7) D:\Games\Spring Dev\spring.exe [0x008924A0] (8) D:\Games\Spring Dev\spring.exe [0x0089C5C9] (9) D:\Games\Spring Dev\spring.exe [0x00891C4A] (10) D:\Games\Spring Dev\spring.exe [0x00891CEF] (11) D:\Games\Spring Dev\spring.exe [0x0089C454] (12) D:\Games\Spring Dev\spring.exe [0x005286FB] (13) D:\Games\Spring Dev\spring.exe [0x004C6DB9] (14) D:\Games\Spring Dev\spring.exe [0x005BC675] (15) D:\Games\Spring Dev\spring.exe [0x005DC8D5] (16) D:\Games\Spring Dev\spring.exe [0x005DF340] (17) D:\Games\Spring Dev\spring.exe [0x0081D4E8] (18) D:\Games\Spring Dev\spring.exe [0x0082608A] (19) D:\Games\Spring Dev\spring.exe [0x00826458] (20) D:\Games\Spring Dev\spring.exe [0x00826689] (21) D:\Games\Spring Dev\spring.exe [0x00918207] (22) D:\Games\Spring Dev\spring.exe [0x00401292] (23) D:\Games\Spring Dev\spring.exe [0x004012DD] (24) C:\WINNT\system32\KERNEL32.dll [0x7C5989D5] | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
trepan (reporter) 2007-09-04 16:28 |
patch is almost completed to fix this and other crash bugs. |
trepan (reporter) 2007-09-05 04:37 |
This and several other reentrancy problems should be solved by r4316. |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2007-09-04 10:27 | Maelstrom | New Issue | |
2007-09-04 10:27 | Maelstrom | File Added: insta_build.lua | |
2007-09-04 16:28 | trepan | Note Added: 0001215 | |
2007-09-05 04:37 | trepan | Note Added: 0001217 | |
2007-09-05 04:38 | trepan | Assigned To | => trepan |
2007-09-05 04:38 | trepan | Status | new => resolved |
2007-09-05 04:38 | trepan | Resolution | open => fixed |