Local Build for Darktable Crashing When Run?

Platform: Windows 11, Intel

When I build darktable locally (5.5 + 797), and then run it, I see the splash screen, and it seems to load some or all of the modules, and then the splash screen disappears, and the main app window never appears.

It had been building fine with a previous version of darktable (5.4).
This is with no changes to the code.
This is the command I use to run the app:
export GTK_DEBUG=interactive && ./bin/darktable.exe --configdir ./fresh-dev-config

This might just be a me issue, but I wanted to check to see if anyone else has encountered this.

Do you use the Lua scripts?

no.

When the splash screen shows does it pause/stop at Initializing Lua?

No :frowning:
It seems to disappear immediately after loading modules for a bit. I feel like it loads most or all modules. It is hard to know for sure since the text goes so fast.

P.S. Sorry if my first response of “No.” seemed rude, I was just typing fast.
Thank you for your help.

You were fine.

There is a race condition in darktable that Lua trips over. It’s (hopefully) fixed in master, but every time I see a “doesn’t start” I’m checking…

Try starting without GTK_DEBUG just to see if that’s having an effect

Does it happen if you use the nightly build?

The below fails in exactly the same way unfortunately.

./bin/darktable.exe --configdir ./fresh-dev-config

I haven’t actually used the nightly builds before…

ok. Can you use it now? Does it happen with the nightly?

What instructions are you using to compile? ai?

I have never even looked for the nightly build, so I won’t get to that right now. I will try later though.

cmake --build .
./bin/darktable.exe --configdir ./fresh-dev-config

This had been working…
I am not sure what you mean by “ai?” Are you asking if AI helped me figure out how to compile and run the code? or are you asking if I have asked AI? Yes to both.

There is an AI flag now. You are sharing the least amount of information. It takes a lot more than cmake --build to compile. You should use the build instructions in GitHub.

Using the nightly right now that is already compiled will rule out your build process.

Thanks, I will try the nightly build.

Got it fixed. I don’t know what the issue was, but after going through the whole process again with the help of AI, it now works.

I wish I understood the process of compiling better… but there is only so much time in the day.