https://bugs.kde.org/show_bug.cgi?id=514140

--- Comment #5 from Jens <[email protected]> ---
Hello,
thank you for the quick triage!

Using an extracted debug session I was able to reproduce this using these
settings:
[x] use hardware accelerated OpenCL
[_] use OpenCL for AI models  (<- deactivated)

Even if this is checked, Digikam should not crash if it doesn't work, if only
because users might not be able to reach the settings again after setting it
(in my case, Digikam crashes within 20 seconds of startup if this is checked
and the openCL libraries are installed). Possibly because I have automatic
faces rescan enabled which then tries to use OpenCL.

This does not happen if I uncheck the first checkbox above.

This is the first crash:
```
$ ./AppRun debug 
-- digiKam Linux AppImage Bundle
-- Use 'help' as CLI argument to know all available options for digiKam
application.
-- Notes: to integrate this bundle to your desktop, use AppImageLauncher.
--        to enable all debug messages on the console, use 'export
QT_LOGGING_RULES="digikam*=true"'.
--        to extract the bundle contents locally, use option
'--appimage-extract' on the command line.
-- Detected host Linux neon-64-24.04
-- AppImage mounted directory: /home/jens/tmp/squashfs-root
Preloading skipped for libudev.so.0
Preloading             /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0
Preloading skipped for libcrypto.so.1.1
Preloading skipped for libssl.so.1.1
Preloading             /usr/lib/x86_64-linux-gnu/libnss3.so
Preloading             /usr/lib/x86_64-linux-gnu/libnssutil3.so
Preloading             /usr/lib/x86_64-linux-gnu/libsmime3.so
Preloading             /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0
Preloading skipped for libgnutls.so.30
Preloading             /usr/lib/x86_64-linux-gnu/libnettle.so.8
-- Preloading shared libs:
:/usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0:/usr/lib/x86_64-linux-gnu/libnss3.so:/usr/lib/x86_64-linux-gnu/libnssutil3.so:/usr/lib/x86_64-linux-gnu/libsmime3.so:/usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0:/usr/lib/x86_64-linux-gnu/libnettle.so.8
Starting delayed digiKam for remote debugging...
Use 'bt' command on debugger prompt to get a crash backtrace.
Use 'q' command to quit debugger session.
unknown: Could not find the Qt platform plugin "wayland" in ""
unknown: QSvgHandler: Image filename is empty
unknown: QSvgHandler: Image filename is empty
MESA-LOADER: failed to open radeonsi: ././/lib/dri/radeonsi_dri.so: Kann die
Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden (search
paths ././/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:././/lib/dri, suffix _dri)
MESA-LOADER: failed to open zink: ././/lib/dri/zink_dri.so: Kann die
Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden (search
paths ././/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:././/lib/dri, suffix _dri)
MESA-LOADER: failed to open kms_swrast: ././/lib/dri/kms_swrast_dri.so: Kann
die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
(search paths ././/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:././/lib/dri,
suffix _dri)
MESA-LOADER: failed to open swrast: ././/lib/dri/swrast_dri.so: Kann die
Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden (search
paths ././/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:././/lib/dri, suffix _dri)
unknown: Using Qt multimedia with FFmpeg version 8.0.1 nonfree and
unredistributable
unknown: Unhandled container to remove :  Digikam::DigikamApp
Error on line 2762 (ocl.cpp): svmCapabilities is empty
OpenCL program build log: imgproc/resize
Status -11: CL_BUILD_PROGRAM_FAILURE
-D INTER_LINEAR -D SRC_DEPTH=0 -D T=uchar3 -D T1=uchar -D WT=int3 -D
CONVERT_TO_WT=convert_int3 -D CONVERT_TO_DT=convert_uchar3_sat -D CN=3 -D
INTER_RESIZE_COEF_BITS=11 -D AMD_DEVICE
In file included from <built-in>:1:
/usr/include/clc/clc.h:19:10: fatal error: 'clc/clcfunc.h' file not found

terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.12.0)
/mnt/data/b/master/ext_opencv/ext_opencv-prefix/src/ext_opencv/modules/core/src/ocl.cpp:5764:
error: (-215:Assertion failed) u->origdata == data && "Details:
https://github.com/opencv/opencv/issues/6293"; in function 'deallocate_'

./AppRun: Zeile 266: 22915 Abgebrochen             (Speicherabzug geschrieben)
digikam ${@:2}
```

This generated the following gdb output:
(...)
New Thread 0x7a4efa7fc6c0 (LWP 23230)]
[New Thread 0x7a4f461ff6c0 (LWP 23231)]
[Switching to Thread 0x7a4fbdffb6c0 (LWP 23206)]

Thread 193 "FaceDetRecoextr" hit Catchpoint 1.7 (exception thrown),
0x00007a5131e59d60 in __cxa_throw@plt () from
/home/jens/tmp/squashfs-root/usr/lib/libopencv_core.so.412
A debugging session is active.

        Inferior 1 [process 22915] will be detached.

Trotzdem beenden? (y or n) [answered Y; input not from terminal]
[Inferior 1 (process 22915) detached]

I was not able to type "bt", gdb exited on its own.

