Bug 450591 - QT applications crashed after plugging in external display
Summary: QT applications crashed after plugging in external display
Status: RESOLVED DUPLICATE of bug 444192
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 21.12.2
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-02-19 22:25 UTC by kavimehta18
Modified: 2022-09-13 11:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (4.69 KB, text/plain)
2022-09-13 11:35 UTC, Lingfeng Fu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kavimehta18 2022-02-19 22:25:02 UTC
Application: konsole (21.12.2)

Qt Version: 5.15.3
Frameworks Version: 5.91.0
Operating System: Linux 5.13.0-30-generic x86_64
Windowing System: X11
Distribution: KDE neon User - 5.24
DrKonqi: 5.24.1 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
I plugged in my external display.
I tried to open Konsole, System Settings, and Nautilus. Each one at a time.
None of them would open giving a "Closed Unexpectedly" error

The crash can be reproduced every time.

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

[New LWP 5188]
[New LWP 5189]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f08ec94aaff in __GI___poll (fds=0x7ffdd9816af8, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
__preamble__
[Current thread is 1 (Thread 0x7f08e74789c0 (LWP 5187))]

Thread 3 (Thread 0x7f08e4dbd700 (LWP 5189)):
#0  0x00007f08eaf554dd in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f08eaf078fa in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f08eaf0829b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f08eaf084a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f08ecf1aa0b in QEventDispatcherGlib::processEvents (this=0x7f08d8000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f08ecebec9b in QEventLoop::exec (this=this@entry=0x7f08e4dbcbb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#6  0x00007f08eccd8362 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007f08ebdb1f4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007f08eccd9543 in QThreadPrivate::start (arg=0x7f08ebe35d80) at thread/qthread_unix.cpp:331
#9  0x00007f08eb8c8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007f08ec957293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f08e690c700 (LWP 5188)):
#0  0x00007f08ec94aaff in __GI___poll (fds=0x7f08e690bae8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f08eaafbc1a in ?? () from /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f08eaafd90a in xcb_wait_for_event () from /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f08e7042fd8 in QXcbEventQueue::run (this=0x55933b4498a0) at qxcbeventqueue.cpp:228
#4  0x00007f08eccd9543 in QThreadPrivate::start (arg=0x55933b4498a0) at thread/qthread_unix.cpp:331
#5  0x00007f08eb8c8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f08ec957293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f08e74789c0 (LWP 5187)):
[KCrash Handler]
#4  QWidget::hide (this=0x69007200650064) at kernel/qwidget.cpp:7917
#5  0x00007f08edbf94cd in QMenuBarPrivate::updateGeometries (this=0x55933b6e7000) at widgets/qmenubar.cpp:256
#6  0x00007f08edbfd900 in QMenuBar::changeEvent (this=0x55933b59a060, e=0x7ffdd9818290) at widgets/qmenubar.cpp:1446
#7  0x00007f08edaa5c14 in QWidget::event (this=this@entry=0x55933b59a060, event=event@entry=0x7ffdd9818290) at kernel/qwidget.cpp:8962
#8  0x00007f08edbfda2b in QMenuBar::event (this=0x55933b59a060, e=0x7ffdd9818290) at widgets/qmenubar.cpp:1512
#9  0x00007f08eda62dc3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55933b59a060, e=0x7ffdd9818290) at kernel/qapplication.cpp:3632
#10 0x00007f08eda6bbb8 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3156
#11 0x00007f08ecec019a in QCoreApplication::notifyInternal2 (receiver=0x55933b59a060, event=0x7ffdd9818290) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:332
#12 0x00007f08eda96555 in QWidgetPrivate::updateFont (this=this@entry=0x55933b6e7000, font=...) at kernel/qwidget.cpp:4654
#13 0x00007f08eda96698 in QWidgetPrivate::setFont_helper (font=..., this=0x55933b6e7000) at ../../include/QtWidgets/5.15.3/QtWidgets/private/../../../../../src/widgets/kernel/qwidget_p.h:317
#14 QWidgetPrivate::resolveFont (this=0x55933b6e7000) at kernel/qwidget.cpp:4587
#15 0x00007f08eda964f0 in QWidgetPrivate::updateFont (this=this@entry=0x55933b4272d0, font=...) at kernel/qwidget.cpp:4642
#16 0x00007f08edaa66cb in QWidget::event (this=this@entry=0x55933b7970a0, event=event@entry=0x7ffdd98187e0) at kernel/qwidget.cpp:9056
#17 0x00007f08edbbede8 in QMainWindow::event (this=this@entry=0x55933b7970a0, event=event@entry=0x7ffdd98187e0) at widgets/qmainwindow.cpp:1341
#18 0x00007f08ee11c2b3 in KMainWindow::event (this=this@entry=0x55933b7970a0, ev=ev@entry=0x7ffdd98187e0) at ./src/kmainwindow.cpp:941
#19 0x00007f08ee16c63b in KXmlGuiWindow::event (this=0x55933b7970a0, ev=0x7ffdd98187e0) at ./src/kxmlguiwindow.cpp:219
#20 0x00007f08eda62dc3 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55933b7970a0, e=0x7ffdd98187e0) at kernel/qapplication.cpp:3632
#21 0x00007f08eda6bbb8 in QApplication::notify(QObject*, QEvent*) () at kernel/qapplication.cpp:3156
#22 0x00007f08ecec019a in QCoreApplication::notifyInternal2 (receiver=0x55933b7970a0, event=0x7ffdd98187e0) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:332
#23 0x00007f08edac0ae6 in sendScreenChangeRecursively (widget=0x55933b7970a0) at kernel/qwidgetwindow.cpp:752
#24 0x00007f08edac0b81 in QWidgetWindow::handleScreenChange (this=0x55933b7c2100) at /usr/include/c++/9/bits/atomic_base.h:413
#25 0x00007f08ecef71f0 in doActivate<false> (sender=0x55933b7c2100, signal_index=3, argv=0x7ffdd9818920) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#26 0x00007f08ecef0587 in QMetaObject::activate (sender=sender@entry=0x55933b7c2100, m=m@entry=0x7f08ed8d96a0 <QWindow::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffdd9818920) at kernel/qobject.cpp:3946
#27 0x00007f08ed36ec43 in QWindow::screenChanged (this=this@entry=0x55933b7c2100, _t1=<optimized out>, _t1@entry=0x55933b552460) at .moc/moc_qwindow.cpp:729
#28 0x00007f08ed36f4c7 in QWindowPrivate::emitScreenChangedRecursion (this=this@entry=0x55933b553a50, newScreen=newScreen@entry=0x55933b552460) at kernel/qwindow.cpp:484
#29 0x00007f08ed3765e6 in QWindowPrivate::setTopLevelScreen (this=0x55933b553a50, newScreen=0x55933b552460, recreate=<optimized out>) at kernel/qwindow.cpp:508
#30 0x00007f08eda97c26 in QWidgetPrivate::create (this=this@entry=0x55933b4272d0) at ../../include/QtCore/../../src/corelib/tools/qlist.h:117
#31 0x00007f08eda97f5e in QWidget::create (this=0x55933b7970a0, window=<optimized out>, initializeWindow=<optimized out>, destroyOldWindow=<optimized out>) at kernel/qwidget.cpp:1179
#32 0x00007f08edbfb6bd in QMenuBarPrivate::handleReparent (this=this@entry=0x55933b6e7000) at widgets/qmenubar.cpp:1421
#33 0x00007f08edbfb839 in QMenuBarPrivate::init (this=0x55933b6e7000) at widgets/qmenubar.cpp:705
#34 0x00007f08edbbd852 in QMainWindow::menuBar (this=0x55933b7970a0) at widgets/qmainwindow.cpp:508
#35 0x00007f08ee376337 in Konsole::MainWindow::setupActions (this=this@entry=0x55933b7970a0) at ./src/MainWindow.cpp:339
#36 0x00007f08ee37743e in Konsole::MainWindow::MainWindow (this=0x55933b7970a0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ./src/MainWindow.cpp:80
#37 0x00007f08ee36c3c0 in Konsole::Application::newMainWindow (this=this@entry=0x7ffdd9818f40) at ./src/Application.cpp:119
#38 0x00007f08ee36c6a0 in Konsole::Application::processWindowArgs (createdNewMainWindow=@0x7ffdd9818dd7: true, this=0x7ffdd9818f40) at ./src/Application.cpp:380
#39 Konsole::Application::processWindowArgs (this=0x7ffdd9818f40, createdNewMainWindow=@0x7ffdd9818dd7: true) at ./src/Application.cpp:364
#40 0x00007f08ee3705c2 in Konsole::Application::newInstance (this=0x7ffdd9818f40) at ./src/Application.cpp:168
#41 0x000055933a76138c in main (argc=<optimized out>, argv=<optimized out>) at ./src/main.cpp:226
[Inferior 1 (process 5187) detached]

Possible duplicates by query: bug 229281.

Reported using DrKonqi
Comment 1 Nicolas Fella 2022-02-20 14:07:49 UTC

*** This bug has been marked as a duplicate of bug 444192 ***
Comment 2 Lingfeng Fu 2022-09-13 11:35:27 UTC
Created attachment 152025 [details]
New crash information added by DrKonqi

konsole (22.08.1) using Qt 5.15.5

Actions taken before the crash:
- Plug in two external monitors , the 1920x1080 one as primary, and the 1440x2560 (vertical) one as secondary ("Extend to left" option in `Super + P`).
- Then log into Plasma (X11), launch any app depending on KDE framework (e.g., Konsole, systemsettings5, Dolphin).
- Crash.

Unusual behavior:
- All KDE related standalone apps crash at launch. But the plasma panels, widgets, and system tray work just fine.

-- Backtrace (Reduced):
#4  QWidget::hide (this=0x7079540a736e6f69) at kernel/qwidget.cpp:7930
#5  0x00007f1df1a9ca85 in QMenuBarPrivate::updateGeometries (this=0x5566e0099c30) at widgets/qmenubar.cpp:256
#6  0x00007f1df1aa1549 in QMenuBar::changeEvent (this=0x5566e00d1ef0, e=0x7ffe6af81cc0) at widgets/qmenubar.cpp:1446
#7  0x00007f1df194dc3f in QWidget::event (this=0x5566e00d1ef0, event=0x7ffe6af81cc0) at kernel/qwidget.cpp:8975
#8  0x00007f1df190c41e in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5566e00d1ef0, e=0x7ffe6af81cc0) at kernel/qapplication.cpp:3637