Jump to content
System downtime for updates - Sunday 13 July 2025 ×
The Dark Mod Forums

Recommended Posts

Posted

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

Posted

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.

Posted
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

Posted
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.

Posted

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

Posted

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?

Posted
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.

Posted
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
Posted
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?

  • 1 year later...
Posted (edited)

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

Posted
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

  • 2 weeks later...
Posted
On 10/25/2021 at 7:21 PM, Garreth said:

Thank you works perfectly, still wonder why the regular build don't work..

Most likely we will release 2.09b hotfix fixing that in a few weeks.

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

    • JackFarmer

      "The Year of the Rat." 
      😄

      Al Stewart must be proud of you!
      Happy testing!
      @MirceaKitsune
      · 1 reply
    • datiswous

      I posted about it before, but I think the default tdm logo video looks outdated. For a (i.m.o.) better looking version, you can download the pk4 attached to this post and plonk it in your tdm root folder. Every mission that starts with the tdm logo then starts with the better looking one. Try for example mission COS1 Pearls and Swine.
      tdm_logo_video.pk4
      · 2 replies
    • JackFarmer

      Kill the bots! (see the "Who is online" bar)
      · 3 replies
    • STiFU

      I finished DOOM - The Dark Ages the other day. It is a decent shooter, but not as great as its predecessors, especially because of the soundtrack.
      · 5 replies
    • JackFarmer

      What do you know about a 40 degree day?
      @demagogue
      · 4 replies
×
×
  • Create New...