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

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 0 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...