Skip to content

Fails to start on a system with hybrid graphics

Description:

Digikam fails to start after upgrading qt6 from 6.8.3 to 6.9.0.

This happens on a system with hybrid AMD graphics (integrated GPU and dedicated GPU), but it was working fine before this qt6 upgrade.

Additional info:

  • package version(s):
digikam 8.6.0-2
kdsoap-qt6 2.2.0-1
libqaccessibilityclient-qt6 0.6.0-1
phonon-qt6 4.12.0-4
phonon-qt6-vlc 0.12.0-2
python-pyqt6 6.9.0-1
python-pyqt6-sip 13.10.0-1
python-pyqt6-webengine 6.9.0-1
qt6-5compat 6.9.0-1
qt6-base 6.9.0-1
qt6-connectivity 6.9.0-1
qt6-declarative 6.9.0-2
qt6-doc 6.9.0-1
qt6-imageformats 6.9.0-1
qt6-multimedia 6.9.0-1
qt6-multimedia-ffmpeg 6.9.0-1
qt6-multimedia-gstreamer 6.9.0-1
qt6-networkauth 6.9.0-1
qt6-positioning 6.9.0-1
qt6-quick3d 6.9.0-1
qt6-quicktimeline 6.9.0-1
qt6-scxml 6.9.0-1
qt6-sensors 6.9.0-1
qt6-shadertools 6.9.0-1
qt6-speech 6.9.0-1
qt6-svg 6.9.0-1
qt6-tools 6.9.0-1
qt6-translations 6.9.0-1
qt6-virtualkeyboard 6.9.0-1
qt6-wayland 6.9.0-1
qt6-webchannel 6.9.0-1
qt6-webengine 6.9.0-3
qt6-websockets 6.9.0-1
qt6-webview 6.9.0-1
  • config files: I'm not including config files as the bug occurs on a fresh install with standard configuration.

  • log files:

This is the output when started on a console:

qt.multimedia.ffmpeg: Using Qt multimedia with FFmpeg version n7.1 GPL version 3 or later
[6:81:0409/150410.077316:ERROR:angle_platform_impl.cc(44)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003003
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003003
[6:81:0409/150410.077330:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[6:81:0409/150410.077335:ERROR:native_pixmap_egl_binding.cc(118)] Unable to initialize binding from pixmap
[6:81:0409/150410.077346:ERROR:ozone_image_backing.cc(309)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[6:81:0409/150410.077349:ERROR:shared_image_manager.cc(255)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[6:81:0409/150410.077351:ERROR:native_skia_output_device.cpp(261)] ProduceSkia() failed.
[6:81:0409/150410.077431:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
[6:81:0409/150410.077478:ERROR:raster_decoder.cc(1146)]   RasterDecoderImpl: Context lost during MakeCurrent.
kf.xmlgui: Unhandled container to remove :  Digikam::DigikamApp
[6:81:0409/150410.163949:ERROR:shared_context_state.cc(885)] Failed to make current since context is marked as lost
[6:81:0409/150410.163963:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.

Output of eglinfo -B:

GBM platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: AMD
OpenGL core profile renderer: AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL core profile version: 4.6 (Core Profile) Mesa 25.0.3-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: AMD
OpenGL compatibility profile renderer: AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 25.0.3-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: AMD
OpenGL ES profile renderer: AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 25.0.3-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Wayland platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: AMD
OpenGL core profile renderer: AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL core profile version: 4.6 (Core Profile) Mesa 25.0.3-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: AMD
OpenGL compatibility profile renderer: AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 25.0.3-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: AMD
OpenGL ES profile renderer: AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 25.0.3-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

X11 platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: AMD
OpenGL core profile renderer: AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL core profile version: 4.6 (Core Profile) Mesa 25.0.3-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: AMD
OpenGL compatibility profile renderer: AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 25.0.3-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: AMD
OpenGL ES profile renderer: AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 25.0.3-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Surfaceless platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: AMD
OpenGL core profile renderer: AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL core profile version: 4.6 (Core Profile) Mesa 25.0.3-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: AMD
OpenGL compatibility profile renderer: AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 25.0.3-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: AMD
OpenGL ES profile renderer: AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 25.0.3-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device platform:
Device #0:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: AMD
OpenGL core profile renderer: AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL core profile version: 4.6 (Core Profile) Mesa 25.0.3-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: AMD
OpenGL compatibility profile renderer: AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 25.0.3-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: AMD
OpenGL ES profile renderer: AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 25.0.3-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #1:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: AMD
OpenGL core profile renderer: AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL core profile version: 4.6 (Core Profile) Mesa 25.0.3-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: AMD
OpenGL compatibility profile renderer: AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 25.0.3-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: AMD
OpenGL ES profile renderer: AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 19.1.7, DRM 3.61, 6.14.1-arch1-1)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 25.0.3-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #2:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 19.1.7, 256 bits)
OpenGL core profile version: 4.5 (Core Profile) Mesa 25.0.3-arch1.1
OpenGL core profile shading language version: 4.50
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 19.1.7, 256 bits)
OpenGL compatibility profile version: 4.5 (Compatibility Profile) Mesa 25.0.3-arch1.1
OpenGL compatibility profile shading language version: 4.50
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 19.1.7, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 25.0.3-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Steps to reproduce:

  1. pacman -S digikam
  2. Run digikam.
  3. Splash screen appears, but force closes and main window never appears. Last message in the splash screen is "Checking ICC repository".

A core dump is created.

Mitigation

Digikam starts correctly when setting DRI_PRIME=1 environment.

Setting QTWEBENGINE_CHROMIUM_FLAGS="--disable-gpu" environment also works (thanks to this comment on BBS). This should narrow down the issue to that specific subsystem.

This is the relevant part of the console log with the mitigations enabled:

qt.multimedia.ffmpeg: Using Qt multimedia with FFmpeg version n7.1 GPL version 3 or later
kf.xmlgui: Unhandled container to remove :  Digikam::DigikamApp
kf.notifications: No event config could be found for event id "DbCleaner" under notifyrc file for app "digikam"
kf.notifications: No event config could be found for event id "ThumbsGenerator" under notifyrc file for app "digikam"
qt.qpa.wayland: Creating a popup with a parent, QWidgetWindow(0x642466a55150, name="DigikamWindow") which does not match the current topmost grabbing popup, QWidgetWindow(0x64246c0627e0, name="QMenuClassWindow") With some shell surface protocols, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly. Please fix the transient parent of the popup.
Edited by Fidel Ramos
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information