Jump to content
The Dark Mod Forums

seeStakeoutsignal caught: Segmentation fault


JBERT

Recommended Posts

Thank you!

Hmm...

It seems that you replicated this on 2.09 beta 2.

You should use the new "installer" and choose "custom version" to select the most recent beta ( 2.09 beta 4 )

I will try regressing to beta 2 this evening so I can verify further.

  • Sad 1

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

@nbohr1more , why don't you downgrade to beta209-02 yourself? 😃
I'm uploading all PDB files to google drive.

I have reproduced some sort of crash using the provided savegame.

I loaded the quicksave before stairs, and went down. Nothing happened.
I left the game and went to take shower 🤪 when I returned, it has already crashed. No idea what happened and how long it took.
It happened to me on Windows.
 

Here is the stacktrace:

>    TheDarkModx64.exe!ai::State::OnVisualStimBlood(idEntity * stimSource, idAI * owner) Line 3575    C++
     TheDarkModx64.exe!ai::State::DelayedVisualStim(idEntity * stimSource, idAI * owner) Line 1161    C++
     TheDarkModx64.exe!idClass::ProcessEventArgPtr(const idEventDef * ev, __int64 * data) Line 1047    C++
     TheDarkModx64.exe!idEvent::ServiceEvents() Line 598    C++
     TheDarkModx64.exe!idGameLocal::RunFrame(const usercmd_t * clientCmds, int timestepMs) Line 3392    C++
     TheDarkModx64.exe!idSessionLocal::RunGameTic(int timestepMs) Line 3070    C++
     [Inline Frame] TheDarkModx64.exe!idSessionLocal::RunGameTics() Line 3112    C++
     TheDarkModx64.exe!idSessionLocal::FrontendThreadFunction() Line 3158    C++
     [Inline Frame] TheDarkModx64.exe!idSessionLocal::StartFrontendThread::__l2::<lambda_6b7828b12cf509cf76fb3406570c8cd1>::operator()(void *) Line 3252    C++
     TheDarkModx64.exe!<lambda_6b7828b12cf509cf76fb3406570c8cd1>::<lambda_invoker_cdecl>(void * x) Line 3254    C++
  • owner is "watchGuard4"
  • stimSource is "CBloodMarker_atdm:blood_marker_43"

When I look at stimSource, its _spilledBy member is pointing to some location, which is apparently deleted.

To be honest, I am quite surprise at the amount of game code which uses raw long-living entity pointers without any care that it can be deleted. EntityPtr should be used almost everywhere for this purpose.

UPDATE: Yes, reproduced it from the first take. Waited in shadows immediately after the stairs for at most 30 seconds. Same stack trace.

Link to comment
Share on other sites

I think here is what happened:

  1. @JBERT hurt the guy named "Mozir" enough to generate a blood spill. (UPDATE: confirmed that this blood spill was Mozir's).
  2. When you go down the stairs, "spawnGuards2" script function is called, which removes "Mozir" entity.
  3. Something happens to the blood spill (e.g. it gets noticed by someone), and the game crashes on dangling pointer.

@JBERT, did this issue blocked you from finishing the mission?
Do you need workaround to let you proceed from this save?

  • Like 1
Link to comment
Share on other sites

31 minutes ago, stgatilov said:

I think here is what happened:

  1. @JBERT hurt the guy named "Mozir" enough to generate a blood spill. (UPDATE: confirmed that this blood spill was Mozir's).
  2. When you go down the stairs, "spawnGuards2" script function is called, which removes "Mozir" entity.
  3. Something happens to the blood spill (e.g. it gets noticed by someone), and the game crashes on dangling pointer.

@JBERT, did this issue blocked you from finishing the mission?
Do you need workaround to let you proceed from this save?

I cannot finish this mission as TDM aborts on segfault. If you have a workaround, I can try it.

Link to comment
Share on other sites

15 hours ago, JBERT said:

I cannot finish this mission as TDM aborts on segfault. If you have a workaround, I can try it.

You can download updated save from here.

The easiest way to fix the problem is to open game console and execute "remove CBloodMarker_atdm:blood_marker_43".
It would remove the blood entity from the game, so it won't be able to cause crash in future.

Link to comment
Share on other sites

I can reproduce the issue perfectly from the savegame if I start TDM not from VC.
However, I cannot reproduce it from fresh start. So I can try to fix it, but I won't be able to verify that the fix is working (raw object pointer and EntityPtr are represented differently in the save file).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 2 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...