Bug 340584 - KDialog file chooser sometimes takes a long time to work
Summary: KDialog file chooser sometimes takes a long time to work
Status: RESOLVED WORKSFORME
Alias: None
Product: kdialog
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Brad Hards
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-02 21:15 UTC by Matthew Cline
Modified: 2018-11-12 16:23 UTC (History)
2 users (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 Matthew Cline 2014-11-02 21:15:54 UTC
The KDialog file chooser (--getsavefilename option) sometimes takes a long time before the window pops up; when this is happening, it also takes a long time for the choice to get back to the caller.  When this starts happening, it continues happening every time the file chooser is used, until KDE is restarted.

Reproducible: Sometimes




When run from the command line while the bug is happening, the following lines are sent to stdout/stderr shortly before the window pops up:

> kdialog(7721)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned initialize() D-Bus call 
> failed:  "Did not receive a reply. Possible causes include: the remote application did not send 
> a reply, the message bus security policy blocked the reply, the reply timeout expired, or the 
> network connection was broken."

> Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
> Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)

strace shows the pause happening in poll(), and ltrace shows it happening in KFileItem::KFileItem(unsigned int, unsigned int, KUrl const&, bool)
Comment 1 Christoph Feck 2014-11-03 12:26:08 UTC
Do you have remote folders in the places panel?
Comment 2 Matthew Cline 2014-11-03 22:46:42 UTC
There's a "Network" entry which has a location of "remote:/", and lists "Network", "Network Services" and "Samba Shares" (all of them shown in italics).  However, it's normally hidden.  I have Dropbox installed, and am also using the computer as an NFS server for a VMWare player which runs on the same computer, but running those things doesn't start the problem.
Comment 3 Christoph Feck 2014-11-04 11:21:00 UTC
So it looks something blocks the session D-Bus. This could either be caused by a kded module, or even a third-party application or component. Can you reproduce the steps to make it block? If seems to appear automatically only after using the machine for some time, it could be related to packages update modules.

To check if a kded module is responsible, please follow http://kdepepo.wordpress.com/2011/05/11/troubleshooting-kded4-bugs/
Comment 4 Matthew Cline 2014-11-05 10:31:14 UTC
Some further information from when it happened again:

* There were three defunct kded processes.
* Trying to open up any of the folders under the "Network" group would cause a long delay, when there's no delay when the bug isn't present.
* Stopping and then starting the D-Bus service didn't help.
Comment 5 Christoph Feck 2014-11-05 22:39:28 UTC
You could try disabling the faulty kded module. For instructions, see the link from comment #3.
Comment 6 Matthew Cline 2014-11-05 23:01:14 UTC
Okay, I've disabled the network related services and the time-zone service.  If the problem recurs even with these turned off, I'll report immediately.  If the bug doesn't recur for a while, I'll note that.
Comment 7 Andrew Crouthamel 2018-11-12 02:54:12 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Matthew Cline 2018-11-12 10:06:29 UTC
I haven't seen this problem in a while.
Comment 9 Andrew Crouthamel 2018-11-12 16:23:17 UTC
Thanks for the update!