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

    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
    • Ansome

      Well then, it's been about a week since I released my first FM and I must say that I was very pleasantly surprised by its reception. I had expected half as much interest in my short little FM as I received and even less when it came to positive feedback, but I am glad that the aspects of my mission that I put the most heart into were often the most appreciated. It was also delightful to read plenty of honest criticism and helpful feedback, as I've already been given plenty of useful pointers on improving my brushwork, level design, and gameplay difficulty.
      I've gotten back into the groove of chipping away at my reading and game list, as well as the endless FM catalogue here, but I may very well try my hand at the 15th anniversary contest should it materialize. That is assuming my eyes are ready for a few more months of Dark Radiant's bright interface while burning the midnight oil, of course!
      · 4 replies
×
×
  • Create New...