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

    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 3 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 7 replies
    • 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.
      · 7 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
×
×
  • Create New...