Some QT applications (okular, qucs-s) segfaulting under Wayland + GNOME 46

Since the update to Gnome 46, several QT applications (well, two for now) are not working anymore: when the mouse cursor hovers on the three “buttons” on the right side of the window top bar, they segfault. Examples:

okular, from the standard libraries (official repository/extra) https://forum.manjaro.org/t/stable-update-2024-05-13-kernels-plasma-6-gnome-46-lxqt-2-0-nvidia-pacman/161404/599

May 15 20:58:41 ramoth kernel: okular[37659]: segfault at 6 ip 0000000000000006 sp 00007ffe38cd4258 error 14 in okular[558c7940b00>
May 15 20:58:41 ramoth kernel: Code: Unable to access opcode bytes at 0xffffffffffffffdc.
May 15 20:58:41 ramoth systemd[1]: Started Process Core Dump (PID 37754/UID 0).
May 15 20:58:41 ramoth systemd-coredump[37755]: [🡕] Process 37659 (okular) of user 1153 dumped core.
                                                
                                                Stack trace of thread 37659:
                                                #0  0x0000000000000006 n/a (n/a + 0x0)
                                                #1  0x6b73bcc13efd8900 n/a (n/a + 0x0)
                                                ELF object binary architecture: AMD x86-64
May 15 20:58:41 ramoth systemd[1]: systemd-coredump@2-37754-0.service: Deactivated successfully.

I tried to compile it manually from AUR, but I have the same behavior. I also tried to disable all extensions, and the same thing happened. The flatpak version does work.

Now I discovered that the applications qucs-s (compiled from AUR) is doing exactly the same problem:

May 26 18:13:01 ramoth kernel: qucs-s[9620]: segfault at 1 ip 0000000000000001 sp 00007ffcc89e2d68 error 14 in qucs-s[555814126000+6a>
May 26 18:13:01 ramoth kernel: Code: Unable to access opcode bytes at 0xffffffffffffffd7.
May 26 18:13:01 ramoth systemd[1]: Started Process Core Dump (PID 9645/UID 0).
May 26 18:13:01 ramoth systemd-coredump[9646]: [🡕] Process 9620 (qucs-s) of user 1153 dumped core.
                                               
                                               Stack trace of thread 9620:
                                               #0  0x0000000000000001 n/a (n/a + 0x0)
                                               #1  0x5920cf55a9857e00 n/a (n/a + 0x0)
                                               ELF object binary architecture: AMD x86-64
May 26 18:13:01 ramoth systemd[1]: systemd-coredump@4-9645-0.service: Deactivated successfully.

Has anyone some idea on what could be the problem? It’s quite frustrating…

inxi -zv8 output :

Summary
System:
  Kernel: 6.6.30-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-6.6-x86_64
    root=UUID=51a3a5b3-a6d6-456e-bbe3-935c914bd2fe rw rootflags=subvol=@
    apparmor=1 security=apparmor udev.log_priority=3
  Desktop: GNOME v: 46.1 tk: GTK v: 3.24.41 wm: gnome-shell
    tools: gsd-screensaver-proxy dm: GDM v: 46.0 Distro: Manjaro
    base: Arch Linux
Machine:
  Type: Desktop Mobo: N/A model: HX90 serial: <superuser required>
    uuid: <superuser required> UEFI: American Megatrends LLC. v: 5.19
    date: 10/11/2021
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard serial: <filter>
    charge: 55% (should be ignored) rechargeable: yes status: discharging
Memory:
  System RAM: total: 32 GiB available: 30.78 GiB used: 7.21 GiB (23.4%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 32 GiB slots: 2 modules: 2 EC: None
    max-module-size: 16 GiB note: est.
  Device-1: Channel-A DIMM 0 type: DDR4 detail: synchronous unbuffered
    (unregistered) size: 16 GiB speed: 3200 MT/s volts: note: check curr: 1
    min: 1 max: 1 width (bits): data: 64 total: 64 manufacturer: Kingston
    part-no: CBD32D4S2S8MF-16 serial: <filter>
  Device-2: Channel-B DIMM 0 type: DDR4 detail: synchronous unbuffered
    (unregistered) size: 16 GiB speed: 3200 MT/s volts: note: check curr: 1
    min: 1 max: 1 width (bits): data: 64 total: 64 manufacturer: Kingston
    part-no: CBD32D4S2S8MF-16 serial: <filter>
PCI Slots:
  Permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD Ryzen 9 5900HX with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 3 gen: 4 level: v3 note: check built: 2021-22
    process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80) stepping: 0
    microcode: 0xA50000C
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
    L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 734 high: 1678 min/max: 400/4680 scaling:
    driver: amd-pstate-epp governor: powersave cores: 1: 400 2: 1678 3: 400
    4: 1397 5: 400 6: 400 7: 400 8: 400 9: 1396 10: 400 11: 1485 12: 400
    13: 400 14: 400 15: 1397 16: 400 bogomips: 105447
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
    constant_tsc cpb cppc cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
    cqm_occup_llc cr8_legacy cx16 cx8 de debug_swap decodeassists erms
    extapic extd_apicid f16c flushbyasid fma fpu fsgsbase fsrm fxsr fxsr_opt
    ht hw_pstate ibpb ibrs ibs invpcid irperf lahf_lm lbrv lm mba mca mce
    misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl npt
    nrip_save nx ospke osvw overflow_recov pae pat pausefilter pclmulqdq
    pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pku pni
    popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep
    sha_ni skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3
    stibp succor svm svm_lock syscall tce topoext tsc tsc_scale umip
    user_shstk v_spec_ctrl v_vmsave_vmload vaes vgif vmcb_clean vme vmmcall
    vpclmulqdq wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Vulnerable: Safe RET, no microcode
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW;
    STIBP: always-on; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not
    affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel arch: GCN-5 code: Vega process: GF 14nm
    built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s ports: active: HDMI-A-1,HDMI-A-2 empty: DP-1,DP-2
    bus-ID: 04:00.0 chip-ID: 1002:1638 class-ID: 0300 temp: 43.0 C
  Device-2: Creative Live! Cam Sync 1080p V2 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-2.3:5
    chip-ID: 041e:40a0 class-ID: 0102 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 23.2.6
    compositor: gnome-shell driver: X: loaded: amdgpu
    unloaded: modesetting,radeon alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu display-ID: 0
  Monitor-1: HDMI-A-1 model: BenQ LCD serial: <filter> built: 2022
    res: 2560x1440 dpi: 123 gamma: 1.2 chroma: red: x: 0.663 y: 0.333 green:
    x: 0.298 y: 0.631 blue: x: 0.145 y: 0.051 white: x: 0.314 y: 0.329
    size: 527x296mm (20.75x11.65") diag: 604mm (23.8") ratio: 16:9
    modes: 2560x1440, 1920x1200, 1920x1080, 1600x1200, 1680x1050, 1600x900,
    1280x1024, 1440x900, 1280x800, 1152x864, 1280x720, 1024x768, 832x624,
    800x600, 720x576, 720x480, 640x480, 720x400
  Monitor-2: HDMI-A-2 model: LG (GoldStar) IPS224 built: 2011 res: 1920x1080
    dpi: 102 gamma: 1.2 chroma: red: x: 0.631 y: 0.349 green: x: 0.341 y: 0.624
    blue: x: 0.153 y: 0.055 white: x: 0.314 y: 0.329
    size: 477x268mm (18.78x10.55") diag: 547mm (21.5") ratio: 16:9
    modes: 1920x1080, 1680x1050, 1280x1024, 1440x900, 1280x800, 1152x864,
    1280x720, 1024x768, 800x600, 720x576, 720x480, 640x480, 720x400
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast surfaceless: drv: radeonsi wayland: drv: radeonsi x11:
    drv: radeonsi inactive: gbm
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.0.6-manjaro1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon Graphics (radeonsi
    renoir LLVM 17.0.6 DRM 3.54 6.6.30-2-MANJARO) device-ID: 1002:1638
    memory: 500 MiB unified: no display-ID: :0.0
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 04:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A
    alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x,
    snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir,
    snd_sof_amd_rembrandt, snd_sof_amd_vangogh pcie: gen: 3 speed: 8 GT/s
    lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.5
    chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Realtek
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Device-4: C-Media Audio Adapter (Unitek Y-247A)
    driver: cmedia_hs100b,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 1-1:2 chip-ID: 0d8c:0014 class-ID: 0300
  Device-5: Creative Live! Cam Sync 1080p V2 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-2.3:5
    chip-ID: 041e:40a0 class-ID: 0102 serial: <filter>
  API: ALSA v: k6.6.30-2-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.5 status: off with: pipewire-media-session
    status: active tools: pw-cli
  Server-3: PulseAudio v: 17.0 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl
Network:
  Device-1: Intel Ethernet I225-V driver: igc v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 port: N/A bus-ID: 02:00.0 chip-ID: 8086:15f3
    class-ID: 0200
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: MEDIATEK MT7921K Wi-Fi 6E 80MHz driver: mt7921e v: kernel pcie:
    gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 14c3:0608
    class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Info: services: httpd, NetworkManager, sshd, systemd-timesyncd,
    wpa_supplicant
  WAN IP: <filter>
Bluetooth:
  Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB rev: 2.1
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-4:3 chip-ID: 0e8d:0608
    class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 3.64 TiB used: 1.38 TiB (38.0%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: WD Green SN350 2TB size: 1.82 TiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 33006000 temp: 37.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000LX001-1RG174
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 5400 serial: <filter> fw-rev: SDM1 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 1.82 TiB size: 1.82 TiB (100.00%) used: 864.27 GiB (46.4%)
    fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2 label: N/A
    uuid: 51a3a5b3-a6d6-456e-bbe3-935c914bd2fe
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 576 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
    label: NO_LABEL uuid: 37FC-2E88
  ID-3: /home raw-size: 1.82 TiB size: 1.82 TiB (100.00%)
    used: 864.27 GiB (46.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
    label: N/A uuid: 51a3a5b3-a6d6-456e-bbe3-935c914bd2fe
  ID-4: /mnt/data raw-size: 1.82 TiB size: 1.79 TiB (98.37%)
    used: 553.1 GiB (30.2%) fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: data
    uuid: 22ba0a6a-ff75-47be-a46b-5b76e6f3e011
  ID-5: /swap raw-size: 1.82 TiB size: 1.82 TiB (100.00%)
    used: 864.27 GiB (46.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
    label: N/A uuid: 51a3a5b3-a6d6-456e-bbe3-935c914bd2fe
  ID-6: /var/cache raw-size: 1.82 TiB size: 1.82 TiB (100.00%)
    used: 864.27 GiB (46.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
    label: N/A uuid: 51a3a5b3-a6d6-456e-bbe3-935c914bd2fe
  ID-7: /var/log raw-size: 1.82 TiB size: 1.82 TiB (100.00%)
    used: 864.27 GiB (46.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
    label: N/A uuid: 51a3a5b3-a6d6-456e-bbe3-935c914bd2fe
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: file size: 512 MiB used: 0 KiB (0.0%) priority: -2
    file: /swap/swapfile
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-1:2 info: C-Media Audio Adapter (Unitek Y-247A)
    type: audio,HID driver: cmedia_hs100b,snd-usb-audio,usbhid interfaces: 4
    rev: 1.1 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 100mA
    chip-ID: 0d8c:0014 class-ID: 0300
  Hub-2: 1-2:3 info: VIA Labs USB2.0 Hub ports: 4 rev: 2.1
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 2109:2817
    class-ID: 0900
  Hub-3: 1-2.2:4 info: Genesys Logic USB 1.1 Hub ports: 4 rev: 1.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 100mA
    chip-ID: 05e3:0604 class-ID: 0900
  Device-1: 1-2.2.1:6 info: Logitech Unifying Receiver type: keyboard,mouse
    driver: logitech-djreceiver,usbhid interfaces: 2 rev: 2.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 98mA
    chip-ID: 046d:c534 class-ID: 0301
  Device-2: 1-2.2.2:7 info: Trust Wireless Mouse type: mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 100mA chip-ID: 145f:0263 class-ID: 0301
  Device-3: 1-2.3:5 info: Creative Live! Cam Sync 1080p V2 type: video,audio
    driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 256mA
    chip-ID: 041e:40a0 class-ID: 0102 serial: <filter>
  Hub-4: 2-0:1 info: super-speed hub ports: 2 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-5: 2-2:2 info: VIA Labs USB3.0 Hub ports: 4 rev: 3.1
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 2109:0817
    class-ID: 0900
  Hub-6: 3-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-7: 3-2:2 info: VIA Labs USB2.0 Hub ports: 4 rev: 2.1
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 2109:2817
    class-ID: 0900
  Device-1: 3-4:3 info: MediaTek Wireless_Device type: bluetooth
    driver: btusb interfaces: 3 rev: 2.1 speed: 480 Mb/s (57.2 MiB/s) lanes: 1
    mode: 2.0 power: 100mA chip-ID: 0e8d:0608 class-ID: e001 serial: <filter>
  Hub-8: 4-0:1 info: super-speed hub ports: 2 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-9: 4-2:2 info: VIA Labs USB3.0 Hub ports: 4 rev: 3.1
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 2109:0817
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 51.1 C mobo: 38.0 C gpu: amdgpu temp: 41.0 C
  Fan Speeds (rpm): N/A
Repos:
  Packages: 2436 pm: pacman pkgs: 2373 libs: 519
    tools: gnome-software,pamac,yay pm: flatpak pkgs: 51 pm: snap pkgs: 12
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://mirror.futureweb.be/manjaro/stable/$repo/$arch
    2: https://mirror.23m.com/manjaro/stable/$repo/$arch
    3: https://manjaro.mirrors.lavatech.top/stable/$repo/$arch
    4: https://manjaro.ynh.ovh/stable/$repo/$arch
    5: https://ftp.gwdg.de/pub/linux/manjaro/stable/$repo/$arch
    6: https://mirror.easyname.at/manjaro/stable/$repo/$arch
    7: https://mirror.zetup.net/manjaro/stable/$repo/$arch
    8: https://mirror.kamtv.ru/manjaro/stable/$repo/$arch
Processes:
  CPU top: 5 of 432
  1: cpu: 24.3% command: onedrive pid: 1803 mem: 117.9 MiB (0.3%)
  2: cpu: 12.5% command: tracker-extract-3 pid: 10914 mem: 29.2 MiB (0.0%)
  3: cpu: 10.7% command: gnome-shell pid: 1974 mem: 416.5 MiB (1.3%)
  4: cpu: 10.5% command: firefox pid: 3387 mem: 589.7 MiB (1.8%)
  5: cpu: 6.3% command: firefox pid: 3923 mem: 377.1 MiB (1.1%)
  Memory top: 5 of 432
  1: mem: 1136.0 MiB (3.6%) command: pamac-manager pid: 10169 cpu: 1.1%
  2: mem: 589.7 MiB (1.8%) command: firefox pid: 3387 cpu: 10.5%
  3: mem: 582.1 MiB (1.8%) command: firefox pid: 3745 cpu: 1.2%
  4: mem: 564.9 MiB (1.7%) command: thunderbird pid: 3285 cpu: 2.2%
  5: mem: 416.5 MiB (1.3%) command: gnome-shell pid: 1974 cpu: 10.7%
Info:
  Processes: 432 Power: uptime: 31m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 12.3 GiB services: gsd-power,
    power-profiles-daemon, upowerd Init: systemd v: 255 default: graphical
    tool: systemctl
  Compilers: clang: 17.0.6 gcc: 13.2.1 Shell: Zsh v: 5.9
    running-in: gnome-terminal inxi: 3.3.34

Is there any useful output if you run these apps from the command line on crashing? And did you try if it is reproducible on a new user account?

1 Like

Thanks for your answer!

okular simply says:

/usr/bin/okular                                     ✔  3s  
QAbstractAnimation::pause: Cannot pause a stopped animation
[1]    12753 segmentation fault (core dumped)  /usr/bin/okular

The first warning is printed when the app starts, and the second line when it crashes.

I created a new, fresh user, and I have exactly the same problem. okular crashes when the mouse hovers over the “minimize-maximize-close” buttons.

1 Like

I don’t know whether you use Wayland or X11;
however, do you get the same error under both?

This may be helpful to someone.

1 Like

I also see this when running it, but I can’t reproduce the crashing. At least now we know that there is no user configuration at fault.

I wonder if that could be related to theming or some set “env var” in /. You noted that the flatpak version works for you and I assume that your system is up to date, which at least indicates that there is something wrong with the root configuration.

Do you happen to have qt5ct and qt6ct installed and configured, or do you manage your qt themes differently?

Have you tried running the crashing apps while setting different theming environment variables for them? Like for example:
QT_QPA_PLATFORMTHEME="qt6ct" QT_STYLE_OVERRIDE="qt6ct-style" okular

What does dmesg say about the crashing processes?

I am using Wayland. It didn’t occurred to me trying with X11 (doh… Feeling silly). Tomorrow I’ll try, now is sleep time :wink:

Thanks again for your help.

I do not know what qt5ct/qt6ct are… I just installed okular with pamac as ever. It worked ok before the big gnome 46 update… Tomorrow I’ll try what you suggest and report back!

A bit more info about the crash (let’s continue with okular, given that it’s in the official repository.

When it crashes, the only info in dmseg is:

[  192.162190] okular[4293]: segfault at 6 ip 0000000000000006 sp 00007ffd618cc548 error 14 in okular[55a284359000+12000] likely on CPU 0 (core 0, socket 0)
[  192.162201] Code: Unable to access opcode bytes at 0xffffffffffffffdc.

Session type (echo $XDG_SESSION_TYPE) is wayland (will check soon with X11).

ldd /usr/bin/okular
	linux-vdso.so.1 (0x00007ffdca665000)
	libKF6Parts.so.6 => /usr/lib/libKF6Parts.so.6 (0x00007fef632c2000)
	libPlasmaActivities.so.6 => /usr/lib/libPlasmaActivities.so.6 (0x00007fef63287000)
	libKF6XmlGui.so.6 => /usr/lib/libKF6XmlGui.so.6 (0x00007fef631a8000)
	libKF6KIOGui.so.6 => /usr/lib/libKF6KIOGui.so.6 (0x00007fef6313a000)
	libKF6WindowSystem.so.6 => /usr/lib/libKF6WindowSystem.so.6 (0x00007fef630e3000)
	libKF6KIOCore.so.6 => /usr/lib/libKF6KIOCore.so.6 (0x00007fef62f66000)
	libKF6Crash.so.6 => /usr/lib/libKF6Crash.so.6 (0x00007fef62f57000)
	libKF6ConfigWidgets.so.6 => /usr/lib/libKF6ConfigWidgets.so.6 (0x00007fef62f01000)
	libKF6CoreAddons.so.6 => /usr/lib/libKF6CoreAddons.so.6 (0x00007fef62e41000)
	libKF6I18n.so.6 => /usr/lib/libKF6I18n.so.6 (0x00007fef62dc8000)
	libKF6WidgetsAddons.so.6 => /usr/lib/libKF6WidgetsAddons.so.6 (0x00007fef62a00000)
	libQt6Widgets.so.6 => /usr/lib/libQt6Widgets.so.6 (0x00007fef62200000)
	libKF6ConfigGui.so.6 => /usr/lib/libKF6ConfigGui.so.6 (0x00007fef62d95000)
	libKF6ConfigCore.so.6 => /usr/lib/libKF6ConfigCore.so.6 (0x00007fef62d21000)
	libQt6DBus.so.6 => /usr/lib/libQt6DBus.so.6 (0x00007fef62c6a000)
	libQt6Gui.so.6 => /usr/lib/libQt6Gui.so.6 (0x00007fef61800000)
	libQt6Core.so.6 => /usr/lib/libQt6Core.so.6 (0x00007fef61200000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fef60e00000)
	libc.so.6 => /usr/lib/libc.so.6 (0x00007fef60c1c000)
	libKF6GlobalAccel.so.6 => /usr/lib/libKF6GlobalAccel.so.6 (0x00007fef629cf000)
	libQt6Xml.so.6 => /usr/lib/libQt6Xml.so.6 (0x00007fef629aa000)
	libQt6Network.so.6 => /usr/lib/libQt6Network.so.6 (0x00007fef62041000)
	libQt6PrintSupport.so.6 => /usr/lib/libQt6PrintSupport.so.6 (0x00007fef62934000)
	libKF6ItemViews.so.6 => /usr/lib/libKF6ItemViews.so.6 (0x00007fef611b7000)
	libKF6IconWidgets.so.6 => /usr/lib/libKF6IconWidgets.so.6 (0x00007fef6291c000)
	libKF6IconThemes.so.6 => /usr/lib/libKF6IconThemes.so.6 (0x00007fef61181000)
	libKF6ColorScheme.so.6 => /usr/lib/libKF6ColorScheme.so.6 (0x00007fef62908000)
	libKF6GuiAddons.so.6 => /usr/lib/libKF6GuiAddons.so.6 (0x00007fef61139000)
	libKF6Service.so.6 => /usr/lib/libKF6Service.so.6 (0x00007fef610cf000)
	libKF6Solid.so.6 => /usr/lib/libKF6Solid.so.6 (0x00007fef60b3e000)
	/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007fef6337e000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fef60a00000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fef610a4000)
	libxcb-res.so.0 => /usr/lib/libxcb-res.so.0 (0x00007fef62c5e000)
	libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007fef62900000)
	libxcb-keysyms.so.1 => /usr/lib/libxcb-keysyms.so.1 (0x00007fef628f9000)
	libm.so.6 => /usr/lib/libm.so.6 (0x00007fef60915000)
	libKF6AuthCore.so.6 => /usr/lib/libKF6AuthCore.so.6 (0x00007fef6108f000)
	libacl.so.1 => /usr/lib/libacl.so.1 (0x00007fef62038000)
	libmount.so.1 => /usr/lib/libmount.so.1 (0x00007fef608c5000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fef608a0000)
	libKF6Codecs.so.6 => /usr/lib/libKF6Codecs.so.6 (0x00007fef6086c000)
	libudev.so.1 => /usr/lib/libudev.so.1 (0x00007fef60835000)
	libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x00007fef607e4000)
	libEGL.so.1 => /usr/lib/libEGL.so.1 (0x00007fef617ee000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007fef60794000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007fef60647000)
	libxkbcommon.so.0 => /usr/lib/libxkbcommon.so.0 (0x00007fef605ff000)
	libGLX.so.0 => /usr/lib/libGLX.so.0 (0x00007fef605cd000)
	libOpenGL.so.0 => /usr/lib/libOpenGL.so.0 (0x00007fef605a2000)
	libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007fef60568000)
	libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x00007fef60459000)
	libmd4c.so.0 => /usr/lib/libmd4c.so.0 (0x00007fef61079000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007fef6038b000)
	libz.so.1 => /usr/lib/libz.so.1 (0x00007fef60372000)
	libicui18n.so.74 => /usr/lib/libicui18n.so.74 (0x00007fef60000000)
	libicuuc.so.74 => /usr/lib/libicuuc.so.74 (0x00007fef5fe13000)
	libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x00007fef5fd26000)
	libdouble-conversion.so.3 => /usr/lib/libdouble-conversion.so.3 (0x00007fef6035c000)
	libb2.so.1 => /usr/lib/libb2.so.1 (0x00007fef6033e000)
	libpcre2-16.so.0 => /usr/lib/libpcre2-16.so.0 (0x00007fef5fc94000)
	libzstd.so.1 => /usr/lib/libzstd.so.1 (0x00007fef5fbc1000)
	libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007fef5fb6d000)
	libbrotlidec.so.1 => /usr/lib/libbrotlidec.so.1 (0x00007fef6032f000)
	libproxy.so.1 => /usr/lib/libproxy.so.1 (0x00007fef6032a000)
	libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x00007fef5f600000)
	libKF6Archive.so.6 => /usr/lib/libKF6Archive.so.6 (0x00007fef5fb2f000)
	libQt6WaylandClient.so.6 => /usr/lib/libQt6WaylandClient.so.6 (0x00007fef5f515000)
	libwayland-client.so.0 => /usr/lib/libwayland-client.so.0 (0x00007fef5fb1b000)
	libimobiledevice-1.0.so.6 => /usr/lib/libimobiledevice-1.0.so.6 (0x00007fef5faf5000)
	libplist-2.0.so.4 => /usr/lib/libplist-2.0.so.4 (0x00007fef5fada000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fef5fad5000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fef5facb000)
	libblkid.so.1 => /usr/lib/libblkid.so.1 (0x00007fef5f4dc000)
	libcap.so.2 => /usr/lib/libcap.so.2 (0x00007fef5f4d0000)
	libGLdispatch.so.0 => /usr/lib/libGLdispatch.so.0 (0x00007fef5f418000)
	libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007fef5f3ef000)
	libpcre2-8.so.0 => /usr/lib/libpcre2-8.so.0 (0x00007fef5f34f000)
	libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x00007fef5f32c000)
	libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007fef5f319000)
	libicudata.so.74 => /usr/lib/libicudata.so.74 (0x00007fef5d400000)
	libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007fef5f1d0000)
	liblz4.so.1 => /usr/lib/liblz4.so.1 (0x00007fef5f1a9000)
	liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007fef5f176000)
	libgomp.so.1 => /usr/lib/libgomp.so.1 (0x00007fef5d3b0000)
	libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007fef5d2d8000)
	libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007fef5d2aa000)
	libcom_err.so.2 => /usr/lib/libcom_err.so.2 (0x00007fef5f16e000)
	libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007fef5f160000)
	libkeyutils.so.1 => /usr/lib/libkeyutils.so.1 (0x00007fef5d2a3000)
	libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007fef5d292000)
	libbrotlicommon.so.1 => /usr/lib/libbrotlicommon.so.1 (0x00007fef5d26f000)
	libpxbackend-1.0.so => /usr/lib/libproxy/libpxbackend-1.0.so (0x00007fef5d260000)
	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007fef5d200000)
	libwayland-cursor.so.0 => /usr/lib/libwayland-cursor.so.0 (0x00007fef5d1f6000)
	libffi.so.8 => /usr/lib/libffi.so.8 (0x00007fef5d1eb000)
	libssl.so.3 => /usr/lib/libssl.so.3 (0x00007fef5d112000)
	libusbmuxd-2.0.so.7 => /usr/lib/libusbmuxd-2.0.so.7 (0x00007fef5d106000)
	libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007fef5d0e0000)
	libcurl.so.4 => /usr/lib/libcurl.so.4 (0x00007fef5d01d000)
	libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x00007fef5ce50000)
	libduktape.so.207 => /usr/lib/libduktape.so.207 (0x00007fef5ce03000)
	libimobiledevice-glue-1.0.so.0 => /usr/lib/libimobiledevice-glue-1.0.so.0 (0x00007fef5cdf0000)
	libnghttp3.so.9 => /usr/lib/libnghttp3.so.9 (0x00007fef5cdcd000)
	libnghttp2.so.14 => /usr/lib/libnghttp2.so.14 (0x00007fef5cda3000)
	libidn2.so.0 => /usr/lib/libidn2.so.0 (0x00007fef5cd81000)
	libssh2.so.1 => /usr/lib/libssh2.so.1 (0x00007fef5cd38000)
	libpsl.so.5 => /usr/lib/libpsl.so.5 (0x00007fef5cd22000)
	libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007fef5cd1b000)
	libunistring.so.5 => /usr/lib/libunistring.so.5 (0x00007fef5cb6b000)

