Jump to content
The Dark Mod Forums

Error Message When Closing Dark Radiant


Recommended Posts

Dark Radiant 0.8.1 of 12 Apr 2007

 

I get an error message when I close Dark Radiant if I have selected anything. If I just open DR then close it then no error. If I open, it, select an item, then close DR, then I get the error. If I open, select an item then deselect it and close DR I still get the error. Tried it in two maps and its the same. Doesn't even need a map - just any entity to select.

 

The error produces a very long report but I can't copy and paste it. It also refers to a text file output with a ton of data in it but it doesn't look like the same data. I can upload that if it is of any use.

 

The errror does not seem to affect actually using DR as far as I can tell but just keeps appearing each time I exit.

Link to comment
Share on other sites

The error report screenie probably won't help much HERE because it only shows the start of a lengthy scrollable report.

 

The radiant log is HERE

 

The other text output referred to in the screenie I couldn't find and I think it had been removed from the temp folder before I got to it. So I re-ran DR and got another HERE - so it might not exactly match (though I just clicked a light in both cases then exited) but I can do the whole thing again tomorrow if that's crucial.

Link to comment
Share on other sites

So this is an ordinary crash? Looking at the logfile I can't see anything suspicious, the logfile gets closed regularly without being interrupted. Any GTK errors visible after it crashed when you run it from a DOS box?

Link to comment
Share on other sites

Ok, angua could reproduce it on her machine, whereas I just get some GTK assertions (after opening DarkRadiant, creating a light, deselecting it and closing the app).

 

Maybe this is the GTK library throwing up here? My machine just shows some text errors in the console and quits without "crash", angua's doesn't show the text errors but "crashes". If the GTK DLLs are involved I'm fairly sure that these are related to the double destroy commands in the Entity Inspector we recently talked about. I suggest we revisit this topic after the other issue has been resolved, maybe this problem is gone as well then.

Link to comment
Share on other sites

I am seeing a segfault on shutdown on Windows, which seems to exhibit equivalent behaviour (triggered by selecting an entity, does not occur when nothing has been selected). I wonder if this could be related to the fix for the GTK issue on shutdown?

 

EDIT: Fortunately it appears on Linux as well, meaning it can be debugged.

Link to comment
Share on other sites

OrbWeaver, have you been able to find out where the crash is happening? If you point me in the right direction I can take a look at it. Otherwise I'd have to go the usual way of perforating the code with std::cout statements to find it (after an educated guess where to start).

Link to comment
Share on other sites

Yes, I know what the problem is. Unfortunately my suggestion to add a conditional GTK_IS_WIDGET() test before destroying the PropertyEditor's widget was not the correct solution, because GTK has already shut down when this happens meaning that the _widget pointer refers to invalid memory, and even GTK_IS_WIDGET() is not acceptable.

 

I think what I will do is add a GTK quit callback (with gtk_quit_add()) that will set the PropertyEditor's widget pointer to NULL when GTK exits. Then in the destructor, the gtk_widget_destroy will only be called if the pointer is not NULL.

 

(If you want to implement this yourself now, feel free -- I won't get to it until this evening).

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

    • The Black Arrow

      Hey @nbohr1morehow come the zombies in The Dark Mod don't have a "resurrection" mechanic to it, similar to how Thief has it?
      They're quite a weak creature as of right now, it's merely a walking corpse that slashes you, making attacking them to kill them an actual strategy.
      Would be better if they had some cool mechanism to it that truly makes them a danger, such as the resurrection idea itself.
      · 2 replies
    • Ansome

      Query: when was the last time a zombie in a video game was unnerving or scary to you? I'm chipping away at my anniversary submission and I've been trying to gather opinions on the subject. I'm perfectly capable of lighting them well, changing their sfx, and creating effective ambience, but I'm worried that zombies at their core are just too overdone to be an effective payoff to the tension I'm creating.
      · 4 replies
    • nbohr1more

      The Lieutenant 3 is out! Congrats Frost_Salamander! ( raising awareness )
      · 2 replies
    • OrbWeaver

      Has anyone had any luck with textures from Polyhaven? Their OpenEXR normal maps seem too washed out and give incorrect shading in the engine.
      · 5 replies
    • datiswous

      I tried to upscale the TDM logo video. First try:

      briefing_video.mp4 You can test it ingame by making a copy of the core tdm_gui.mtr and place it in your-tdm-root/materials/ , then edit line 249 of that file into the location where you placed the new briefing.mp4 file.
      What I did was I extracted all the image files, then used Upscayl to upscale the images using General photo (Real-Esrgan) upscale setting and then turn it back into a video.
      I might have to crop it a bit, the logo looks smaller on screen (or maybe it's actually better this way?). My video editor turned it into a 16:9 video, which I think overal looks better than 1:1 video of original.
      · 1 reply
×
×
  • Create New...