The second crash was similar (doing nothing, just starting Digikam and waiting)
but not identical:
 ```
Starting delayed digiKam for remote debugging...
Use 'bt' command on debugger prompt to get a crash backtrace.
Use 'q' command to quit debugger session.
unknown: Could not find the Qt platform plugin "wayland" in ""
unknown: QSvgHandler: Image filename is empty
unknown: QSvgHandler: Image filename is empty
MESA-LOADER: failed to open radeonsi: ././/lib/dri/radeonsi_dri.so: Kann die
Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden (search
paths ././/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:././/lib/dri, suffix _dri)
MESA-LOADER: failed to open zink: ././/lib/dri/zink_dri.so: Kann die
Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden (search
paths ././/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:././/lib/dri, suffix _dri)
MESA-LOADER: failed to open kms_swrast: ././/lib/dri/kms_swrast_dri.so: Kann
die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
(search paths ././/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:././/lib/dri,
suffix _dri)
MESA-LOADER: failed to open swrast: ././/lib/dri/swrast_dri.so: Kann die
Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden (search
paths ././/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:././/lib/dri, suffix _dri)
unknown: Using Qt multimedia with FFmpeg version 8.0.1 nonfree and
unredistributable
unknown: Unhandled container to remove :  Digikam::DigikamApp
unknown: "Tag 'a' is not defined in message
{<__kuit_internal_top__><para>Dieses Stapelverarbeitungswerkzeug kann ein Bild
in...}."
unknown: Cannot open file
'/tmp/.mount_digiKaia700p/usr/share/digikam/marble/svg/worldmap.svg', because:
Die Datei oder das Verzeichnis konnte nicht gefunden werden
unknown: Cannot open file
'/tmp/.mount_digiKaia700p/usr/share/digikam/marble/svg/worldmap.svg', because:
Die Datei oder das Verzeichnis konnte nicht gefunden werden
unknown: Cannot open file
'/tmp/.mount_digiKaia700p/usr/share/digikam/marble/svg/worldmap.svg', because:
Die Datei oder das Verzeichnis konnte nicht gefunden werden
unknown: Cannot open file
'/tmp/.mount_digiKaia700p/usr/share/digikam/marble/svg/marsmap.svg', because:
Die Datei oder das Verzeichnis konnte nicht gefunden werden
unknown: Cannot open file
'/tmp/.mount_digiKaia700p/usr/share/digikam/marble/svg/worldmap.svg', because:
Die Datei oder das Verzeichnis konnte nicht gefunden werden
unknown: Cannot open file
'/tmp/.mount_digiKaia700p/usr/share/digikam/marble/svg/worldmap.svg', because:
Die Datei oder das Verzeichnis konnte nicht gefunden werden
unknown: Cannot open file
'/tmp/.mount_digiKaia700p/usr/share/digikam/marble/svg/worldmap.svg', because:
Die Datei oder das Verzeichnis konnte nicht gefunden werden
unknown: Cannot open file
'/tmp/.mount_digiKaia700p/usr/share/digikam/marble/svg/worldmap.svg', because:
Die Datei oder das Verzeichnis konnte nicht gefunden werden
unknown: Cannot open file
'/tmp/.mount_digiKaia700p/usr/share/digikam/marble/svg/worldmap.svg', because:
Die Datei oder das Verzeichnis konnte nicht gefunden werden
unknown: Cannot open file
'/tmp/.mount_digiKaia700p/usr/share/digikam/marble/svg/worldmap.svg', because:
Die Datei oder das Verzeichnis konnte nicht gefunden werden
unknown: Cannot open file
'/tmp/.mount_digiKaia700p/usr/share/digikam/marble/svg/lunarmap.svg', because:
Die Datei oder das Verzeichnis konnte nicht gefunden werden
unknown: Cannot open file
'/tmp/.mount_digiKaia700p/usr/share/digikam/marble/svg/worldmap.svg', because:
Die Datei oder das Verzeichnis konnte nicht gefunden werden
Error on line 2762 (ocl.cpp): svmCapabilities is empty
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.12.0)
/mnt/data/b/master/ext_opencv/ext_opencv-prefix/src/ext_opencv/modules/core/src/ocl.cpp:5764:
error: (-215:Assertion failed) u->origdata == data && "Details:
https://github.com/opencv/opencv/issues/6293"; in function 'deallocate_'

./AppRun: Zeile 266: 23573 Abgebrochen             (Speicherabzug geschrieben)
digikam ${@:2}
```

gdb output:
[New Thread 0x72463d7fa6c0 (LWP 23958)]
[New Thread 0x72463cff96c0 (LWP 23959)]
[Switching to Thread 0x72481e5ff6c0 (LWP 23925)]

Thread 191 "FaceRecoextract" hit Catchpoint 1.8 (exception thrown),
0x0000724834459d60 in __cxa_throw@plt () from
/home/jens/tmp/squashfs-root/usr/lib/libopencv_core.so.412
A debugging session is active.

        Inferior 1 [process 23573] will be detached.

Trotzdem beenden? (y or n) [answered Y; input not from terminal]
[Inferior 1 (process 23573) detached]

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to