I have no qt6ct nor qt5ct installed; should I install them? Anyway, If I run it (as suggested by @pux) with

QT_QPA_PLATFORMTHEME="qt6ct" QT_STYLE_OVERRIDE="qt6ct-style" okular

I have

Application: invalid style override 'qt6ct-style' passed, ignoring it.
	Available styles: HighContrastInverse, HighContrast, Adwaita-HighContrastInverse, Adwaita-HighContrast, Adwaita-Dark, Adwaita, Breeze, Windows, Fusion
QAbstractAnimation::pause: Cannot pause a stopped animation
[1]    6208 segmentation fault (core dumped)  QT_QPA_PLATFORMTHEME="qt6ct" QT_STYLE_OVERRIDE="qt6ct-style" /usr/bin/okular

and then the same crash (if I change qt6ct-style with Adwaita, I have no warning, but the crash is still there).

I then installed qt6ct from the official repository, but I still had the same crash.

As suggested by @soundofthunder : I tried it in a “Gnome on X11” session, and it doesn’t crash.

So it’s definitely a QT6 on Wayland Gnome problem… bummer, I liked Wayland…

Interesting, as I see no reason why you would have a problem with QT applications on Wayland other than maybe your mixed dpi multi monitor setup.
What happens if you set the Wayland Plugin like this:

