Bug 467191 - Konsole crashes when monitor goes to sleep on X11
Summary: Konsole crashes when monitor goes to sleep on X11
Status: RESOLVED DUPLICATE of bug 473602
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 22.12.3
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-03-11 07:55 UTC by Sophie Cheung
Modified: 2023-10-04 10:26 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (6.67 KB, text/plain)
2023-03-16 20:56 UTC, Jonáš Vidra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sophie Cheung 2023-03-11 07:55:16 UTC
Application: konsole (22.12.3)

Qt Version: 5.15.8
Frameworks Version: 5.103.0
Operating System: Linux 6.2.2-arch1-1-t2 x86_64
Windowing System: X11
Distribution: "Arch Linux"
DrKonqi: 5.27.2 [KCrashBackend]

-- Information about the crash:
Konsole crashes occasionally when an external monitor is disconnected or goes to sleep.

A custom background image (986kB, 2048x1423) is used which may be related.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  __memcpy_evex_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:265
#7  0x00007fcf694095d3 in memmove (__len=262096, __src=0x7fca8a9fe410, __dest=<optimized out>) at /usr/include/bits/string_fortified.h:36
#8  copy_unswapped (rect=<synthetic pointer>..., img=..., dstBytesPerLine=262096, dst=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbbackingstore.cpp:547
#9  native_sub_image (swap=false, rect=<synthetic pointer>..., src=..., dstStride=262096, buffer=0x56137df9e890) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbbackingstore.cpp:590
#10 QXcbBackingStoreImage::flushPixmap (this=this@entry=0x56137df9e810, region=..., fullRegion=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbbackingstore.cpp:669
#11 0x00007fcf69409913 in QXcbBackingStoreImage::flushPixmap (fullRegion=fullRegion@entry=true, this=this@entry=0x56137df9e810, region=..., fullRegion=fullRegion@entry=true) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbbackingstore.cpp:690
#12 0x00007fcf69409b77 in QXcbBackingStoreImage::flushPixmap (fullRegion=false, region=..., this=0x56137df9e810) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbbackingstore.cpp:627
#13 QXcbBackingStoreImage::put (this=0x56137df9e810, dst=134217741, region=..., offset=...) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbbackingstore.cpp:741
#14 0x00007fcf6940a4ce in QXcbBackingStore::flush (this=this@entry=0x56137da97750, window=window@entry=0x56137db28f20, region=..., offset=...) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbwindow.h:120
#15 0x00007fcf6faddd45 in QBackingStore::flush (this=this@entry=0x56137dacc5b0, region=..., window=0x56137db28f20, offset=...) at painting/qbackingstore.cpp:252
#16 0x00007fcf70182e81 in QWidgetRepaintManager::flush (this=this@entry=0x56137dfa8a40, widget=0x56137db2bef0, region=..., widgetTextures=<optimized out>) at kernel/qwidgetrepaintmanager.cpp:1198
#17 0x00007fcf701833d5 in QWidgetRepaintManager::flush (this=this@entry=0x56137dfa8a40) at kernel/qwidgetrepaintmanager.cpp:1096
#18 0x00007fcf70184ab9 in QWidgetRepaintManager::paintAndFlush (this=0x56137dfa8a40) at kernel/qwidgetrepaintmanager.cpp:1028
#19 0x00007fcf701d0f09 in QWidgetWindow::handleResizeEvent (event=0x7ffef9ec7110, this=0x56137db28f20) at kernel/qwidgetwindow.cpp:841
#20 QWidgetWindow::event (this=0x56137db28f20, event=0x7ffef9ec7110) at kernel/qwidgetwindow.cpp:322
#21 0x00007fcf70178b5c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x56137db28f20, e=0x7ffef9ec7110) at kernel/qapplication.cpp:3640
#22 0x00007fcf6f48df48 in QCoreApplication::notifyInternal2 (receiver=0x56137db28f20, event=0x7ffef9ec7110) at kernel/qcoreapplication.cpp:1064
#23 0x00007fcf6f48dfd3 in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#24 0x00007fcf6f940206 in QGuiApplicationPrivate::processGeometryChangeEvent (e=<optimized out>) at kernel/qguiapplication.cpp:2610
#25 0x00007fcf6f928885 in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#26 0x00007fcf694108d0 in xcbSourceDispatch (source=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105
#27 0x00007fcf6d7b882b in g_main_dispatch (context=0x7fcf60005010) at ../glib/glib/gmain.c:3454
#28 g_main_context_dispatch (context=0x7fcf60005010) at ../glib/glib/gmain.c:4172
#29 0x00007fcf6d80fcc9 in g_main_context_iterate.constprop.0 (context=0x7fcf60005010, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4248
#30 0x00007fcf6d7b70e2 in g_main_context_iteration (context=0x7fcf60005010, may_block=1) at ../glib/glib/gmain.c:4313
#31 0x00007fcf6f4d8c6c in QEventDispatcherGlib::processEvents (this=0x56137d76a710, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#32 0x00007fcf6f4866ec in QEventLoop::exec (this=0x7ffef9ec7400, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#33 0x00007fcf6f491219 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#34 0x00007fcf6f939fe2 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1870
#35 0x00007fcf70176f2a in QApplication::exec () at kernel/qapplication.cpp:2832
#36 0x000056137c39fb65 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/konsole/konsole-22.12.3/src/main.cpp:252
[Inferior 1 (process 3759) detached]

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

