Jump to content
The Dark Mod Forums

How Do I: diagnose a crash to desktop...


Bikerdude

Recommended Posts

You really only have 2 options: do it the traditional way by experimentation and caulking out parts of the map (if it's a TDM problem), or you use programmer's tools. You don't need to be a programmer to use those tools, but you do need access to the source code and to know how to make yourself a debug build of the application.

 

If you don't have access to the source code, then googling or emailing the company is usually the best way. There are tools that will print a stack trace for you on a crash. That'll mostly look like a pile of gibberish (to programmers too), but if you read the gibberish from the bottom up you can sometimes spot a clue as to what general area of the system caused the crash -- sound driver, graphics driver etc. It's a lot more helpful if you're running a debug build (and then you don't need special tools either), but it's about the only way to get any information out of a CTD in a closed-source app.

 

Is this crash in a TDM map? I could show you how to run a debug build that'll halt instead of crashing to desktop, and show you how to see what part of the code it crashed in. TDM code is quite helpfully named.

 

Failing that, I'm always happy to help diagnose a TDM bug. That reminds me, now that I've finished those tracker issues I'll look again into the buzzing lights causing a crash in that map you sent me last week.

Link to comment
Share on other sites

That's ok, wish I'd thought of it :) And if the log tells you nothing I might still get to be useful.

 

Try 2 instead of 1. I don't know for sure whether that'll work, but I remember that TDM console logging has 3 levels: 0 = don't log, 1 = hold the log in memory and write it to disk occasionally so that performance isn't knackered by constant writing to disk ; 3 = write every single line to disk as it gets generated. That hurts performance but it means you get to see the log in the event of a crash. Option (1) fails when the game crashes because the log entries held in memory get lost.

Link to comment
Share on other sites

This sound a lot quicker and simpler, sorry Steve :-)

 

Er where do I enable logging, can I assume I change "LogError=0" to "LogError=1"...? if so that did nothing, the darkmod.log remains unchanged.

 

That turns on logging, but then you have to turn on what you want to log. Try this:

 

Hmm, that didn't do anything. Hang on.

I always assumed I'd taste like boot leather.

 

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

    • 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
       
      · 2 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
    • 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
×
×
  • Create New...