Bug#1053917: libqt5gui5: Segfaults when starting QT application

2023-11-24 Thread Lisandro Damián Nicanor Pérez Meyer
On Fri, 24 Nov 2023 at 09:17, Lisandro Damián Nicanor Pérez Meyer
 wrote:

> Mmm, Gnome uses Wayland nowadays, and the segfault comes form libQt5XcbQpa,
> which is the lib that handles X stuff. It only happens before Gnome
> completely started,so I wonder if we have some race condition on which Qt 
> apps try to use

> X too soon in the process.
>
>
> But let's try this. Try starting your app on log by prepending
> QT_QPA_PLATFORM
>
>
> QT_QPA_PLATFORM=wayland /usr/bin/yourapp
>
>
> Or any other way that ensures that QT_QPA_PLATFORM=wayland is set as
> environment variable before starting the app.

Or try finding a way to start the apps once all the relevant Wayland
stuff is there, as clearly something is guiding Qt apps to use X
instead.

--
Lisandro Damián Nicanor Pérez Meyer
https://perezmeyer.com.ar/



Bug#1053917: libqt5gui5: Segfaults when starting QT application

2023-11-24 Thread Lisandro Damián Nicanor Pérez Meyer

tag 1053917 moreinfo

thanks


Hi!


On 14/10/23 05:55, Patrik Svestka wrote:

Package: libqt5gui5
Version: 5.15.8+dfsg-11
Severity: important
X-Debbugs-Cc: patrik.sves...@gmail.com

Dear Maintainer,

* What led up to the situation?
Having CopyQ and KeePassXC QT applications autostarted

* What exactly did you do (or not do) that was effective (or
  ineffective)?
No interaction needed.  Just applications fail to autostart with the 
libQt5XcbQpa.so.5.15.8 segfaulting.  If both the applications are started 
**after** Gnome starts they start normally.



Mmm, Gnome uses Wayland nowadays, and the segfault comes form libQt5XcbQpa,

which is the lib that handles X stuff. It only happens before Gnome 
completely started,


 so I wonder if we have some race condition on which Qt apps try to use 
X too soon


in the process.


But let's try this. Try starting your app on log by prepending 
QT_QPA_PLATFORM



QT_QPA_PLATFORM=wayland /usr/bin/yourapp


Or any other way that ensures that QT_QPA_PLATFORM=wayland is set as 
environment variable before starting the app.




Bug#1053917: libqt5gui5: Segfaults when starting QT application

2023-10-14 Thread Patrik Svestka
Package: libqt5gui5
Version: 5.15.8+dfsg-11
Severity: important
X-Debbugs-Cc: patrik.sves...@gmail.com

Dear Maintainer,

   * What led up to the situation?
   Having CopyQ and KeePassXC QT applications autostarted

   * What exactly did you do (or not do) that was effective (or
 ineffective)?
   No interaction needed.  Just applications fail to autostart with the 
libQt5XcbQpa.so.5.15.8 segfaulting.  If both the applications are started 
**after** Gnome starts they start normally.

   * What was the outcome of this action?
[   53.703793] copyq[3458]: segfault at 10 ip 7fb8614f5ded sp 
7ffdca20ecb0 error 4 in libQt5XcbQpa.so.5.15.8[7fb8614c7000+ca000] likely 
on CPU 7 (core 3, socket 0)
[   53.703806] Code: 89 d4 55 53 48 89 cb 48 83 ec 10 48 8b 79 20 48 8b 2d 2f 
40 10 00 64 48 8b 04 25 28 00 00 00 48 89 44 24 08 31 c0 48 89 69 20 <8b> 47 10 
85 c0 74 7c 83 f8 ff 74 0a 48 8d 57 10 f0 83 2a 01 74 6d
[   53.817610] keepassxc[3387]: segfault at 11 ip 7fb6160f5ded sp 
7ffc13bd08b0 error 4 in libQt5XcbQpa.so.5.15.8[7fb6160c7000+ca000] likely 
on CPU 4 (core 0, socket 0)
[   53.817625] Code: 89 d4 55 53 48 89 cb 48 83 ec 10 48 8b 79 20 48 8b 2d 2f 
40 10 00 64 48 8b 04 25 28 00 00 00 48 89 44 24 08 31 c0 48 89 69 20 <8b> 47 10 
85 c0 74 7c 83 f8 ff 74 0a 48 8d 57 10 f0 83 2a 01 74 6d

   * What outcome did you expect instead?
   Be autostarted as other GTK applications.


-- System Information:
Debian Release: 12.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-13-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libqt5gui5 depends on:
ii  fontconfig2.14.1-4
ii  libc6 2.36-9+deb12u3
ii  libdrm2   2.4.114-1+b1
ii  libegl1   1.6.0-1
ii  libfontconfig12.14.1-4
ii  libfreetype6  2.12.1+dfsg-5
ii  libgbm1   22.3.6-1+deb12u1
ii  libgcc-s1 12.2.0-14
ii  libgl11.6.0-1
ii  libglib2.0-0  2.74.6-2
ii  libharfbuzz0b 6.0.0+dfsg-3
ii  libice6   2:1.0.10-1
ii  libinput101.22.1-1
ii  libjpeg62-turbo   1:2.1.5-2
ii  libmd4c0  0.4.8-1
ii  libmtdev1 1.1.6-1
ii  libpng16-16   1.6.39-2
ii  libqt5core5a [qtbase-abi-5-15-8]  5.15.8+dfsg-11
ii  libqt5dbus5   5.15.8+dfsg-11
ii  libqt5network55.15.8+dfsg-11
ii  libsm62:1.2.3-1
ii  libstdc++612.2.0-14
ii  libudev1  252.17-1~deb12u1
ii  libx11-6  2:1.8.4-2+deb12u2
ii  libx11-xcb1   2:1.8.4-2+deb12u2
ii  libxcb-glx0   1.15-1
ii  libxcb-icccm4 0.4.1-1.1
ii  libxcb-image0 0.4.0-2
ii  libxcb-keysyms1   0.4.0-1+b2
ii  libxcb-randr0 1.15-1
ii  libxcb-render-util0   0.3.9-1+b1
ii  libxcb-render01.15-1
ii  libxcb-shape0 1.15-1
ii  libxcb-shm0   1.15-1
ii  libxcb-sync1  1.15-1
ii  libxcb-xfixes01.15-1
ii  libxcb-xinerama0  1.15-1
ii  libxcb-xinput01.15-1
ii  libxcb-xkb1   1.15-1
ii  libxcb1   1.15-1
ii  libxkbcommon-x11-01.5.0-1
ii  libxkbcommon0 1.5.0-1
ii  libxrender1   1:0.9.10-1.1
ii  zlib1g1:1.2.13.dfsg-1

Versions of packages libqt5gui5 recommends:
ii  libqt5svg5 5.15.8-3
ii  qt5-gtk-platformtheme  5.15.8+dfsg-11
ii  qtwayland5 5.15.8-2

Versions of packages libqt5gui5 suggests:
pn  qgnomeplatform-qt5 
ii  qt5-image-formats-plugins  5.15.8-2

-- no debconf information