Article View: linux.debian.bugs.dist
Article #6977Bug#1156000: trixie-pu: package sight/25.0.0-1+deb13u1
From: Flavien Bridault
Date: Tue, 01 Dec 2026 09:10
Date: Tue, 01 Dec 2026 09:10
281 lines
13362 bytes
13362 bytes
This is a multi-part MIME message sent by reportbug.
--===============8351978981942906752==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: sight@packages.debian.org, fbridault@ircad.fr
Control: affects -1 + src:sight
User: release.debian.org@packages.debian.org
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
--===============8351978981942906752==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="sight-trixie.debdiff"
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 <fbridault@ircad.fr> 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 <fbridault@ircad.fr>
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 <fbridault@ircad.fr>
+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 <fbridault@ircad.fr>
+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();
--===============8351978981942906752==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="sight-trixie.debdiff"
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 <fbridault@ircad.fr> 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 <fbridault@ircad.fr>
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 <fbridault@ircad.fr>
+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 <fbridault@ircad.fr>
+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();
--===============8351978981942906752==--
Technical Details
Message-ID:
<O5s25-fiDr-15@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Flavien Bridault <fbridault@ircad.fr> Newsgroups: linux.debian.bugs.dist,linux.debian.devel.release Subject: Bug#1156000: trixie-pu: package sight/25.0.0-1+deb13u1 Date: Tue, 01 Dec 2026 10:10:02 +0100 Message-ID: <O5s25-fiDr-15@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Tue Dec 1 09:03:10 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.651 Reply-To: Flavien Bridault <fbridault@ircad.fr>, 1156000@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: sight@packages.debian.org, fbridault@ircad.fr, debian-release@lists.debian.org X-Debian-Pr-Message: report 1156000 X-Debian-Pr-Package: release.debian.org X-Debian-Pr-Keywords: trixie Content-Type: multipart/mixed; boundary="===============8351978981942906752==" MIME-Version: 1.0 X-Mailer: reportbug 13.2.0+nmu1 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006243 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 281 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 01 Dec 2026 10:00:47 +0100 X-Original-Message-ID: <179611564794.4191.6014319949822315039.reportbug@debian.ircad.fr>