Package: release.debian.org Severity: normal Tags: trixie X-Debbugs-Cc: [email protected], [email protected] Control: affects -1 + src:sight User: [email protected] Usertags: pu
[ Reason ] I would like to fix a startup crash affecting SightViewer in Wayland sessions on Trixie, related to Debian bug #1108183. The rendering integration uses Ogre with GLX and requires Qt's xcb platform backend. However, Qt may select its native Wayland backend when running in a Wayland session, resulting in a crash at startup. I reproduced this with the official Trixie package under GNOME/Wayland. Launching the application with QT_QPA_PLATFORM=xcb allows it to start successfully through XWayland. This issue has always been there under Wayland, and it became serious when Wayland became the default in Trixie. In the same bug report, users reported another issue with older GPUs that only support OpenGL 4.2. The software crashes on such hardware. [ Impact ] SightViewer cannot start in affected Wayland sessions and hardware, including the GNOME configuration tested on Trixie. Users can work around the issue by setting QT_QPA_PLATFORM=xcb manually, but launching the application normally does not work. The required OpenGL version was downgraded but this does not affect rendering, no feature above 4.2 was used anyway. [ Tests ] Manual testing on a Trixie VM confirmed that: The official package crashes at startup under GNOME/Wayland. The same package starts successfully with QT_QPA_PLATFORM=xcb. Testing of the proposed package: - GNOME/Wayland, without manually setting QT_QPA_PLATFORM: the application should start normally and display its graphical interface. - MATE/X11 session: the application should start normally and display its graphical interface. [ Risks ] The change is small and limited to selecting the Qt platform backend required by the existing GLX rendering integration. Under Wayland, the application runs through XWayland. Under X11, xcb is already the expected backend. No rendering engine upgrade, dependency transition or new upstream version is included. The main potential impact is on Qt platform selection at application startup. [ Checklist ] [x] all changes are documented in the d/changelog [x] I reviewed all changes and I approve them [x] attach debdiff against the package in (old)stable [x] the issue is verified as fixed in unstable [ Changes ] Backport the startup fix to default to Qt's xcb platform backend, ensuring compatibility with Ogre's GLX rendering integration. Document the change in debian/changelog and update the package version to 25.0.0-1+deb13u1, targeting trixie. The update retains upstream version 25.0.0 and does not include the unrelated changes from newer Sight releases. [ Other info ] The fix has already been included in the unstable upload, which has since migrated to testing. The proposed stable update is maintained on the debian/trixie branch: https://salsa.debian.org/med-team/sight/-/tree/debian/trixie This is my first stable update request. I do not have upload rights and will need a sponsor for the upload once the update is approved. Thank you for reviewing this request. Kind regards, Flavien Bridault
diff -Nru sight-25.0.0/debian/changelog sight-25.0.0/debian/changelog --- sight-25.0.0/debian/changelog 2025-03-01 09:45:07.000000000 +0100 +++ sight-25.0.0/debian/changelog 2026-10-28 10:56:16.000000000 +0100 @@ -1,3 +1,10 @@ +sight (25.0.0-1+deb13u1) UNRELEASED; urgency=medium + + * d/p: Add patch for Wayland compatibility. + Add patch to be compatible with older GPUs. Closes: #1108183 + + -- Flavien BRIDAULT <[email protected]> Wed, 28 Oct 2026 10:56:16 +0100 + sight (25.0.0-1) unstable; urgency=medium * New upstream version diff -Nru sight-25.0.0/debian/patches/fix-multi-arch-folder-detection.patch sight-25.0.0/debian/patches/fix-multi-arch-folder-detection.patch --- sight-25.0.0/debian/patches/fix-multi-arch-folder-detection.patch 2024-08-21 13:19:20.000000000 +0200 +++ sight-25.0.0/debian/patches/fix-multi-arch-folder-detection.patch 2026-10-28 10:56:16.000000000 +0100 @@ -1,4 +1,6 @@ +Author: Flavien Bridault <[email protected]> Description: Fix multi arch folder detection +Applied-Upstream: https://git.ircad.fr/sight/sight/-/merge_requests/1424 --- sight.orig/libs/__/core/runtime/detail/runtime.cpp +++ sight/libs/__/core/runtime/detail/runtime.cpp @@ -60,26 +60,25 @@ diff -Nru sight-25.0.0/debian/patches/mesa-compatibility.patch sight-25.0.0/debian/patches/mesa-compatibility.patch --- sight-25.0.0/debian/patches/mesa-compatibility.patch 1970-01-01 01:00:00.000000000 +0100 +++ sight-25.0.0/debian/patches/mesa-compatibility.patch 2026-10-28 10:56:16.000000000 +0100 @@ -0,0 +1,19 @@ +Author: Flavien Bridault <[email protected]> +Description: Downgrade GLSL version from 450 to 420 for compatibility with older GPU. 450 was not required. +Applied-Upstream: https://git.ircad.fr/sight/sight/-/merge_requests/1424 +--- sight.orig/libs/viz/scene3d/rc/Media/glsl/common/Main_FP.glsl ++++ sight/libs/viz/scene3d/rc/Media/glsl/common/Main_FP.glsl +@@ -1,4 +1,4 @@ +-#version 450 ++#version 420 + + #ifdef GLSL_LANG_VALIDATOR + #extension GL_GOOGLE_include_directive : enable +--- sight.orig/libs/viz/scene3d/rc/Media/glsl/common/RenderScene_VP.glsl ++++ sight/libs/viz/scene3d/rc/Media/glsl/common/RenderScene_VP.glsl +@@ -1,4 +1,4 @@ +-#version 450 ++#version 420 + + #ifdef GLSL_LANG_VALIDATOR + #extension GL_GOOGLE_include_directive : enable diff -Nru sight-25.0.0/debian/patches/series sight-25.0.0/debian/patches/series --- sight-25.0.0/debian/patches/series 2025-03-01 09:45:07.000000000 +0100 +++ sight-25.0.0/debian/patches/series 2026-10-28 10:56:16.000000000 +0100 @@ -1,3 +1,5 @@ +mesa-compatibility.patch +use-qt-qpa-plaform-xcb.patch fix-multi-arch-folder-detection.patch lintian_warnings.patch fix-itk-build.patch diff -Nru sight-25.0.0/debian/patches/use-qt-qpa-plaform-xcb.patch sight-25.0.0/debian/patches/use-qt-qpa-plaform-xcb.patch --- sight-25.0.0/debian/patches/use-qt-qpa-plaform-xcb.patch 1970-01-01 01:00:00.000000000 +0100 +++ sight-25.0.0/debian/patches/use-qt-qpa-plaform-xcb.patch 2026-10-28 10:56:16.000000000 +0100 @@ -0,0 +1,20 @@ +Author: Flavien Bridault <[email protected]> +Description: Fix launch of sightviewer on Wayland using XWayland. +Applied-Upstream: https://git.ircad.fr/sight/sight/-/merge_requests/1424 +--- sight.orig/modules/ui/qt/plugin.cpp ++++ sight/modules/ui/qt/plugin.cpp +@@ -102,6 +102,14 @@ + + void plugin::start() + { ++#ifdef __linux__ ++ // Ogre is built with GLX, so use X11, through XWayland in a Wayland session. ++ // cspell:ignore xcb ++ if(!qEnvironmentVariableIsSet("QT_QPA_PLATFORM")) ++ { ++ qputenv("QT_QPA_PLATFORM", "xcb"); ++ } ++#endif + core::runtime::profile::sptr profile = core::runtime::get_current_profile(); + SIGHT_ASSERT("Profile is not initialized", profile); + int& argc = profile->get_raw_arg_count();
diff -Nru sight-25.0.0/debian/changelog sight-25.0.0/debian/changelog --- sight-25.0.0/debian/changelog 2025-03-01 09:45:07.000000000 +0100 +++ sight-25.0.0/debian/changelog 2026-10-28 10:56:16.000000000 +0100 @@ -1,3 +1,10 @@ +sight (25.0.0-1+deb13u1) UNRELEASED; urgency=medium + + * d/p: Add patch for Wayland compatibility. + Add patch to be compatible with older GPUs. Closes: #1108183 + + -- Flavien BRIDAULT <[email protected]> Wed, 28 Oct 2026 10:56:16 +0100 + sight (25.0.0-1) unstable; urgency=medium * New upstream version diff -Nru sight-25.0.0/debian/patches/fix-multi-arch-folder-detection.patch sight-25.0.0/debian/patches/fix-multi-arch-folder-detection.patch --- sight-25.0.0/debian/patches/fix-multi-arch-folder-detection.patch 2024-08-21 13:19:20.000000000 +0200 +++ sight-25.0.0/debian/patches/fix-multi-arch-folder-detection.patch 2026-10-28 10:56:16.000000000 +0100 @@ -1,4 +1,6 @@ +Author: Flavien Bridault <[email protected]> Description: Fix multi arch folder detection +Applied-Upstream: https://git.ircad.fr/sight/sight/-/merge_requests/1424 --- sight.orig/libs/__/core/runtime/detail/runtime.cpp +++ sight/libs/__/core/runtime/detail/runtime.cpp @@ -60,26 +60,25 @@ diff -Nru sight-25.0.0/debian/patches/mesa-compatibility.patch sight-25.0.0/debian/patches/mesa-compatibility.patch --- sight-25.0.0/debian/patches/mesa-compatibility.patch 1970-01-01 01:00:00.000000000 +0100 +++ sight-25.0.0/debian/patches/mesa-compatibility.patch 2026-10-28 10:56:16.000000000 +0100 @@ -0,0 +1,19 @@ +Author: Flavien Bridault <[email protected]> +Description: Downgrade GLSL version from 450 to 420 for compatibility with older GPU. 450 was not required. +Applied-Upstream: https://git.ircad.fr/sight/sight/-/merge_requests/1424 +--- sight.orig/libs/viz/scene3d/rc/Media/glsl/common/Main_FP.glsl ++++ sight/libs/viz/scene3d/rc/Media/glsl/common/Main_FP.glsl +@@ -1,4 +1,4 @@ +-#version 450 ++#version 420 + + #ifdef GLSL_LANG_VALIDATOR + #extension GL_GOOGLE_include_directive : enable +--- sight.orig/libs/viz/scene3d/rc/Media/glsl/common/RenderScene_VP.glsl ++++ sight/libs/viz/scene3d/rc/Media/glsl/common/RenderScene_VP.glsl +@@ -1,4 +1,4 @@ +-#version 450 ++#version 420 + + #ifdef GLSL_LANG_VALIDATOR + #extension GL_GOOGLE_include_directive : enable diff -Nru sight-25.0.0/debian/patches/series sight-25.0.0/debian/patches/series --- sight-25.0.0/debian/patches/series 2025-03-01 09:45:07.000000000 +0100 +++ sight-25.0.0/debian/patches/series 2026-10-28 10:56:16.000000000 +0100 @@ -1,3 +1,5 @@ +mesa-compatibility.patch +use-qt-qpa-plaform-xcb.patch fix-multi-arch-folder-detection.patch lintian_warnings.patch fix-itk-build.patch diff -Nru sight-25.0.0/debian/patches/use-qt-qpa-plaform-xcb.patch sight-25.0.0/debian/patches/use-qt-qpa-plaform-xcb.patch --- sight-25.0.0/debian/patches/use-qt-qpa-plaform-xcb.patch 1970-01-01 01:00:00.000000000 +0100 +++ sight-25.0.0/debian/patches/use-qt-qpa-plaform-xcb.patch 2026-10-28 10:56:16.000000000 +0100 @@ -0,0 +1,20 @@ +Author: Flavien Bridault <[email protected]> +Description: Fix launch of sightviewer on Wayland using XWayland. +Applied-Upstream: https://git.ircad.fr/sight/sight/-/merge_requests/1424 +--- sight.orig/modules/ui/qt/plugin.cpp ++++ sight/modules/ui/qt/plugin.cpp +@@ -102,6 +102,14 @@ + + void plugin::start() + { ++#ifdef __linux__ ++ // Ogre is built with GLX, so use X11, through XWayland in a Wayland session. ++ // cspell:ignore xcb ++ if(!qEnvironmentVariableIsSet("QT_QPA_PLATFORM")) ++ { ++ qputenv("QT_QPA_PLATFORM", "xcb"); ++ } ++#endif + core::runtime::profile::sptr profile = core::runtime::get_current_profile(); + SIGHT_ASSERT("Profile is not initialized", profile); + int& argc = profile->get_raw_arg_count();

