Darktable Crashes on Startup

Hi,
I just downloaded Darktable on a new Windows 11 machine and following a smooth install (apart from the usual security warning) it was fine. The issue was when actually starting the program… It opened a dialog/command box, which I believe is normal, but that window closes and darktable doesn’t start. Is there a solution for this?

Oh, and the machine is a Gigabyte Aero 16" w an RTX 4070 and i7 13th Gen.

Thanks in advance!

I have DT installed on Windows 11 with no problems. A more tech savvy person may have a better suggestion, but it would not hurt to try reinstalling the software again. It will ask to remove the current installation and then it will reinstall. I once had an issue where I had to do this and the second attempt to install went fine. Also, make sure you download the install file from install | darktable and not another site such as the microsoft store.

Thank you, I appreciate the response. I did get it from the official site though and tried reinstalling and even going back to older versions on GitHub with no luck… My only theory at the moment is a possible issue with running Darktable on Nvidia’s 40 series laptop GPUs…
Thanks again for your response, definitely sad to see others monetizing Darktable and the devs work on the Microsoft store.

If you can actually get DT to open try disabling openCL in the preferences as this can on some instruments cause crashing if the graphics card is not supported.

Thank you so much! I’ll try that if I get it running. I realize I have some driver updates so hopefully those will do something.

Isn’t there some Microsoft opencl package that needs to be removed?

I am not sure if this will help you to get DT initially fired up, but if you select an image in the file explorer of windows, right click and tell it to open with DT. I know that openCL problems is one of the main causes I have seen for DT crashes with my students.

It seems to have the same issue when opening files as well. I tried a number of formats and it kept on showing the black command screen then crashing for a bit before just not loading anything. I checked task manager and it definitely isn’t showing it running after it crashes…

Hi! I had seen that on other forums. The problems described didn’t exactly match my issue but I was hoping to try and find the package… I’m just not sure how I’d go about doing that…

Its called the Microsoft OpenCL.Compatibility Pack

I never had to deal with this on my Win 11 box so it may be the issue but also might not be.

Run DT from the command line and use the appropriate syntax to run with open CL disabled… I’m on my phone but it should be easy to find in the manual… that’s a new video card so maybe it’s the issue… do you have the latest driver??

I tried to open it via the command line without OpenCL and at first it seemed to do nothing, but then opening again from windows start I got this box:


unfortunately, deleting the database files does nothing and I just get this box upon launch every time… I double checked and Darktable isn’t running elsewhere in the task manager…

Sort of sounds like a permissions error, how did you install darktable? Can you remove the dblock files by hand?

I installed it through the regular file (darktable-4.4.0-win64) from the site and a simple double click. It went through the regular install boxes and I checked all of the permissions available. How would I remove the dblock files?

-I’ll add that I can’t find the Darktable AppData folder and there are no lock files in the programfiles folders…

See this: faq | darktable

