Bug 481218

Summary: Konsole crashes when turning off monitor
Product: [Applications] konsole Reporter: Mattes D <kde-bugs>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: crash CC: christoph
Priority: NOR Keywords: drkonqi
Version: 23.08.4   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mattes D 2024-02-11 12:48:50 UTC
Application: konsole (23.08.4)

Qt Version: 5.15.12
Frameworks Version: 5.114.0
Operating System: Linux 6.2.0-39-generic x86_64
Windowing System: X11
Distribution: KDE neon 5.27
DrKonqi: 5.27.10 [KCrashBackend]

-- Information about the crash:
Konsole crashes after I turn my monitor back on again (after being turned off for a while). Weirdly enough, it sometimes survives; when I have multiple instances of Konsole, only some are affected. I estimate 30 % chance of a crash for each powercycle of the monitor.

I recently upgraded from an NVidia card to an AMD card, RX 6600. The crash only happens with the AMD card. I didn't observe the crash with the NVidia card; however, there were other problems which completely rendered me unable to turn off monitor, so there hadn't been many chances to observe the behavior in the first place. I believe I got rid of all the NVidia drivers before observing the crash.

The crash can be reproduced sometimes.

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

[KCrash Handler]
#4  __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:317
#5  0x00007f56e46222e2 in memmove (__len=262104, __src=0x7f5222962610, __dest=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:36
#6  copy_unswapped (rect=<synthetic pointer>..., img=..., dstBytesPerLine=262104, dst=<optimized out>) at ./src/plugins/platforms/xcb/qxcbbackingstore.cpp:547
#7  native_sub_image (swap=false, rect=<synthetic pointer>..., src=..., dstStride=262104, buffer=0x5653f0a24fe0) at ./src/plugins/platforms/xcb/qxcbbackingstore.cpp:590
#8  QXcbBackingStoreImage::flushPixmap (this=0x5653f0a24f60, region=..., fullRegion=<optimized out>) at ./src/plugins/platforms/xcb/qxcbbackingstore.cpp:669
#9  0x00007f56e4622925 in QXcbBackingStoreImage::flushPixmap (fullRegion=false, region=..., this=0x5653f0a24f60) at ./src/plugins/platforms/xcb/qxcbbackingstore.cpp:627
#10 QXcbBackingStoreImage::put (this=0x5653f0a24f60, dst=119537677, region=..., offset=...) at ./src/plugins/platforms/xcb/qxcbbackingstore.cpp:741
#11 0x00007f56e4623257 in QXcbBackingStore::flush (this=0x5653f069be20, window=<optimized out>, region=..., offset=...) at ./src/plugins/platforms/xcb/qxcbwindow.h:127
#12 0x00007f56eab12fd4 in QBackingStore::flush (this=this@entry=0x5653f067ce20, region=..., window=0x5653f060b330, offset=...) at painting/qbackingstore.cpp:263
#13 0x00007f56eb179e72 in QWidgetRepaintManager::flush (this=this@entry=0x5653f0953480, widget=0x5653f03a3d00, region=..., widgetTextures=<optimized out>) at kernel/qwidgetrepaintmanager.cpp:1198
#14 0x00007f56eb17bae3 in QWidgetRepaintManager::flush (this=0x5653f0953480) at kernel/qwidgetrepaintmanager.cpp:1096
#15 0x00007f56eb17da50 in QWidgetRepaintManager::paintAndFlush (this=<optimized out>) at kernel/qwidgetrepaintmanager.cpp:1028
#16 0x00007f56eb1c8a01 in QWidgetWindow::handleResizeEvent (this=0x5653f060b330, event=0x7ffdffbe0ae0) at kernel/qwidgetwindow.cpp:842
#17 0x00007f56eb1cc8a9 in QWidgetWindow::event (this=0x5653f060b330, event=0x7ffdffbe0ae0) at kernel/qwidgetwindow.cpp:322
#18 0x00007f56eb16c783 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5653f060b330, e=0x7ffdffbe0ae0) at kernel/qapplication.cpp:3640
#19 0x00007f56ea4bd30a in QCoreApplication::notifyInternal2 (receiver=0x5653f060b330, event=0x7ffdffbe0ae0) at kernel/qcoreapplication.cpp:1064
#20 0x00007f56ea93fa60 in QGuiApplicationPrivate::processGeometryChangeEvent (e=<optimized out>) at kernel/qguiapplication.cpp:2603
#21 QGuiApplicationPrivate::processGeometryChangeEvent (e=...) at kernel/qguiapplication.cpp:2573
#22 0x00007f56ea916dbc in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1169
#23 0x00007f56e462df5e in xcbSourceDispatch (source=<optimized out>) at ./src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105
#24 0x00007f56e851bd3b in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f56e8571258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f56e85193e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f56ea5167f8 in QEventDispatcherGlib::processEvents (this=0x5653f0341800, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#28 0x00007f56ea4bbc2b in QEventLoop::exec (this=this@entry=0x7ffdffbe0d60, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#29 0x00007f56ea4c41d4 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#30 0x00005653efb5c815 in ?? ()
#31 0x00007f56e9a29d90 in __libc_start_call_main (main=main@entry=0x5653efb5ad00, argc=argc@entry=1, argv=argv@entry=0x7ffdffbe1078) at ../sysdeps/nptl/libc_start_call_main.h:58
#32 0x00007f56e9a29e40 in __libc_start_main_impl (main=0x5653efb5ad00, argc=1, argv=0x7ffdffbe1078, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffdffbe1068) at ../csu/libc-start.c:392
#33 0x00005653efb5d045 in ?? ()
[Inferior 1 (process 3440) detached]

The reporter indicates this bug may be a duplicate of or related to bug 463475, bug 467191, bug 468054, bug 472651, bug 474128, bug 474311, bug 475406.

Reported using DrKonqi
Comment 1 Christoph Cullmann 2024-06-06 22:13:31 UTC
Can not reproduce that with a more recent version, please try 24.02 or higher, thanks.

Qt 5.x had some bugs related to this, the Qt 6 version should be more robust.
Comment 2 Mattes D 2024-06-10 14:08:23 UTC
Hello,
true, I haven't seen a Konsole crash for quite some time now, so let's consider this fixed.
Thanks.