Bug 481312

Summary: Konsole crashes both under Wayland and X11 session
Product: [Applications] konsole Reporter: svsh991
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 23.08.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description svsh991 2024-02-14 09:10:59 UTC
Application: konsole (23.08.4)

Qt Version: 5.15.12
Frameworks Version: 5.115.0
Operating System: Linux 6.7.4-arch1-1 x86_64
Windowing System: Wayland
Distribution: "Arch Linux"
DrKonqi: 5.27.10 [KCrashBackend]

-- Information about the crash:
Starting Konsole under both X11 or Wayland sessions results in segfault. 
Prior to this I manually shutdown laptop usig power button. After recent 
pacman -Syu closing lid with connected screen results in laptop not being
properly getting out of sleep. I have enabled option to not enter into 
sleep after closing laptop lid when external monitor is connected. After 
opening lid laptop screen turn on, but display is black and I have to open
system settings and rearrange diplay layout to make it work again.

The crash can be reproduced every time.

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

[KCrash Handler]
#4  0x00007d7f1ef8ed74 in QImage::constBits() const () at /usr/lib/libQt5Gui.so.5
#5  0x00007d7f1c93e7da in QtWaylandClient::QWaylandShmBackingStore::resize(QSize const&) () at /usr/lib/libQt5WaylandClient.so.5
#6  0x00007d7f1c93e91e in QtWaylandClient::QWaylandShmBackingStore::beginPaint(QRegion const&) () at /usr/lib/libQt5WaylandClient.so.5
#7  0x00007d7f1f0eac0e in QBackingStore::beginPaint(QRegion const&) () at /usr/lib/libQt5Gui.so.5
#8  0x00007d7f1f78437c in ??? () at /usr/lib/libQt5Widgets.so.5
#9  0x00007d7f1f79ae80 in QWidgetPrivate::syncBackingStore(QRegion const&) () at /usr/lib/libQt5Widgets.so.5
#10 0x00007d7f1f7cf8ab in ??? () at /usr/lib/libQt5Widgets.so.5
#11 0x00007d7f1f7788ff in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#12 0x00007d7f1ea9bef8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#13 0x00007d7f1ef48f54 in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () at /usr/lib/libQt5Gui.so.5
#14 0x00007d7f1ef2a6f5 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#15 0x00007d7f1c97fcf5 in ??? () at /usr/lib/libQt5WaylandClient.so.5
#16 0x00007d7f1cbacf69 in ??? () at /usr/lib/libglib-2.0.so.0
#17 0x00007d7f1cc0b3a7 in ??? () at /usr/lib/libglib-2.0.so.0
#18 0x00007d7f1cbab162 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#19 0x00007d7f1eaead0c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#20 0x00007d7f1ea9ac04 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#21 0x00007d7f1ea9c0a3 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#22 0x00006035b453fb15 in ??? ()
#23 0x00007d7f1e243cd0 in ??? () at /usr/lib/libc.so.6
#24 0x00007d7f1e243d8a in __libc_start_main () at /usr/lib/libc.so.6
#25 0x00006035b45403a5 in ??? ()
[Inferior 1 (process 5202) detached]

Reported using DrKonqi
Comment 1 svsh991 2024-02-14 09:35:30 UTC
Additional info: when running Code - OSS with opened terminal inside of it or running another terminal emulator such as kitty I'm able to open Konsole just fine. While successfully running Konsole doesn't using this method I can close any terminal emulators without Konsole  crashing afterwards. Already tried
1) Removing konsolerc
2) pacman -Rcns konsole then pacman -S konsole
Comment 2 svsh991 2024-02-14 09:40:50 UTC
Running pacman -Syu seems to fix this issue. I'm dumb for not doing that.