Reported using DrKonqi
Comment 1 Jonáš Vidra 2023-03-16 20:56:18 UTC
Created attachment 157340 [details]
New crash information added by DrKonqi

konsole (22.08.3) using Qt 5.15.8

Unlike the first reporter, I don't use a custom background image.

I had my laptop setup to only show the screen on the external monitor. The lid was closed. Then I disconnected the external monitor, which switched the screen to the (suspended) internal one and caused the screen to lock (the laptop itself didn't suspend, it just locks the screen). I then opened the lid, turning the internal monitor on. After unlocking the screen, I could see the Konsole window disappearing as it crashed.

-- Backtrace (Reduced):
#6  __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:273
#7  0x00007f602051a739 in memmove (__len=262096, __src=0x7f5b386b4410, __dest=0x7f5ff8600028) at /usr/include/bits/string_fortified.h:36
#8  copy_unswapped (rect=<synthetic pointer>..., img=..., dstBytesPerLine=262096, dst=0x7f5ff8600028 "") at /var/tmp/portage/dev-qt/qtgui-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/plugins/platforms/xcb/qxcbbackingstore.cpp:547
#9  native_sub_image (swap=false, rect=<synthetic pointer>..., src=..., dstStride=262096, buffer=0x5576f0c1e340) at /var/tmp/portage/dev-qt/qtgui-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/plugins/platforms/xcb/qxcbbackingstore.cpp:590
#10 QXcbBackingStoreImage::flushPixmap (this=0x5576f0c1e2c0, region=..., fullRegion=<optimized out>) at /var/tmp/portage/dev-qt/qtgui-5.15.8-r3/work/qtbase-everywhere-src-5.15.8/src/plugins/platforms/xcb/qxcbbackingstore.cpp:669
Comment 2 Dick Tracey 2023-04-24 02:59:03 UTC
This is happening to me in dolphin possibly because of the embedded konsole. Also on Arch Linux with dual monitors, 23.04.0



Application: Dolphin (dolphin), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  __memcpy_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:265
#7  0x00007f04a9c535d3 in memmove (__len=262112, __src=0x7effc58be810, __dest=<optimized out>) at /usr/include/bits/string_fortified.h:36
#8  copy_unswapped (rect=<synthetic pointer>..., img=..., dstBytesPerLine=262112, dst=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbbackingstore.cpp:547
#9  native_sub_image (swap=false, rect=<synthetic pointer>..., src=..., dstStride=262112, buffer=0x5613f67151a0) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbbackingstore.cpp:590
#10 QXcbBackingStoreImage::flushPixmap(QRegion const&, bool) (this=this@entry=0x5613f6715120, region=..., fullRegion=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbbackingstore.cpp:669
#11 0x00007f04a9c53913 in QXcbBackingStoreImage::flushPixmap(QRegion const&, bool) (fullRegion=<optimized out>, this=this@entry=0x5613f6715120, region=..., fullRegion=fullRegion@entry=true) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbbackingstore.cpp:690
#12 0x00007f04a9c53b77 in QXcbBackingStoreImage::flushPixmap(QRegion const&, bool) (fullRegion=false, region=..., this=0x5613f6715120) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbbackingstore.cpp:627
#13 QXcbBackingStoreImage::put(unsigned int, QRegion const&, QPoint const&) (this=0x5613f6715120, dst=62914569, region=..., offset=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbbackingstore.cpp:741
#14 0x00007f04a9c544ce in QXcbBackingStore::flush(QWindow*, QRegion const&, QPoint const&) (this=this@entry=0x5613f6684640, window=window@entry=0x5613f66e3d60, region=..., offset=...) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbwindow.h:120
#15 0x00007f04afce45a5 in QBackingStore::flush(QRegion const&, QWindow*, QPoint const&) (this=this@entry=0x7f049c001f70, region=..., window=0x5613f66e3d60, offset=...) at painting/qbackingstore.cpp:252
#16 0x00007f04b0382e81 in QWidgetRepaintManager::flush(QWidget*, QRegion const&, QPlatformTextureList*) (this=this@entry=0x5613f6774d70, widget=0x5613f6367760, region=..., widgetTextures=<optimized out>) at kernel/qwidgetrepaintmanager.cpp:1198
#17 0x00007f04b03833d5 in QWidgetRepaintManager::flush() (this=this@entry=0x5613f6774d70) at kernel/qwidgetrepaintmanager.cpp:1096
#18 0x00007f04b0384ab9 in QWidgetRepaintManager::paintAndFlush() (this=0x5613f6774d70) at kernel/qwidgetrepaintmanager.cpp:1028
#19 0x00007f04b03d0f79 in QWidgetWindow::handleResizeEvent(QResizeEvent*) (event=0x7ffff75f8300, this=0x5613f66e3d60) at kernel/qwidgetwindow.cpp:842
#20 QWidgetWindow::event(QEvent*) (this=0x5613f66e3d60, event=0x7ffff75f8300) at kernel/qwidgetwindow.cpp:322
#21 0x00007f04b0378b5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x5613f66e3d60, e=0x7ffff75f8300) at kernel/qapplication.cpp:3640
#22 0x00007f04af68e028 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x5613f66e3d60, event=0x7ffff75f8300) at kernel/qcoreapplication.cpp:1064
#23 0x00007f04af68e0b3 in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1474
#24 0x00007f04afb41276 in QGuiApplicationPrivate::processGeometryChangeEvent(QWindowSystemInterfacePrivate::GeometryChangeEvent*) (e=<optimized out>) at kernel/qguiapplication.cpp:2610
#25 0x00007f04afb298c5 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#26 0x00007f04a9c5a8c0 in xcbSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at /usr/src/debug/qt5-base/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105
#27 0x00007f04ad50f53b in g_main_dispatch (context=0x7f04a4000ee0) at ../glib/glib/gmain.c:3460
#28 g_main_context_dispatch (context=0x7f04a4000ee0) at ../glib/glib/gmain.c:4200
#29 0x00007f04ad56c219 in g_main_context_iterate.constprop.0 (context=0x7f04a4000ee0, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4276
#30 0x00007f04ad50e1a2 in g_main_context_iteration (context=0x7f04a4000ee0, may_block=1) at ../glib/glib/gmain.c:4343
#31 0x00007f04af6d8d3c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x5613f5e381a0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#32 0x00007f04af68668c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7ffff75f85f0, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#33 0x00007f04af6912f9 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#34 0x00007f04afb3b052 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1870
#35 0x00007f04b0376f2a in QApplication::exec() () at kernel/qapplication.cpp:2832
#36 0x00005613f43b1dab in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/dolphin/dolphin-23.04.0/src/main.cpp:249
[Inferior 1 (process 3829) detached]
Comment 3 Dick Tracey 2023-04-24 02:59:48 UTC
This the bug I reported for Dolphin: https://bugs.kde.org/show_bug.cgi?id=464967
Comment 4 Nicolas Fella 2023-08-15 13:39:40 UTC

*** This bug has been marked as a duplicate of bug 461723 ***
Comment 5 Nicolas Fella 2023-10-04 10:26:47 UTC

*** This bug has been marked as a duplicate of bug 473602 ***