View Issue Details

IDProjectCategoryView StatusLast Update
0000542Spring engineGeneralpublic2007-05-30 15:22
Reportersemi Assigned Totvo  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Summary0000542: [patch] Ghosted but dead buildings come to LOS : corrupted double-linked list crashes game
DescriptionWhen ghosted but later died buildings come back to LOS, a doubly linked list gets corrupted in rts/Rendering/UnitModels/UnitDrawer.cpp because of line 552 where an iterator to list gB is erased from list ghostBuildings. This results in a crash on both windows and linux, stacktrace pointing to either line 550 or 554 in the mentioned file in 2 observed cases.

My patch fixes this bug, and I've tested it to work.
Steps To ReproduceGo scout enemy buildings that are not jammed, so you get ghosts on the map.
Make sure the buildings die, without you seeing them. Nuke them f.ex.
Go scout the buildings again -> crash.

I am not sure if this happens with both 3do and s3o buildings, or both, but at least one or the other.
Additional InformationThis bug was encountered in a test game with Ashitaka, who found the exact reason for the crash.
TagsNo tags attached.
Attached Files
DrawCloakedUnits_semi.diff (Attachment missing)
Checked infolog.txt for Errors

Activities

tvo

2007-05-30 15:22

reporter   ~0000917

Thanks! Committed in r3797

Issue History

Date Modified Username Field Change
2007-05-30 14:44 semi New Issue
2007-05-30 14:44 semi File Added: DrawCloakedUnits_semi.diff
2007-05-30 15:22 tvo Status new => assigned
2007-05-30 15:22 tvo Assigned To => tvo
2007-05-30 15:22 tvo Status assigned => resolved
2007-05-30 15:22 tvo Resolution open => fixed
2007-05-30 15:22 tvo Note Added: 0000917