Bug 352165 - kOrganizer freezes whole desktop when trying to add an attachment to an event
Summary: kOrganizer freezes whole desktop when trying to add an attachment to an event
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: incidence editors (show other bugs)
Version: 5.0
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-02 15:50 UTC by Gunter Ohrner
Modified: 2017-06-25 08:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gunter Ohrner 2015-09-02 15:50:31 UTC
When trying to add an attachment to an event and opening the file dialog, the file dialog behaves erratically or is hidden beneath other windows and kOrganizer is likely to behave erratically like pushing up the CPU load and making the whole desktop / plasma unusable (too many repaints?).

Reproducible: Always

Steps to Reproduce:
1. Open the Add-Event-dialog in kOrganizer.
2. Switch to the "Attachments" tab and click "Add".
3. Click the file chooser button.
4. Possibly, the file chooser dialog appears in the background. Try to find it and try to change its size / resize it.

Actual Results:  
On my system, this reproducibly leads to high CPU load and lets the whole desktop freeze after a short time, only updating the GUI once in a while in larger steps.
Switching to a text console and killing kOrganizer restores everything to normal.

Expected Results:  
The file chooser dialog should behave sanely and allow attachments to be added.
Comment 1 Sergio Martins 2015-09-03 18:26:30 UTC
Which Qt version ?

0	QXcbWindow::relayFocusToModalWindow	qxcbwindow.cpp	873	0x7fd0864db160	
1	QXcbWindow::doFocusOut	qxcbwindow.cpp	914	0x7fd0864db239	
2	QXcbConnection::handleXcbEvent	qxcbconnection.cpp	1076	0x7fd0864c8f15	
3	QXcbConnection::processXcbEvents	qxcbconnection.cpp	1502	0x7fd0864c983b	
4	QObject::event	qobject.cpp	1249	0x7fd0992de091	
5	QApplicationPrivate::notify_helper	qapplication.cpp	3718	0x7fd09ada9234	
6	QApplication::notify	qapplication.cpp	3499	0x7fd09adae269	
7	QCoreApplication::notifyInternal2	qcoreapplication.cpp	1014	0x7fd0992aea08	
8	sendEvent	qcoreapplication.h	227	0x7fd0992b0c0a	
9	QCoreApplicationPrivate::sendPostedEvents	qcoreapplication.cpp	1648	0x7fd0992b0c0a	
10	QEventDispatcherUNIX::processEvents	qeventdispatcher_unix.cpp	579	0x7fd099306082	
11	QUnixEventDispatcherQPA::processEvents	qunixeventdispatcher.cpp	62	0x7fd08653ea9d	
12	QEventLoop::exec	qeventloop.cpp	204	0x7fd0992abe42	
13	QDialog::exec	qdialog.cpp	541	0x7fd09af94a84	
14	KDEPlatformFileDialogHelper::exec	kdeplatformfiledialoghelper.cpp	290	0x7fd082f65ca1	
15	QDialog::exec	qdialog.cpp	537	0x7fd09af948dc	
16	KUrlRequester::KUrlRequesterPrivate::_k_slotOpenDialog	kurlrequester.cpp	450	0x7fd09e245fc0	
17	QMetaObject::activate	qobject.cpp	3721	0x7fd0992dd28d	
18	QMetaObject::activate	qobject.cpp	3586	0x7fd0992dda97	
19	QAbstractButton::clicked	/data/extra2/installation/qt/x86_64-dev/lib/libQt5Widgets.so.5	303	0x7fd09b1353f2	
...	<More>


Lots of focus in events..
Comment 2 Sergio Martins 2015-09-03 18:26:50 UTC
I'm on Qt dev branch, and reproduced it.
Comment 3 Gunter Ohrner 2015-09-03 19:13:40 UTC
I'm running Qt 5.4.1.
Comment 4 Denis Kurz 2017-06-23 20:19:55 UTC
This bug has never been confirmed for a Kontact version that is based on KDE Frameworks, except possibly a Technology Preview version 5.0.x. Those versions differ significantly from the old 4.x series. Therefore, I plan to close it in around two or three months. In the meantime, it is set to WAITINGFORINFO to give reporters the opportunity to check if it is still valid. As soon as someone confirms it for a recent version (at least 5.1, ideally even more recent), I'll gladly reopen it.

Please understand that we lack the manpower to triage bugs reported for versions almost two years beyond their end of life.
Comment 5 Gunter Ohrner 2017-06-25 08:42:21 UTC
Works with KDE Neon packages in following versions:

KOrganizer
Version 5.5.2

KDE Frameworks 5.35.0
Qt 5.9.0 (kompiliert gegen 5.7.1)
Das xcb Fenstersystem