QT_QPA_PLATFORM=wayland okular

If nothing else helps you could try to trace the segmentation fault with valgrind for example, if you like to go down this rabbit hole. :wink:

valgrind --leak-check=full --track-origins=yes --show-reachable=yes okular

should I try this in Wayland, I suppose?

Yes, I’ll try to trace that too (this evening — the Manjaro one is my home computer, for work I am more or less forced to a boring Ubuntu LTS :wink:). I am a bit frustrated that nobody seems able to reproduce it. Otherwise, I would try to report it on okular bug tracker itself…

Yes, sorry I forgot to mention that!

This issue is indeed very unique it seems as your Hardware should be best suited for Wayland, I hope you can find the culprit!


Maybe just to add some thoughts as you mentioned the use of AUR packages.

  • Have you checked if there are any interfering AUR packages/libraries that replace system packages/libraries required by the crashing applications?
  • Have you managed “.pacnew” etc?
  • Have you managed orphaned packages?
  • Have you checked for packages moved to the AUR?
2 Likes

I will check; is there a way to check it rapidly with pacman/pamac? Basically, I think the only relevant (to Qt) AUR I have is qucs-s; I could always try to remove and clean dependencies…

Yes, or so I think, I will double-check.

Hm. No, that I missed. Should I remove all of them, I suppose…

