Jump to content
The Dark Mod Forums

Version 2.08 blackscreen


Dracula

Recommended Posts

Please download this archive.
It contains single directory with name starting with "apitrace".
Unpack this directory and rename it to C:\apitrace  (path C:\apitrace\bin\apitrace.exe should point to executable).

Then download the attached script apitrace_record.cmd into the directory where TDM is installed.

Run the script. It should start TDM. When TDM window appears, wait 5 seconds, then close it (e.g. with Alt+F4).

Now find file name myw64.trace in the same directory, archive it and share it somewhere (google drive or something similar).

 

apitrace_record.cmd

Link to comment
Share on other sites

okay, I've downloaded apitrace and also the script. while running the script tdm opens and after some seconds it shut's down on it's on. is that normal?

the file myw64.trace has been added in the tdm folder and I've archived it in another folder.

Link to comment
Share on other sites

1 hour ago, Dracula said:

okay, I've downloaded apitrace and also the script. while running the script tdm opens and after some seconds it shut's down on it's on. is that normal?

I think not.
It stays forever without script, and I think it should do the same with it.

Try this one, maybe it would be better.

apitrace_record.cmd

Link to comment
Share on other sites

4 hours ago, Dracula said:

okay that's the file

This one is almost empty, it did not even get to the main menu.
Was it the run which quickly closed by itself?

Could you please try the way when TDM did not close automatically.
The file in question should be about 20-40 MB in size. Everything under 1 MB is not going to work.

Link to comment
Share on other sites

Here is the riddle for fellow coders ( @duzenko @cabalistic).

According to the log posted here, the driver does not support GL_KHR_debug.

I have attached the end of the trace.
According to it, execution has got to the end of OpenGL initialization, queried all features, then started executing debug commands.
I am absolutely sure that the call to GLimp_CheckRequiredFeatures has just ended, and the following code has executed:

    if( glConfig.debugGroupsAvailable ) {
        qglDebugMessageCallback( R_OpenGLDebugMessageCallback, nullptr );
        if( r_glDebugOutput.GetBool() ) {
            qglEnable( GL_DEBUG_OUTPUT );
        } else {
            qglDisable( GL_DEBUG_OUTPUT );
        }
        if( r_glDebugOutput.GetInteger() == 2) {
            qglEnable( GL_DEBUG_OUTPUT_SYNCHRONOUS );
        } else {
            qglDisable( GL_DEBUG_OUTPUT_SYNCHRONOUS );
        }
    }

How the hell is it possible?
Extension is not available, but the if is executed?! 🥴

 

apitrace_khr_debug.png

Link to comment
Share on other sites

Uuhh... okay yeah, that is puzzling. I would suggest replacing the if condition with GLAD_GL_KHR_DEBUG, although if you are sure that CheckRequiredFeatures already finished prior to the call, it really shouldn't make any difference.

Even more confusing: if the extension isn't available, shouldn't that call just crash hard due to a null function pointer, or is GLAD redirecting missing functions to a noop?

Link to comment
Share on other sites

1 hour ago, cabalistic said:

Even more confusing: if the extension isn't available, shouldn't that call just crash hard due to a null function pointer, or is GLAD redirecting missing functions to a noop?

I think when debug cvars are enabled, then TDM actually crashes here. Or stops working in some other way.
I might be that debug functions are sometimes supported (maybe drivers update since then).
Maybe it is recording issue.

Anyway, this debugging puzzle is not the main problem.

@Dracula: When you record a better trace, please make a condump too and post console log here again.

Link to comment
Share on other sites

20 hours ago, stgatilov said:

Here is the riddle for fellow coders ( @duzenko @cabalistic).

According to the log posted here, the driver does not support GL_KHR_debug.

I have attached the end of the trace.
According to it, execution has got to the end of OpenGL initialization, queried all features, then started executing debug commands.
I am absolutely sure that the call to GLimp_CheckRequiredFeatures has just ended, and the following code has executed:


    if( glConfig.debugGroupsAvailable ) {
        qglDebugMessageCallback( R_OpenGLDebugMessageCallback, nullptr );
        if( r_glDebugOutput.GetBool() ) {
            qglEnable( GL_DEBUG_OUTPUT );
        } else {
            qglDisable( GL_DEBUG_OUTPUT );
        }
        if( r_glDebugOutput.GetInteger() == 2) {
            qglEnable( GL_DEBUG_OUTPUT_SYNCHRONOUS );
        } else {
            qglDisable( GL_DEBUG_OUTPUT_SYNCHRONOUS );
        }
    }

How the hell is it possible?
Extension is not available, but the if is executed?! 🥴

 

apitrace_khr_debug.png

Not much to suggest

  • the console log and the GL trace are from different runs (x86\x64, different drivers, different game folders, core/compat profile)
  • memory corruption
  • api tracing somehow affects the driver to return different states
Link to comment
Share on other sites

On 7/5/2020 at 8:07 PM, stgatilov said:

This one is almost empty, it did not even get to the main menu.
Was it the run which quickly closed by itself?

Could you please try the way when TDM did not close automatically.
The file in question should be about 20-40 MB in size. Everything under 1 MB is not going to work.

@Dracula, did you manage to get complete trace?

Link to comment
Share on other sites

  • 1 year later...

I have the same problem, grey screen turns to black music plays and if i move my mouse i hear the clicking of the menu but no image.

 

AMD A10-6800K 4.00 GHz / screen  1920 x 1080 / AMD R7 370 Gaming 2GB / 8GB DDR3

It was working on my shitty laptop upgraded for TDM and darkradiant then i get this

Edited by Garreth

Taf you, you taffin taffer

Link to comment
Share on other sites

2 minutes ago, Garreth said:

I have the same problem, grey screen turns to black music plays and if i move my mouse i hear the clicking of the menu but no image.

 

AMD A10-6800K 4.00 GHz / screen  1920 x 1080 / AMD R7 370 Gaming 2GB / 8GB DDR3

It was working on my shitty laptop upgraded for TDM and darkradiant then i get this

Select a dev build in the installer

Link to comment
Share on other sites

  • 2 weeks later...

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

    • 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.
      · 1 reply
    • 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
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...