Bug 456538

Summary: All KDE apps fail to launch if 2 gpus are used
Product: [Plasma] kwin Reporter: K Freed <kortrax11>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: crash CC: kde, nate, xaver.hugl
Priority: NOR Keywords: drkonqi
Version: 5.25.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: SystemSettings crash
Konsole Crash

Description K Freed 2022-07-10 04:46:16 UTC
Application: konsole (22.04.3)

Qt Version: 5.15.5
Frameworks Version: 5.95.0
Operating System: Linux 5.18.10-zen1-1-zen x86_64
Windowing System: X11
Distribution: Garuda Linux
DrKonqi: 5.25.2 [KCrashBackend]

-- Information about the crash:
Steps to reproduce

1. Install 2 gpus in system
2. Connect one monitor to each gpu
3. You willl not be able to launch any KDE apps.

The crash can be reproduced every time.

-- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f499305dbe4 in QWidget::hide() () from /usr/lib/libQt5Widgets.so.5
#5  0x00007f49931b6926 in ?? () from /usr/lib/libQt5Widgets.so.5
#6  0x00007f49931b7061 in QMenuBar::changeEvent(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#7  0x00007f4993064d9f in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#8  0x00007f499302eb3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#9  0x00007f4992511ad8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#10 0x00007f499305910c in QWidgetPrivate::updateFont(QFont const&) () from /usr/lib/libQt5Widgets.so.5
#11 0x00007f4993065250 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#12 0x00007f499302eb3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#13 0x00007f4992511ad8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#14 0x00007f49930829e8 in ?? () from /usr/lib/libQt5Widgets.so.5
#15 0x00007f4993082a18 in ?? () from /usr/lib/libQt5Widgets.so.5
#16 0x00007f49930830d6 in ?? () from /usr/lib/libQt5Widgets.so.5
#17 0x00007f4992542378 in ?? () from /usr/lib/libQt5Core.so.5
#18 0x00007f499299c0b4 in QWindow::screenChanged(QScreen*) () from /usr/lib/libQt5Gui.so.5
#19 0x00007f49929901e4 in QWindowPrivate::emitScreenChangedRecursion(QScreen*) () from /usr/lib/libQt5Gui.so.5
#20 0x00007f49930528f4 in QWidgetPrivate::create() () from /usr/lib/libQt5Widgets.so.5
#21 0x00007f4993052c24 in QWidget::create(unsigned long long, bool, bool) () from /usr/lib/libQt5Widgets.so.5
#22 0x00007f49931b480f in ?? () from /usr/lib/libQt5Widgets.so.5
#23 0x00007f49931b4c48 in QMenuBar::QMenuBar(QWidget*) () from /usr/lib/libQt5Widgets.so.5
#24 0x00007f499317a19c in QMainWindow::menuBar() const () from /usr/lib/libQt5Widgets.so.5
#25 0x00007f49938ce99b in Konsole::MainWindow::setupActions() () from /usr/lib/libkonsoleapp.so.1
#26 0x00007f49938d07ed in Konsole::MainWindow::MainWindow() () from /usr/lib/libkonsoleapp.so.1
#27 0x00007f49938d1783 in Konsole::Application::newMainWindow() () from /usr/lib/libkonsoleapp.so.1
#28 0x00007f49938d3061 in Konsole::Application::processWindowArgs(bool&) () from /usr/lib/libkonsoleapp.so.1
#29 0x00007f49938d3373 in Konsole::Application::newInstance() () from /usr/lib/libkonsoleapp.so.1
#30 0x0000563b1787ca9e in ?? ()
#31 0x00007f4991e69290 in ?? () from /usr/lib/libc.so.6
#32 0x00007f4991e6934a in __libc_start_main () from /usr/lib/libc.so.6
#33 0x0000563b1787d255 in ?? ()
[Inferior 1 (process 41540) detached]

Reported using DrKonqi
Comment 1 K Freed 2022-07-12 00:53:14 UTC
Created attachment 150547 [details]
SystemSettings crash
Comment 2 K Freed 2022-07-12 00:54:03 UTC
Created attachment 150548 [details]
Konsole Crash
Comment 3 K Freed 2022-07-12 00:55:02 UTC
The issue clearly has to do with the 2 gpus as disconnecting one of them fixes the issue
Comment 4 Nate Graham 2022-07-13 19:58:24 UTC
Seems like our code is getting confused about the number of screens or something?
Comment 5 David Edmundson 2024-04-25 14:31:39 UTC
If a client crashes, it's a client problem not a kwin problem