All kde applications crash when connecting external monitor

output of garuda-inxi:

System:
  Kernel: 5.18.9-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=308b5626-2597-4f46-9f16-a4d882bf2bf0 rw [email protected]
    quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    systemd.unified_cgroup_hierarchy=1 loglevel=3 ibt=off
  Desktop: KDE Plasma v: 5.25.2 tk: Qt v: 5.15.5 info: latte-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: ROG Zephyrus G14 GA401QM_GA401QM
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: GA401QM v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: GA401QM.410 date: 12/13/2021
Battery:
  ID-1: BAT0 charge: 35.7 Wh (54.6%) condition: 65.4/76.0 Wh (86.1%)
    volts: 15.8 min: 15.8 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A
    status: charging
CPU:
  Info: model: AMD Ryzen 9 5900HS with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 3 gen: 4 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: 3653 high: 4337 min/max: 1200/4679 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 4216 2: 3235
    3: 3628 4: 3611 5: 3576 6: 3877 7: 3513 8: 3597 9: 3503 10: 4103 11: 3007
    12: 3231 13: 3194 14: 3735 15: 4337 16: 4094 bogomips: 105400
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  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: 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
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: ASUSTeK
    driver: nvidia v: 515.57 alternate: nouveau,nvidia_drm non-free: 515.xx+
    status: current (as of 2022-06) arch: Ampere process: TSMC n7 (7nm)
    built: 2020-22 pcie: gen: 2 speed: 5 GT/s lanes: 8 link-max: gen: 4
    speed: 16 GT/s lanes: 16 ports: active: none off: DP-2,DP-3 empty: DP-1
    bus-ID: 01:00.0 chip-ID: 10de:2520 class-ID: 0300
  Device-2: AMD Cezanne vendor: ASUSTeK driver: amdgpu v: kernel
    arch: GCN 5.1 process: TSMC n7 (7nm) built: 2018-21 pcie: gen: 3
    speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s ports:
    active: eDP-1 empty: HDMI-A-1 bus-ID: 04:00.0 chip-ID: 1002:1638
    class-ID: 0300
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
    compositor: kwin_x11 driver: X: loaded: modesetting,nvidia
    gpu: amdgpu,nvidia,nvidia-nvswitch display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2520 s-dpi: 96 s-size: 1016x666mm (40.00x26.22")
    s-diag: 1215mm (47.83")
  Monitor-1: not-matched mapped: DP-1-0.8 pos: top-center res: 1920x1080
    hz: 60 dpi: 82 size: 598x336mm (23.54x13.23") diag: 686mm (27.01")
    modes: N/A
  Monitor-2: not-matched mapped: DP-1-0.9 pos: primary,top-left
    res: 1920x1080 hz: 60 dpi: 82 size: 598x336mm (23.54x13.23")
    diag: 686mm (27.01") modes: N/A
  Monitor-3: eDP-1 pos: primary,bottom-r model: TL140BDXP01-0 built: 2020
    res: 2560x1440 hz: 120 dpi: 210 gamma: 1.2 size: 310x174mm (12.2x6.85")
    diag: 355mm (14") ratio: 16:9 modes: max: 2560x1440 min: 640x480
  OpenGL: renderer: AMD RENOIR (LLVM 14.0.6 DRM 3.46 5.18.9-zen1-1-zen)
    v: 4.6 Mesa 22.1.3 direct render: Yes
Audio:
  Device-1: NVIDIA vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie:
    gen: 2 speed: 5 GT/s lanes: 8 link-max: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:228e class-ID: 0403
  Device-2: 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-3: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: ASUSTeK
    driver: N/A alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x,
    snd_pci_acp6x, snd_acp_pci, snd_sof_amd_renoir
    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-4: AMD Family 17h/19h HD Audio vendor: ASUSTeK
    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
  Sound Server-1: ALSA v: k5.18.9-zen1-1-zen running: yes
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.53 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB
    driver: r8152 bus-ID: 4-1.3:3 chip-ID: 0bda:8153 class-ID: 0000
    serial: <filter>
  IF: enp4s0f4u1u3 state: down mac: <filter>
  IF-ID-1: br-a20a84e34e9a state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-2: docker0 state: down mac: <filter>
  IF-ID-3: veth496d3b8 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 3-4:4 chip-ID: 8087:0029 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 953.87 GiB used: 519.46 GiB (54.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: HFM001TD3JX013N
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 41000C20
    temp: 44.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 250 GiB size: 250 GiB (100.00%) used: 226.01 GiB (90.4%)
    fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 41.8 MiB (8.2%) fs: vfat dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-3: /home raw-size: 436.52 GiB size: 436.52 GiB (100.00%)
    used: 293.4 GiB (67.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 250 GiB size: 250 GiB (100.00%)
    used: 226.01 GiB (90.4%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-5: /var/tmp raw-size: 250 GiB size: 250 GiB (100.00%)
    used: 226.01 GiB (90.4%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.04 GiB used: 768 KiB (0.0%)
    priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 56.0 C
  Fan Speeds (RPM): cpu: 4900
Info:
  Processes: 407 Uptime: 6m wakeups: 2 Memory: 15.04 GiB
  used: 6.07 GiB (40.3%) Init: systemd v: 251 default: graphical
  tool: systemctl Compilers: gcc: 12.1.0 clang: 14.0.6 Packages: 2290
  pacman: 2267 lib: 531 flatpak: 10 snap: 13 Shell: fish v: 3.4.1
  running-in: alacritty inxi: 3.3.19
e[1;34mGaruda (2.6.4-2):e[0m
e[1;34m  System install date:e[0m     2022-01-06
e[1;34m  Last full system update:e[0m 2022-07-04
e[1;34m  Is partially upgraded:  e[0m No
e[1;34m  Relevant software:      e[0m NetworkManager
e[1;34m  Windows dual boot:      e[0m Probably (Run as root to verify)
e[1;34m  Snapshots:              e[0m Snapper
e[1;34m  Failed units:           e[0m 

I've connected 2 external monitors and because my screen went black I deleted .local/share/kscreen after that my laptop monitor was working again but when I have the monitors attached none of the KDE apps will open.

crash report of Settings:

Application: System Settings (systemsettings), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f6f6796bbe9 in QWidget::hide() () from /usr/lib/libQt5Widgets.so.5
#5  0x00007f6f67ac4926 in ?? () from /usr/lib/libQt5Widgets.so.5
#6  0x00007f6f67ac5061 in QMenuBar::changeEvent(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#7  0x00007f6f67972d9f in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#8  0x00007f6f6793cb3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#9  0x00007f6f66dbead8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#10 0x00007f6f6796710c in QWidgetPrivate::updateFont(QFont const&) () from /usr/lib/libQt5Widgets.so.5
#11 0x00007f6f67973250 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#12 0x00007f6f6793cb3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#13 0x00007f6f66dbead8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#14 0x00007f6f679909e8 in ?? () from /usr/lib/libQt5Widgets.so.5
#15 0x00007f6f67990a18 in ?? () from /usr/lib/libQt5Widgets.so.5
#16 0x00007f6f679910d6 in ?? () from /usr/lib/libQt5Widgets.so.5
#17 0x00007f6f66def378 in ?? () from /usr/lib/libQt5Core.so.5
#18 0x00007f6f672aa0b4 in QWindow::screenChanged(QScreen*) () from /usr/lib/libQt5Gui.so.5
#19 0x00007f6f6729e1e4 in QWindowPrivate::emitScreenChangedRecursion(QScreen*) () from /usr/lib/libQt5Gui.so.5
#20 0x00007f6f679608f4 in QWidgetPrivate::create() () from /usr/lib/libQt5Widgets.so.5
#21 0x00007f6f67960c24 in QWidget::create(unsigned long long, bool, bool) () from /usr/lib/libQt5Widgets.so.5
#22 0x00007f6f67ac280f in ?? () from /usr/lib/libQt5Widgets.so.5
#23 0x00007f6f67ac2c48 in QMenuBar::QMenuBar(QWidget*) () from /usr/lib/libQt5Widgets.so.5
#24 0x00007f6f67a8819c in QMainWindow::menuBar() const () from /usr/lib/libQt5Widgets.so.5
#25 0x00007f6f6828e29c in KXmlGuiWindow::createGUI(QString const&) () from /usr/lib/libKF5XmlGui.so.5
#26 0x00007f6f6828ec5c in KXmlGuiWindow::setupGUI(QSize const&, QFlags<KXmlGuiWindow::StandardWindowOption>, QString const&) () from /usr/lib/libKF5XmlGui.so.5
#27 0x00007f6f6828edb4 in KXmlGuiWindow::setupGUI(QFlags<KXmlGuiWindow::StandardWindowOption>, QString const&) () from /usr/lib/libKF5XmlGui.so.5
#28 0x0000564d993dbc9a in ?? ()
#29 0x0000564d993d7acb in ?? ()
#30 0x00007f6f66716290 in ?? () from /usr/lib/libc.so.6
#31 0x00007f6f6671634a in __libc_start_main () from /usr/lib/libc.so.6
#32 0x0000564d993d84b5 in ?? ()
[Inferior 1 (process 15453) detached]

And the same thing happens with Konsole Dolphin Kate etc. when I disconnect the monitors every thing is working fine again.

I'm not sure whether this is a bug in KDE or if its my fault.

I've updated my system and I still had the same problem.

Does this happen with any non-KDE apps? Which ones work and which fail?

You may try to find a similar bug report here and add your case details, or create a new one.

2 Likes

No every other app works fine and KDE apps that I've opened before I attached the monitor continue working as usual.