Bug 467902

Summary: Akonadi Server crashes when resizing window with rules
Product: [Frameworks and Libraries] Akonadi Reporter: DodoLeDev <N3verG0nnaGiveYouUp+kdeBugs>
Component: serverAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: adrian.groh, carl, cyrond
Priority: NOR    
Version: 5.22.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 23.04.0
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi

Description DodoLeDev 2023-03-28 22:23:09 UTC
SUMMARY
Akonadi Server crashes when I try to violate max window size rules

STEPS TO REPRODUCE
1. Open an app (for my case it was the KDE Emoji Picker)
2. Open the window rules utility
3. Add a forced max size to the window (nothing more)
4. Apply
5. Restart this app
6. Try to resize the window in such a way the rule is violated

OBSERVED RESULT
KDE Plasma crashes, then drKonqi notify me that Akonadi Server just crashed

EXPECTED RESULT
The window should just lock its dimensions, without crashing the entire Desktop Environment

SOFTWARE/OS VERSIONS
Linux: 6.2.8-arch1-1 (64-bit)
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Windowing System: Wayland

BACKTRACE

Application: Akonadi Server (akonadiserver), signal: Segmentation fault

[KCrash Handler]
#4  0x00005640712455c3 in ?? ()
#5  0x00007f82ce0b1bb0 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#6  0x00007f82ce08df2c in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#7  0x00007f82ce08ea53 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#8  0x00007f82ce0d4e88 in ?? () from /usr/lib/libQt5Core.so.5
#9  0x00007f82cc50f53b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#10 0x00007f82cc56c219 in ?? () from /usr/lib/libglib-2.0.so.0
#11 0x00007f82cc50e1a2 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#12 0x00007f82ce0d8c6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#13 0x00007f82ce0866ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#14 0x00007f82ce091219 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#15 0x000056407123af4d in ?? ()
#16 0x00007f82cd83c790 in ?? () from /usr/lib/libc.so.6
#17 0x00007f82cd83c84a in __libc_start_main () from /usr/lib/libc.so.6
#18 0x000056407123dcf5 in ?? ()
[Inferior 1 (process 19499) detached]
Comment 1 adrian.groh 2023-04-19 14:50:57 UTC
Created attachment 158214 [details]
New crash information added by DrKonqi

akonadiserver (5.22.3 (22.12.3)) using Qt 5.15.9

For me it crashed when starting to type in overview search, however, it is not reproducable

-- Backtrace (Reduced):
#5  0x00007f9434cb1c80 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#6  0x00007f9434c8e00c in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#7  0x00007f9434c8eb33 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
[...]
#12 0x00007f9434cd8d3c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#13 0x00007f9434c8668c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
Comment 3 Ruben Kelevra 2023-04-29 18:31:37 UTC
Created attachment 158541 [details]
New crash information added by DrKonqi

akonadiserver (5.22.3 (22.12.3)) using Qt 5.15.9

I've started my computer up from standby and logged in. Then the crash was shown

-- Backtrace (Reduced):
#5  0x00007f273feba41e in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#6  0x00007f273fe9620c in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#7  0x00007f273fe96d53 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
[...]
#12 0x00007f273fee3a6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#13 0x00007f273fe8e70c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5