Author Topic: Debug builds crash with no error message  (Read 2733 times)

0 Members and 1 Guest are viewing this topic.

Offline Mahak

  • 25
Debug builds crash with no error message
Hey folks,

I've noticed over the years (yep, thats how long I have been developing, can't believe how much time this stuff eats up!) that I have never been able to run debug builds.  Even when I fix all the stuff in my tables, it will still crash with the usual "send info to microsoft" thingo (seriously, who does that!?).

As far as I know, I have all the c++ runtime stuff installed correctly - but I'm not a coder so I don't really know whats what in that regard.  If anyone has any clues, or ideas on how I can get more info to find out whats going on, let me know!

M.

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Debug builds crash with no error message
Hmm.

There should be an errorlog.txt thingie in your fs2 folder. Post that.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Re: Debug builds crash with no error message
Debug builds don't require any additional developer stuff to run. Their main purpose is to generate a debug log file, otherwise they should function as the release builds (though often with reduced performance due to more rigorous error-checking). I can't immediately think of any one reason that would stop debug builds from working while release builds would work normally.

It could be an environment issue or game data issue, or something else.

Could you provide some more information?

-what operating system are you running?
-what sort of data are you using (mediaVP's, mods etc.)
-what version of FS2_Open are you using?


...aand as The E said, post errorlog.txt.
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 

Offline Androgeos Exeunt

  • Captain Oblivious
  • 212
  • Prevents attraction.
    • Wordpress.com Blog
Re: Debug builds crash with no error message
Don't you two mean fs2_open.log?
My blog

Quote: Tuesday, 3 October 2023 0133 UTC +8, #general
MP-Ryan
Oh you still believe in fairy tales like Santa, the Easter Bunny, and free market competition principles?

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Debug builds crash with no error message
No, I mean what I said. In this case, there seems to be an error with the exe starting up. The errorlog.txt contains the errors Windows throws (and that could tell us what's going wrong).
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 
Re: Debug builds crash with no error message
The information that turns up in the windows logs would also be very useful:

Control Panel->Administrative Tools->Event Viewer->Windows Logs->Application
Find the crashing instance of FSO in there (it'll be marked with a red or yellow icon), and copy/paste the info from the lower window (the details section).

That will tell exactly what windows thinks happened.

Recent builds do not produce errorlog.txt (IIRC)
STRONGTEA. Why can't the x86 be sane?

 

Offline Mahak

  • 25
Re: Debug builds crash with no error message
Cool - I'm on the road at the moment, I will grab that info as soon as I am in one place for a while!

It does seem to be unrelated to any table data or junk that I play around with (I don't mess with code) - I don't get any parsing errors in any case.  It just seems weird that it only happens with debug builds - retail builds all work fine.  So yeah, must be all the extra error checking that goes on.

Curiousier and curiousier...

 

Offline Mahak

  • 25
Re: Debug builds crash with no error message
So, since the debug builds don't write to errorlog.txt anymore, can't post that.  But I do have the debug spew, see attached.

As you can see I get an interrupt:

Int3(): From d:\fso\scp - clean\code\gamehelp\contexthelp.cpp at line 373

I have no idea what this might be.

M.

[attachment deleted by admin]

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Debug builds crash with no error message
Well problem 1:

Quote
 Requested WGL Video values = R: 8, G: 8, B: 8, depth: 32, double-buffer: 1
  Actual WGL Video values    = R: 5, G: 6, B: 5, depth: 16, double-buffer: 1

You need 32 bit in both launcher and desktop

Problem 2:

Quote
DDS ERROR: Couldn't open '2_PreLoad.dds' -- Cannot load DDS if not power-of-2

Which is strange since the non power of 2 support loaded without error.  

Personally I'd blame it on this:

Quote
 OpenGL Vendor     : Intel
  OpenGL Renderer   : Intel 965/963 Graphics Media Accelerator

Not sure about that - in the directory name either.  Haven't heard of a problem but since - is used for passing parameters there is always a possibility.  

And it crashes right when loading a bitmap

Code: [Select]
// load right_bracket bitmap
help_right_bracket_bitmap = bm_load("right_bracket");
if(help_right_bracket_bitmap < 0){
// we failed to load the bitmap - this is very bad
Int3();
}

Which leads me back to the non power of 2 and Intel card.
« Last Edit: June 28, 2010, 09:13:43 pm by FUBAR-BDHR »
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: Debug builds crash with no error message
That is not really the problem... Game is pretty much saying that it cant find any game data files.

Code: [Select]
...
'Building file index...
Searching root 'C:\Games\Mahak\' ... 7103 files
Found 1 roots and 7103 files.
Setting language to English
...

Are you running the exe in the location where the FreeSpace vp files are located.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Debug builds crash with no error message
If it's his mod then then vp files are probably not present or extracted and removed.  7103 files but not in any in vps.  Now it's still possible it can't find that file but he has other issues as well. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Debug builds crash with no error message
Such as apparently never having read any of the install guides.

Mahak, please start from scratch.

Reinstall FS2. Then use the online installer found here: http://www.fsoinstaller.com/ to get all the goodies. Then get the .12 exe.

Also, check your driver install.
« Last Edit: June 29, 2010, 08:27:13 am by The E »
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns