darktable-org / darktable-org/darktable
Crash on first raw denoise preview AI on 5.6.1 (AMD - Manjaro)
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 13.1k
- Forks
- 1.4k
- Avg merge
- 22h 14m
- Merged PRs (30d)
- 198
Description
Is there an existing issue for this?
- I checked and did not find my issue in the already reported ones
Describe the bug
I just configured (using the script, install the distribution-provided dependencies) the AI features.
Selecting neural restore (on lighttable or darkroom), after displaying a warning about the delay for the first-time run, darktable crashes.
Steps to reproduce
- Open Darktable with IA enabled and downloaded.
- Select neural restore, then raw denoise, click to obtain preview
- Wait the first-time run (you can have to click several time "wait" from the WM (gnome) because it thinks DT is stuck, do that
- Darktable closes
Expected behavior
No response
Logfile | Screenshot | Screencast
Log of the crash
❯ darktable -d ai
darktable 5.6.1 [linux]
Copyright (C) 2012-2026 Johannes Hanika and other contributors.
Compile options:
Bit depth -> 64 bit
Exiv2 -> 0.28.8
Lensfun -> 0.3.4
Debug -> DISABLED
SSE2 optimizations -> ENABLED
OpenMP -> ENABLED
OpenCL -> ENABLED
Lua -> ENABLED - API version 9.7.0
Colord -> ENABLED
gPhoto2 -> ENABLED - Camera tethering is available
OSMGpsMap -> ENABLED - Map view is available
GMIC -> ENABLED - Compressed LUTs are supported
GraphicsMagick -> ENABLED
ImageMagick -> DISABLED
libavif -> ENABLED
libheif -> ENABLED
libjxl -> ENABLED
LibRaw -> ENABLED - Version 0.22.0-Release
OpenJPEG -> ENABLED
OpenEXR -> ENABLED
WebP -> ENABLED
AI -> ENABLED
See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.
[dt starting] as : darktable -d ai
0.1070 [ai_models] initialized: models_dir=/home/romano/.local/share/darktable/models
0.1070 [ai_models] initialized: cache_dir=/home/romano/.cache/darktable/ai_downloads
0.1071 [ai_models] using repository: darktable-org/darktable-ai
0.1071 [ai_models] registered model: mask sam2.1 hiera small (mask-object-sam21-small)
0.1071 [ai_models] registered model: mask segnext vitb-sax2 hq (mask-object-segnext-b2hq)
0.1071 [ai_models] registered model: denoise nind (denoise-nind)
0.1071 [ai_models] registered model: raw denoise nind (rawdenoise-nind)
0.1071 [ai_models] registered model: upscale realplksr (upscale-realplksr)
0.1071 [ai_models] registry loaded: 5 models from /usr/share/darktable/ai_models.json
1.4858 [darktable_ai] dt_ai_env_init start.
1.4859 [darktable_ai] discovered: mask sam2.1 hiera small (mask-object-sam21-small, backend=onnx)
1.4859 [darktable_ai] discovered: denoise nind (denoise-nind, backend=onnx)
1.4860 [darktable_ai] discovered: raw denoise nind (rawdenoise-nind, backend=onnx)
1.4860 [darktable_ai] discovered: upscale realplksr (upscale-realplksr, backend=onnx)
21.9754 [neural_restore] raw preview: imgid=7199 bayer patch=(0.500,0.500) widget=267x200 filters=0x94949494
21.9755 [restore] 'model_bayer': file=model_bayer.onnx input_kind=bayer_v1
21.9764 [darktable_ai] loaded ONNX Runtime 1.27.1 from '/home/romano/.local/lib/onnxruntime-migraphx/libonnxruntime.so.1.27.1'
21.9764 [darktable_ai] execution provider: auto
22.0036 [darktable_ai] MIOpen cache: /home/romano/.cache/darktable/ai_v1_migraphx_default_ort1271/_miopen
22.0037 [darktable_ai] MIGraphX cache: /home/romano/.cache/darktable/ai_v1_migraphx_default_ort1271/_migraphx
22.0164 [darktable_ai] attempting to enable NVIDIA CUDA...
22.0168 [darktable_ai] NVIDIA CUDA provider not found.
22.0168 [darktable_ai] attempting to enable AMD MIGraphX...
22.0186 [darktable_ai] ROCm: 1 HIP device(s) detected
22.2310 [darktable_ai] AMD MIGraphX enabled successfully.
22.2310 [darktable_ai] provider auto -> MIGraphX for rawdenoise-nind
22.2310 [darktable_ai] loading: /home/romano/.local/share/darktable/models/rawdenoise-nind/model_bayer.onnx
22.2310 [darktable_ai] attempting to enable AMD MIGraphX...
22.2548 [darktable_ai] AMD MIGraphX enabled successfully.
23.0997 [onnx_runtime] Model Compile: Begin (migraphx_execution_provider.cc:1270 compile_program)
rocBLAS error: Cannot read /opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary.dat: No such file or directory for GPU arch : gfx90c
List of available TensileLibrary Files :
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1010.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1012.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1030.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1031.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1035.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1036.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1100.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1101.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1102.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1103.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1150.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1151.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1152.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1153.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1200.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx1201.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx900.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx906.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx908.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx90a.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx942.dat"
"/opt/rocm/lib/../lib/migraphx/lib/../lib/../../rocblas/library/TensileLibrary_lazy_gfx950.dat"
[1] 437251 abort (core dumped) darktable -d ai
Commit
No response
Where did you obtain darktable from?
distro packaging
darktable version
darktable 5.6.1 [linux]
What OS are you using?
Linux
What is the version of your OS?
Linux ramoth 6.18.49-1-MANJARO up-todate
Describe your system
❯ inxi -v
CPU: 8-core AMD Ryzen 9 5900HX with Radeon Graphics (-MT MCP-)
speed/min/max: 3672/423/4683 MHz Kernel: 6.18.49-1-MANJARO x86_64 Up: 17h 35m
Mem: 9.48/30.77 GiB (30.8%) Storage: 3.64 TiB (51.6% used) Procs: 428
Shell: Zsh inxi: 3.3.41
❯ inxi -vG
Graphics:
Device-1: Advanced Micro Devices [AMD/ATI] Cezanne [Radeon Vega Series /
Radeon Mobile Series] driver: amdgpu v: kernel
Device-2: Creative Live! Cam Sync 1080p V2 driver: snd-usb-audio,uvcvideo
type: USB
Display: wayland server: X.org v: 1.21.1.24 with: Xwayland v: 24.1.13
compositor: gnome-shell v: 50.4 driver: X: loaded: amdgpu
unloaded: modesetting,radeon dri: radeonsi gpu: amdgpu resolution:
1: 2560x1440~60Hz 2: 1920x1080~60Hz
API: EGL v: 1.5 drivers: radeonsi,swrast
platforms: gbm,wayland,x11,surfaceless,device
API: OpenGL v: 4.6 vendor: amd mesa v: 26.2.2-arch1.1 renderer: AMD
Radeon Graphics (radeonsi renoir ACO DRM 3.64 6.18.49-1-MANJARO)
Info: Tools: api: clinfo, eglinfo, glxinfo x11: xprop,xrandr
Are you using OpenCL GPU in darktable?
Yes
If yes, what is the GPU card and driver?
Advanced Micro Devices [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Mobile Series] driver: amdgpu v: kernel
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the first raw denoise preview with darktable -d ai on the reported Manjaro AMD setup, then inspect the AI initialization and MIGraphX model-compilation path indicated by the log. Focus on the rocBLAS error for gfx90c and the abort after model compilation. Done means the preview no longer crashes on this setup, with the resulting behavior covered by an appropriate regression check if the relevant test entry point is found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- machine-learning, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100