For reasons that I cannot point - and nobody can suggest a reason. Automagic updates were not automagic…
Which resulted in opencl being missing in Darktable - and caused a 5hr effort to troubeshoot/fix and eventually this thread. That was rectified within 10secs of flatpak update -y
.
If you want to figure out why auto-update doesn’t work, perhaps ask in a flatpak-oriented list/site? I’m not surprised nobody here can tell you why that happens…
1 Like
hatsnp
(Nuno Paulino)
October 1, 2023, 5:09pm
23
What I meant was that the distro automatically updated itself without updating flatpak as well.
That shouldn’t really be too much of an issue as flatpak has its own drivers and stack.
If we don’t know anymore than “openCL doesn’t work” then we are not going to figure it out and blaming some random part of the stack isn’t productive.
hatsnp
(Nuno Paulino)
October 1, 2023, 8:00pm
25
This is a well documented issue with flatpak applications that rely on GPU drivers, if there’s a mismatch with the OS driver it may lead to problems. Happens with a lot of electron apps that require hardware acceleration.
There’s multiple examples and threads about this online, and happens regularly to me since I’m on a rolling release and update the drivers often without updating flatpak.
https://linux-blog.anracom.com/2022/11/15/flatpak-and-blender-after-system-updates-update-the-flatpak-nvidia-packet-to-match-your-drivers/
1 Like
I was able to get a stacktrace … but I suppose it doesn’t provide many useful informaton:
/opt/darktable/bin/darktable -d opencl
this is darktable 4.5.0+789~g07e1b26d98
copyright (c) 2009-2023 johannes hanika
https://github.com/darktable-org/darktable/issues/new/choose
compile options:
bit depth is 64 bit
normal build
SSE2 optimizations enabled
OpenMP support enabled
OpenCL support enabled
Lua support enabled, API version 9.2.0
Colord support enabled
gPhoto2 support disabled
G'MIC support enabled (compressed LUTs will be supported)
GraphicsMagick support enabled
ImageMagick support disabled
libavif support enabled
libheif support disabled
libjxl support disabled
OpenJPEG support enabled
OpenEXR support enabled
WebP support enabled
0.5930 [dt_get_sysresource_level] switched to 2 as `large'
0.5930 total mem: 31443MB
0.5930 mipmap cache: 3930MB
0.5930 available mem: 21494MB
0.5930 singlebuff: 1965MB
0.5948 [opencl_init] opencl library 'libOpenCL' found on your system and loaded, preference 'default path'
0.6766 [opencl_init] found 2 platforms
[opencl_init] found 2 devices
[dt_opencl_device_init]
DEVICE: 0: 'RENOIR (renoir, LLVM 15.0.7, DRM 3.49, 6.2.0-33-generic)'
PLATFORM NAME & VENDOR: rusticl, Mesa/X.org
CANONICAL NAME: rusticlrenoir
DRIVER VERSION: 23.2.1 - kisak-mesa PPA
DEVICE VERSION: OpenCL 3.0
DEVICE_TYPE: GPU, dedicated mem
GLOBAL MEM SIZE: 15722 MB
MAX MEM ALLOC: 2048 MB
MAX IMAGE SIZE: 16384 x 16384
MAX WORK GROUP SIZE: 1024
MAX WORK ITEM DIMENSIONS: 3
MAX WORK ITEM SIZES: [ 1024 1024 1024 ]
ASYNC PIXELPIPE: NO
PINNED MEMORY TRANSFER: NO
USE HEADROOM: 600Mb
AVOID ATOMICS: NO
MICRO NAP: 250
ROUNDUP WIDTH & HEIGHT 16x16
CHECK EVENT HANDLES: 128
TILING ADVANTAGE: 0.000
DEFAULT DEVICE: NO
KERNEL BUILD DIRECTORY: /opt/darktable/share/darktable/kernels
KERNEL DIRECTORY: /home/ds/.cache/darktable/cached_v2_kernels_for_rusticlRENOIR_2321kisakmesaPPA
CL COMPILER OPTION: -cl-fast-relaxed-math
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', ../src/gallium/frontends/rusticl/core/program.rs:228:13
stack backtrace:
0: 0x7fd1e9d5363f - <unknown>
1: 0x7fd1e9d683ae - <unknown>
2: 0x7fd1e9d3c8a5 - <unknown>
3: 0x7fd1e9d533f5 - <unknown>
4: 0x7fd1e9d4496f - <unknown>
5: 0x7fd1e9d44628 - <unknown>
6: 0x7fd1e9d44f7b - <unknown>
7: 0x7fd1e9d53951 - <unknown>
8: 0x7fd1e9d5378c - <unknown>
9: 0x7fd1e9d44b22 - <unknown>
10: 0x7fd1e9aaaa73 - <unknown>
11: 0x7fd1e9aaab4d - <unknown>
12: 0x7fd1e9bb4d7e - <unknown>
13: 0x7fd1e9b60358 - <unknown>
14: 0x7fd1e9b95992 - <unknown>
15: 0x7fd1e9b5f0f7 - <unknown>
16: 0x7fd1e9b63a24 - <unknown>
17: 0x7fd1e9b13be4 - <unknown>
18: 0x7fd1e9b13849 - <unknown>
19: 0x7fd20f565ffc - _opencl_build_program
at /home/ds/git/darktable/src/common/opencl.c:2333:35
20: 0x7fd20f565ffc - _opencl_device_init
at /home/ds/git/darktable/src/common/opencl.c:1060:13
21: 0x7fd20f569343 - dt_opencl_init
at /home/ds/git/darktable/src/common/opencl.c:1373:8
22: 0x7fd20f4e0ff5 - _detect_opencl_job_run
at /home/ds/git/darktable/src/common/darktable.c:495:3
23: 0x7fd20f5927ae - _control_job_execute
at /home/ds/git/darktable/src/control/jobs.c:314:17
24: 0x7fd20f593098 - _control_run_job
at /home/ds/git/darktable/src/control/jobs.c:333:5
25: 0x7fd20f593098 - _control_work
at /home/ds/git/darktable/src/control/jobs.c:582:8
26: 0x7fd20f094b43 - start_thread
at ./nptl/./nptl/pthread_create.c:442:8
27: 0x7fd20f126a00 - clone3
at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
28: 0x0 - <unknown>
fatal runtime error: failed to initiate panic, error 5
Abgebrochen (Speicherabzug geschrieben)