Bug 457721 - Most KDE Apps crash when they are dragged by their titlebar after being corner tiled.
Summary: Most KDE Apps crash when they are dragged by their titlebar after being corne...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.25.4
Platform: Neon Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-10 14:51 UTC by Yusuf Jamal
Modified: 2022-09-10 04:36 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuf Jamal 2022-08-10 14:51:17 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
I don't know which app to insert logs for, it happens with most KDE apps like Dolphin, KWrite, System Settings.

STEPS TO REPRODUCE
1. Open a KDE app (like Dolphin)
2. Drag the title bar of the opened app window and tile it to the corner of the screen (to make it a quarter of the size of the screen) and release the mouse
3. Try to drag it again

OBSERVED RESULT
The KDE app crashes

EXPECTED RESULT
App should normally u

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon 5.25
(available in About System)
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.0-46-generic (64-bit)

ADDITIONAL INFORMATION
I got these logs for KWrite from ~/.xsession-errors whenever the crash happens:
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kwrite path = /usr/bin pid = 1761
KCrash: Arguments: /usr/bin/kwrite /home/sbeve72/.config/kwinrc 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi

And similar logs from the same file for Dolphin:
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = dolphin path = /usr/bin pid = 6184
KCrash: Arguments: /usr/bin/dolphin 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi

It seems that this crash happens only once after a restart for each app. So if Dolphin has crashed for you once, it won't crash again until you restart.
Comment 1 Nate Graham 2022-08-10 17:43:40 UTC
I can't reproduce this issue for any of my KDE apps with current git master.

Can you attach a backtrace of one of these crashes?
Comment 2 Yusuf Jamal 2022-08-11 10:37:35 UTC
(In reply to Nate Graham from comment #1)
> I can't reproduce this issue for any of my KDE apps with current git master.
> 
> Can you attach a backtrace of one of these crashes?

-- Backtrace:
Application: KWrite (kwrite), signal: Segmentation fault

[New LWP 35321]
[New LWP 35322]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f56f10be99f in __GI___poll (fds=0x7fff734d6ff8, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
__preamble__
[Current thread is 1 (Thread 0x7f56ec8e39c0 (LWP 35318))]

Thread 3 (Thread 0x7f56e8aeb700 (LWP 35322)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b3ca8fd808) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55b3ca8fd7b8, cond=0x55b3ca8fd7e0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55b3ca8fd7e0, mutex=0x55b3ca8fd7b8) at pthread_cond_wait.c:647
#3  0x00007f56e263a5eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007f56e263a1eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007f56ef953609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f56f10cb133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f56ea982700 (LWP 35321)):
#0  0x00007f56f144d9ea in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x00007f56f168fc85 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f56eefa6da1 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f56eefa7312 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f56eefa74a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f56f168f5bb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f56f163376b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f56f144d372 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f56efb89f4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007f56f144e553 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f56ef953609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007f56f10cb133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f56ec8e39c0 (LWP 35318)):
[KCrash Handler]
#4  __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:262
#5  0x00007f56ec4b1a32 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#6  0x00007f56ec4b1dcb in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#7  0x00007f56ec4b22d8 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#8  0x00007f56ec4b28b0 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#9  0x00007f56f1bde967 in QBackingStore::flush(QRegion const&, QWindow*, QPoint const&) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#10 0x00007f56f212b51d in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007f56f212c325 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007f56f212e77c in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f56f212f204 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f56f2158875 in QWidgetPrivate::syncBackingStore() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f56f2179801 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f56f217d412 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f56f211be83 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f56f2124c98 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f56f1634c6a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f56f1a1724f in QGuiApplicationPrivate::processGeometryChangeEvent(QWindowSystemInterfacePrivate::GeometryChangeEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#21 0x00007f56f1a1bce3 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#22 0x00007f56f19f266c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#23 0x00007f56ec4c03ee in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#24 0x00007f56eefa717d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f56eefa7400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f56eefa74a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f56f168f5a2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007f56f163376b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007f56f163b914 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x000055b3c93f7aa7 in ?? ()
#31 0x00007f56f0fd0083 in __libc_start_main (main=0x55b3c93f60b0, argc=1, argv=0x7fff734d8fb8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff734d8fa8) at ../csu/libc-start.c:308
#32 0x000055b3c93f810e in ?? ()
[Inferior 1 (process 35318) detached]
Comment 3 Nate Graham 2022-08-11 17:19:25 UTC
Hmm, no KDE code is implicated there. Can you install debug symbols for Qt and get a new, more-completely-symbolicated backtrace?

Have yo manually set any non-default environment variables?
Comment 4 Bug Janitor Service 2022-08-26 04:35:43 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-09-10 04:36:56 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!