View Issue Details

IDProjectCategoryView StatusLast Update
0005515The Dark ModCodingpublic30.01.2021 07:21
Reporterstgatilov Assigned Tostgatilov  
PrioritynormalSeveritycrashReproducibilitysometimes
Status resolvedResolutionfixed 
Product VersionTDM 2.08 
Target VersionTDM 2.09Fixed in VersionTDM 2.09 
Summary0005515: Crash when CBloodMarker::spilledBy points to removed AI
DescriptionCBloodMarker::_spilledBy is raw pointer.
So if the entity pointed by this member is removed (e.g. from script), then the pointer remains invalid, and any subsequent access causes crash.

This problem may happen on "Now And Then" FM.
Steps To ReproduceIt happenned on "Now And Then" FM, but is pretty hard to reproduce.

Way 1 (works well):
1) Load the attached savegame (from beta209-02).
2) Go down the stairs until you get a cutscene showing the guard in the window.
3) Wait for half a minute.

Way 2 (supposedly should work, but it does not):
1) Start new game, enable notarget/noclip.
2) setviewpos -2371.72 1124.54 -910.26 4.8 7.2 0.0
3) Take painting.
4) setviewpos -2461.61 1236.86 -1057.22 22.5 177.7 0.0
5) Frob lever, wait for cutscene.
6) teleport Mozir
7) Shoot broadhead arrows at this guy, make sure it leaves blood spill on ground.
8) setviewpos -447.87 -95.21 -580.38 10.2 -89.8 0.0
9) Go down the stairs until cutscene about guard in the window.
10) Wait for some time.
Additional InformationForum thread:
  https://forums.thedarkmod.com/index.php?/topic/20733-seestakeoutsignal-caught-segmentation-fault/
TagsNo tags attached.

Relationships

related to 0003075 resolvedgrayman AI can enter combat while still kneeling 

Activities

stgatilov

stgatilov

29.01.2021 14:38

administrator   ~0013565

Sauvegarde_rapide_0.save (4,253,973 bytes)
stgatilov

stgatilov

30.01.2021 07:21

administrator   ~0013572

Hopefully fixed in svn rev 9091.

Although I could not reproduce the problem in Now and Then from clean start (so I could not verify the fix either).

Issue History

Date Modified Username Field Change
29.01.2021 14:37 stgatilov New Issue
29.01.2021 14:37 stgatilov Status new => assigned
29.01.2021 14:37 stgatilov Assigned To => stgatilov
29.01.2021 14:38 stgatilov Note Added: 0013565
29.01.2021 14:38 stgatilov File Added: Sauvegarde_rapide_0.save
29.01.2021 17:05 stgatilov Relationship added related to 0003075
30.01.2021 07:21 stgatilov Note Added: 0013572
30.01.2021 07:21 stgatilov Status assigned => resolved
30.01.2021 07:21 stgatilov Resolution open => fixed
30.01.2021 07:21 stgatilov Fixed in Version => TDM 2.09