Bug 469289

Summary: Can't open any KDE applications after connecting an external display
Product: [Applications] konsole Reporter: justynboyer+kde.org <justynboyer>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: NEEDSINFO WAITINGFORINFO    
Severity: crash CC: christoph
Priority: NOR Keywords: drkonqi
Version: 23.04.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description justynboyer+kde.org@gmail.com 2023-05-02 20:12:49 UTC
Application: konsole (23.04.0)

Qt Version: 5.15.9
Frameworks Version: 5.105.0
Operating System: Linux 6.2.11-arch1-1-t2 x86_64
Windowing System: X11
Distribution: "Arch Linux"
DrKonqi: 5.27.4 [KCrashBackend]

-- Information about the crash:
After plugging in an Anker A8365 hub into a DELL P2217 monitor, I recieve crashes upon trying to open any new KDE applications. Other QT apps (like qBittorrent and qalculate) open. Any apps opened while the display is connected result in a crash report by Dr Konqi. After disconnecting the display, KDE apps can then be reopened. This behaviour doesn't happen when the hub is connected to my laptop without the display. Any ideas?

I'm using a custom linux kernel for a MacbookPro16,3.

The crash can be reproduced every time.

-- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  0x00007f06e61a7d19 in QWidget::hide (this=0x555fa97e9210) at kernel/qwidget.cpp:7942
#7  0x00007f06e6300c46 in QMenuBarPrivate::updateGeometries (this=this@entry=0x555fa97c5ff0) at widgets/qmenubar.cpp:256
#8  0x00007f06e6301381 in QMenuBar::changeEvent (this=0x555fa97db090, e=0x7ffea58be8f0) at widgets/qmenubar.cpp:1446
#9  0x00007f06e61aeecf in QWidget::event (this=0x555fa97db090, event=0x7ffea58be8f0) at kernel/qwidget.cpp:8987
#10 0x00007f06e6178b5c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x555fa97db090, e=0x7ffea58be8f0) at kernel/qapplication.cpp:3640
#11 0x00007f06e548e028 in QCoreApplication::notifyInternal2 (receiver=0x555fa97db090, event=0x7ffea58be8f0) at kernel/qcoreapplication.cpp:1064
#12 0x00007f06e548e093 in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1462
#13 0x00007f06e61a318c in QWidgetPrivate::updateFont (this=<optimized out>, font=...) at kernel/qwidget.cpp:4663
#14 0x00007f06e61af380 in QWidget::event (this=0x555fa97db090, event=<optimized out>) at kernel/qwidget.cpp:9081
#15 0x00007f06e6178b5c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x555fa97db090, e=0x7ffea58bea80) at kernel/qapplication.cpp:3640
#16 0x00007f06e548e028 in QCoreApplication::notifyInternal2 (receiver=0x555fa97db090, event=0x7ffea58bea80) at kernel/qcoreapplication.cpp:1064
#17 0x00007f06e548e093 in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1462
#18 0x00007f06e61ccb18 in sendScreenChangeRecursively (widget=0x555fa97db090) at kernel/qwidgetwindow.cpp:757
#19 0x00007f06e61ccb48 in sendScreenChangeRecursively (widget=<optimized out>) at kernel/qwidgetwindow.cpp:762
#20 0x00007f06e61cd206 in QWidgetWindow::handleScreenChange (this=0x555fa97d7bb0) at kernel/qwidgetwindow.cpp:769
#21 QWidgetWindow::qt_static_metacall (_c=<optimized out>, _a=<optimized out>, _id=<optimized out>, _o=0x555fa97d7bb0) at .moc/moc_qwidgetwindow_p.cpp:77
#22 QWidgetWindow::qt_static_metacall (_o=0x555fa97d7bb0, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/moc_qwidgetwindow_p.cpp:70
#23 0x00007f06e54becf0 in doActivate<false> (sender=0x555fa97d7bb0, signal_index=3, argv=0x7ffea58bebf0) at kernel/qobject.cpp:3935
#24 0x00007f06e594ef94 in QWindow::screenChanged (this=<optimized out>, _t1=<optimized out>) at .moc/moc_qwindow.cpp:729
#25 0x00007f06e59431d4 in QWindowPrivate::emitScreenChangedRecursion (this=<optimized out>, newScreen=0x555fa93c8d60) at kernel/qwindow.cpp:484
#26 0x00007f06e594e872 in QWindowPrivate::setTopLevelScreen (this=<optimized out>, newScreen=<optimized out>, recreate=<optimized out>) at kernel/qwindow.cpp:508
#27 0x00007f06e619c974 in QWidgetPrivate::create (this=this@entry=0x555fa97f7eb0) at kernel/qwidget.cpp:1290
#28 0x00007f06e619cca4 in QWidget::create (this=0x555fa95ca030, window=<optimized out>, initializeWindow=<optimized out>, destroyOldWindow=<optimized out>) at kernel/qwidget.cpp:1181
#29 0x00007f06e62feb2f in QMenuBarPrivate::handleReparent (this=this@entry=0x555fa97c5ff0) at widgets/qmenubar.cpp:1421
#30 0x00007f06e62fef68 in QMenuBarPrivate::init (this=0x555fa97c5ff0) at widgets/qmenubar.cpp:705
#31 QMenuBar::QMenuBar (this=<optimized out>, parent=<optimized out>, this=<optimized out>, parent=<optimized out>) at widgets/qmenubar.cpp:741
#32 0x00007f06e62c442c in QMainWindow::menuBar (this=0x555fa95ca030) at widgets/qmainwindow.cpp:508
#33 QMainWindow::menuBar (this=this@entry=0x555fa95ca030) at widgets/qmainwindow.cpp:503
#34 0x00007f06e6a6eafb in Konsole::MainWindow::setupActions (this=this@entry=0x555fa95ca030) at /usr/src/debug/konsole/konsole-23.04.0/src/MainWindow.cpp:426
#35 0x00007f06e6a71bb4 in Konsole::MainWindow::MainWindow (this=<optimized out>, this=<optimized out>) at /usr/src/debug/konsole/konsole-23.04.0/src/MainWindow.cpp:90
#36 0x00007f06e6a72513 in Konsole::Application::newMainWindow (this=this@entry=0x7ffea58bf250) at /usr/src/debug/konsole/konsole-23.04.0/src/Application.cpp:125
#37 0x00007f06e6a72ab1 in Konsole::Application::processWindowArgs (this=this@entry=0x7ffea58bf250, createdNewMainWindow=@0x7ffea58bf0c7: true) at /usr/src/debug/konsole/konsole-23.04.0/src/Application.cpp:391
#38 0x00007f06e6a72dc3 in Konsole::Application::newInstance (this=this@entry=0x7ffea58bf250) at /usr/src/debug/konsole/konsole-23.04.0/src/Application.cpp:179
#39 0x0000555fa8d51c2e in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/konsole/konsole-23.04.0/src/main.cpp:255
[Inferior 1 (process 12701) detached]

The reporter indicates this bug may be a duplicate of or related to bug 450591.

Reported using DrKonqi
Comment 1 Christoph Cullmann 2024-09-21 15:38:51 UTC
Please re-try that with a recent Qt 6 based release, a lot such things got fixed there.