Jump to content
The Dark Mod Forums

Dark radiant crash on update entities on every change


Recommended Posts

Hello,

I get a dark radiant crash every time I try to use

Connection > Update entities on every change

 

I do the following steps:

1. Start TDM, load map with console command "map anol"

2. Enter in console "com_automation 1", windows firewall request was accepted the first time (no other firewall is running)

3. Start dark radiant and load corresponding map fms/anol/maps/anol.map

4. Activate "Game position follows dark radiant camera" > camera synchronisation is working

5. Change an entity and use Connection > Update entities now > working without problems

6. Activate Connection > Update entities on every change

7. As soon as any entity is moved, dark radiant crashes by directly closing without giving an error on the desktop

 

When this happens, TDM prints the following in the console:

HotReload: SUCCESS
ERROR: idTCP::Read: WSAECONNRESET
Automation lost connection

 

I'm using TDM 2.09/64 #9108 and
Dark radiant 2.11.0 x64 Build date Jan 29 2021 13:59:57

Please help!
If you need any more info (logfiles or anything like that) please tell me where to find it.

 

Edited by OGDA
Link to comment
Share on other sites

@greebo

Here's the Dump for dark radiant after the error has occured:
https://das-kartell.org/files/darkradiant_error/DarkRadiant.zip

I've installed Visual Studio. When I click Debug in the error message popup, it tells me:
Unhandled exception at 0x00007FF9EFB1286E (ucrtbase.dll) in DarkRadiant.exe: Fatal program exit requested.

Link to comment
Share on other sites

4 hours ago, OGDA said:

I've installed Visual Studio. When I click Debug in the error message popup, it tells me:
Unhandled exception at 0x00007FF9EFB1286E (ucrtbase.dll) in DarkRadiant.exe: Fatal program exit requested.

Installed Visual Studio, really?!
Are you a C++ programmer by any chance?

Unfortunately, some more stuff is needed to analyze the dump: PDB file for the exact DarkRadiant version, and source code for that version.

Link to comment
Share on other sites

While I've programmed several C++ programs, I'm not very used to Visual Studio debugging.

I've downloaded the source code already over github. Where do I get the PDB-Files for dark radiant versions?
(the specific version is Dark radiant 2.11.0 x64 Build date Jan 29 2021 13:59:57 )

In the wiki I only found the PDB location for TDM itself, but not for dark radiant.

Link to comment
Share on other sites

I was able to compile the source code and then run dark radiant.

The error happens with the downloaded version and with the self compiled version.

 

Is this the relevant info?
If yes, I'll create a bug ticket.

If any additional information is needed, please let me know.

 

Dump file of the crash with the self compiled version:
https://das-kartell.org/files/darkradiant_error/DarkRadiant_2.zip

 

debug_error.png

 

debug_error_2.png

Edited by OGDA
  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Thanks for the reminder, I had a look at the crashdump you uploaded. This seems to be a double-entering problem, the map diff method is entered twice through the idle callback. Due to the whole progress UI handling the map saving is taking longer than 123ms and the timer to trigger the map save is fired another time before the first one is finished. Down the line this causes a lock_guard to throw exceptions since it tries to lock a mutex it already holds.

The MapExporter class has an option to switch off the progress UI when saving, which is likely to solve the problem. Still, the timer callback should probably be protected against double-entering too.

  • Like 1
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.
      · 6 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...