…and this one, no, I didn’t check. I will have a look around this evening. Thanks for the suggestions!

GNOME was once a great platform that’s suitable for running any application. But now, they are doing things to promote their own apps without caring for compatibility with other frameworks, so don’t hope to get your loved apps running fine on GNOME3.

One example is Factorio response to GNOME Client-side window decorations

GNOME, in their infinite wisdom, have decided that all clients must provide their own decorations, and if a client does not, they will simply be missing. I disagree with this decision; Factorio does not need to provide decorations on any other platform, nay, on any other desktop environment, but GNOME can (ab)use its popularity to force programs to conform to its idiosyncrasies or be left behind.

By the way, most popular KDE apps run even on Windows.

Try to run QT_QPA_PLATFORM=xcb okular

2 Likes

Even Okular… Sad, but true.

1 Like

YAY it works! both okular and qucs-s are working with this environment variable (@pux using wayland instead of xcb did crash…)

Thanks a lot! So, what does that mean? Could I have some strange library hanging around? (I did a bit of research, and if I understand correctly, will that option force the use of x11-on-Wayland libraries instead of Wayland native ones? Correct?)

Thanks a lot, @medmedin @pux @soundofthunder , for helping!

Maybe due to Gnome folks deciding to not support server side window decorations on Wayland. But I’m not sure.

In short, you force Qt applications to use X11 (Xwayland) with the xcb “env var”, which turns out to work around the issue in this case.

Why this is necessary I don’t know, as I can’t reproduce it on my Gnome setup, hence my suspiction it beeing related to theming.

1 Like

I think I have found the real culprit.

For reasons I do not know (they did not appear in the list of orphaned packages, and when I removed them, no other package was removed as a dependency…), I had form some AUR these packages:

[2024-05-28T19:35:26+0200] [ALPM] removed qgnomeplatform-qt6 (0.9.1-8)
[2024-05-28T19:35:26+0200] [ALPM] removed adwaita-color-schemes (0.9.1-8)
[2024-05-28T19:35:26+0200] [ALPM] removed adwaita-qt6 (1.4.2-1)
[2024-05-28T19:35:26+0200] [ALPM] transaction completed

…and now the apps are not so nice-looking, but they work. So I think @pux was right.

Thanks again, I am learning a lot from this thread.

This was most likely the problem! Glad it works now and happy rolling! :wink:


By the way, this is a side effect of removing qgnomeplatform as it was once used as the standard theming solution for QT apps in gnome.

You may also want to check your /etc/environment for out of date Environment Variables.

1 Like