Darktable doesn't open after "init sql"

darktable -d all
‘’’
darktable 4.6.1
Copyright (C) 2012-2024 Johannes Hanika and other contributors.

Compile options:
Bit depth → 64 bit
Debug → DISABLED
SSE2 optimizations → ENABLED
OpenMP → ENABLED
OpenCL → ENABLED
Lua → ENABLED - API version 9.2.0
Colord → ENABLED
gPhoto2 → ENABLED
GMIC → ENABLED - Compressed LUTs are supported
GraphicsMagick → ENABLED
ImageMagick → DISABLED
libavif → ENABLED
libheif → ENABLED
libjxl → ENABLED
OpenJPEG → ENABLED
OpenEXR → ENABLED
WebP → ENABLED

See resources | darktable for detailed documentation.
See Sign in to GitHub · GitHub to report bugs.

 0.0001 application_directory: /nix/store/z6biasl6bizrflr8k1wk55pvnq6dnvvq-darktable-4.6.1/bin
 0.0001 darktable.datadir: /nix/store/z6biasl6bizrflr8k1wk55pvnq6dnvvq-darktable-4.6.1/share/darktable
 0.0001 darktable.plugindir: /nix/store/z6biasl6bizrflr8k1wk55pvnq6dnvvq-darktable-4.6.1/lib/darktable
 0.0002 darktable.localedir: /nix/store/z6biasl6bizrflr8k1wk55pvnq6dnvvq-darktable-4.6.1/share/locale
 0.0002 darktable.configdir: /home/grig/.config/darktable
 0.0002 darktable.cachedir: /home/grig/.cache/darktable
 0.0002 darktable.sharedir: /nix/store/z6biasl6bizrflr8k1wk55pvnq6dnvvq-darktable-4.6.1/share
 0.0002 darktable.tmpdir: /tmp
 0.0002 [memory] at startup
 0.0002 [memory] max address space (vmpeak):      185516 kB
        [memory] cur address space (vmsize):      185484 kB
        [memory] max used memory   (vmhwm ):       42496 kB
        [memory] cur used memory   (vmrss ):       42496 kB
 0.0003 new_xdg_data_dirs: (null)
 0.0423 [init sql] library: /home/grig/.config/darktable/library.db, data: /home/grig/.config/darktable/data.db

‘’’

Does anyone have this problem?

Ahoy fellow nix user, a few questions:

  1. How do you have 4.6.1? Both stable and unstable are on 4.8.1.
  2. Are you using NixOS or are you on another distro? If you’re on another Linux distro, do you have NixGL configured?

Hello!

Switched to unstable, and there is other debug output

‘’’
darktable 4.8.1
Copyright (C) 2012-2024 Johannes Hanika and other contributors.

Compile options:
Bit depth → 64 bit
Debug → DISABLED
SSE2 optimizations → ENABLED
OpenMP → ENABLED
OpenCL → ENABLED
Lua → ENABLED - API version 9.3.0
Colord → ENABLED
gPhoto2 → ENABLED
GMIC → ENABLED - Compressed LUTs are supported
GraphicsMagick → ENABLED
ImageMagick → DISABLED
libavif → ENABLED
libheif → ENABLED
libjxl → ENABLED
OpenJPEG → ENABLED
OpenEXR → ENABLED
WebP → ENABLED

See resources | darktable for detailed documentation.
See Sign in to GitHub · GitHub to report bugs.

 0.0001 application_directory: /nix/store/shcjsxf9awqs1havjissfw44xwicpgs5-darktable-4.8.1/bin
 0.0001 darktable.datadir: /nix/store/shcjsxf9awqs1havjissfw44xwicpgs5-darktable-4.8.1/share/darktable
 0.0001 darktable.plugindir: /nix/store/shcjsxf9awqs1havjissfw44xwicpgs5-darktable-4.8.1/lib/darktable
 0.0002 darktable.localedir: /nix/store/shcjsxf9awqs1havjissfw44xwicpgs5-darktable-4.8.1/share/locale
 0.0002 darktable.configdir: /home/grig/.config/darktable
 0.0002 darktable.cachedir: /home/grig/.cache/darktable
 0.0002 darktable.sharedir: /nix/store/shcjsxf9awqs1havjissfw44xwicpgs5-darktable-4.8.1/share
 0.0002 darktable.tmpdir: /tmp
 0.0002 new_xdg_data_dirs: (null)
 0.0472 [dt_worker_threads] using 6 worker threads
 0.0479 [dt_configure_runtime_performance] found a sufficient 64-bit system with 15926 Mb ram and 12 cores
 0.0479 [dt_get_sysresource_level] switched to 1 as `default'
 0.0479   total mem:       15926MB
 0.0479   mipmap cache:    1990MB
 0.0479   available mem:   7963MB
 0.0479   singlebuff:      124MB
 0.0514 [opencl_init] opencl library 'libOpenCL' found on your system and loaded, preference 'default path'
 0.0515 [opencl_init] 0 platforms detected, error: Unknown OpenCL error
 0.0515 [opencl_init] FINALLY: opencl PREFERENCE=ON is NOT AVAILABLE and NOT ENABLED.
 0.1991 [dt_worker_threads] using 6 worker threads

‘’’

You might need to do darktable -d all, but please post the results in an attached txt or use pastebin.

Here is the log

darktable-log.txt (403.4 KB)

Not gonna lay, I’m pretty mad at nix

I’ve never used nixos. It looks like sql is loading correctly. You might need to provide more details that what you are current sharing.

Nah, i’m going to switch to debian

I’m the package maintainer, so, we can probably figure it out.

Xorg or Wayland? What window manager/desktop?

It was on the default Gnome option, so Wayland i guess (other option was Gnome on Xorg)

To be clear, i’m mad not so much because of darktable, but because of the fact that nix crashed and ruined partitioning somehow, sorry i really frustrated

Ruined partitioning? How?

I’m not sure what exactly broke. But it was bc of the shutdown during nixos rebuild. It was so bad that i can’t do “nixos-enter” or even install new nixos, until I erase disk

But you should be able to go back a generation? If nixos-rebuild doesn’t complete, then no changes are applied to your system

nope, there was something wrong with the boot partition, can’t start any generations

Like its full or something else?

Don’t know what it was, some undefined behavior or something. But switching to debain was hot-headed decision, it’s insane to set everything in system by hand so i back to nix. And the problem with darktable was in wayland, in xorg everything work fine (also other application don’t work properly in wayland). Thank you for your help!