Thank you so much! I deleted the lock files but relaunching darktable went back to the original problem with the black cmd box before it disappearing. Following that, all of the files reappeared in this location :frowning:
I used the faq instructions to test OpenCL from what I have below I think OpenCL is working…

 0.1089 [dt_get_sysresource_level] switched to 1 as `default'
 0.1114   total mem:       16037MB
 0.1125   mipmap cache:    2004MB
 0.1137   available mem:   8018MB
 0.1148   singlebuff:      125MB
 0.1159   OpenCL tune mem: OFF
 0.1170   OpenCL pinned:   OFF

[opencl_init] opencl related configuration options:
[opencl_init] opencl: ON
[opencl_init] opencl_scheduling_profile: ‘default’
[opencl_init] opencl_library: ‘default path’
[opencl_init] opencl_device_priority: ‘/!0,///!0,*’
[opencl_init] opencl_mandatory_timeout: 400
[opencl_init] opencl library ‘OpenCL.dll’ found on your system and loaded
[opencl_init] found 3 platforms
[opencl_init] found 5 devices

[dt_opencl_device_init]
DEVICE: 0: ‘NVIDIA GeForce RTX 4070 Laptop GPU’
PLATFORM NAME & VENDOR: NVIDIA CUDA, NVIDIA Corporation
CANONICAL NAME: nvidiacudanvidiageforcertx4070laptopgpu
DRIVER VERSION: 536.40
DEVICE VERSION: OpenCL 3.0 CUDA, SM_20 SUPPORT
DEVICE_TYPE: GPU
GLOBAL MEM SIZE: 8188 MB
MAX MEM ALLOC: 2047 MB
MAX IMAGE SIZE: 32768 x 32768
MAX WORK GROUP SIZE: 1024
MAX WORK ITEM DIMENSIONS: 3
MAX WORK ITEM SIZES: [ 1024 1024 64 ]
ASYNC PIXELPIPE: NO
PINNED MEMORY TRANSFER: NO
MEMORY TUNING: NO
FORCED HEADROOM: 400
AVOID ATOMICS: NO
MICRO NAP: 250
ROUNDUP WIDTH: 16
ROUNDUP HEIGHT: 16
CHECK EVENT HANDLES: 128
TILING ADVANTAGE: 0.000
DEFAULT DEVICE: NO
KERNEL BUILD DIRECTORY: C:\Program Files\darktable\share\darktable\kernels
KERNEL DIRECTORY: C:\Users\2006r\AppData\Local\Microsoft\Windows\INetCache\darktable\cached_v1_kernels_for_NVIDIACUDANVIDIAGeForceRTX4070LaptopGPU_53640
CL COMPILER OPTION: -cl-fast-relaxed-math
KERNEL LOADING TIME: 0.1230 sec

[dt_opencl_device_init]
DEVICE: 1: ‘Intel(R) UHD Graphics’
PLATFORM NAME & VENDOR: Intel(R) OpenCL HD Graphics, Intel(R) Corporation
CANONICAL NAME: intelropenclhdgraphicsintelruhdgraphics
DRIVER VERSION: 31.0.101.4032
DEVICE VERSION: OpenCL 3.0 NEO
DEVICE_TYPE: GPU
GLOBAL MEM SIZE: 6415 MB
MAX MEM ALLOC: 3207 MB
MAX IMAGE SIZE: 16384 x 16384
MAX WORK GROUP SIZE: 512
MAX WORK ITEM DIMENSIONS: 3
MAX WORK ITEM SIZES: [ 512 512 512 ]
ASYNC PIXELPIPE: NO
PINNED MEMORY TRANSFER: NO
MEMORY TUNING: NO
FORCED HEADROOM: 400
AVOID ATOMICS: NO
MICRO NAP: 250
ROUNDUP WIDTH: 16
ROUNDUP HEIGHT: 16
CHECK EVENT HANDLES: 128
TILING ADVANTAGE: 0.000
DEFAULT DEVICE: NO
*** marked as disabled ***

[dt_opencl_device_init]
DEVICE: 2: ‘NVIDIA GeForce RTX 4070 Laptop GPU’
PLATFORM NAME & VENDOR: OpenCLOn12, Microsoft
CANONICAL NAME: openclon12nvidiageforcertx4070laptopgpu
DRIVER VERSION: 1.1.0
DEVICE VERSION: OpenCL 1.2 D3D12 Implementation
DEVICE_TYPE: GPU
GLOBAL MEM SIZE: 7962 MB
MAX MEM ALLOC: 1024 MB
MAX IMAGE SIZE: 16384 x 16384
MAX WORK GROUP SIZE: 1024
MAX WORK ITEM DIMENSIONS: 3
MAX WORK ITEM SIZES: [ 1024 1024 64 ]
ASYNC PIXELPIPE: NO
PINNED MEMORY TRANSFER: NO
MEMORY TUNING: NO
FORCED HEADROOM: 400
AVOID ATOMICS: NO
MICRO NAP: 250
ROUNDUP WIDTH: 16
ROUNDUP HEIGHT: 16
CHECK EVENT HANDLES: 128
TILING ADVANTAGE: 0.000
DEFAULT DEVICE: NO

You are having the similar problem someone else had with multiple drivers. It looks like microsoft is installing another driver (Device 2). Uninstalling it should be the first thing to try.

Another option is to disable it via an edit to darktablerc

ref:

Thanks for the response! What could I modify in darktablerc? Should I blacklist the nvidia driver?
|
I also see what you mean about the drivers… Should there be this many drivers installed for the Intel processor? It doesn’t look right, and I am not finding the nvidia drivers in the windows settings…

Those are likely for each of the cores and I think it is normal.

The nvidia drivers should be in the display section.

Just make sure you do a windows update first since it might resolve the issue like the github issue I linked.