Reply to topic

kdialog freezing

joeferner
Registered Member
Posts
3
Karma
0

kdialog freezing

Wed Dec 19, 2012 9:28 pm
I first experienced this problem when trying to save a file in Chrome. I looked into how the save dialog was being created and found it was running a command similar to below.

Code: Select all
kdialog -title="Save File" --getsavefilename /home/jferner/


If I run this on the command line I get the same problem. The dialog pops up but remains all gray for ~20 seconds and then shows the directory as empty with a progress bar in the bottom left then a dialog pops up saying that it's not responding. If I cancel out of the not responding dialog kdialog never recovers.
User avatar bcooksley
Administrator
Posts
19759
Karma
87
OS

Re: kdialog freezing

Thu Dec 20, 2012 7:08 am
This is quite unusual. Does a "Open File" dialog in an application such as KWrite work properly?


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
joeferner
Registered Member
Posts
3
Karma
0

Re: kdialog freezing

Thu Dec 20, 2012 2:06 pm
bcooksley wrote:This is quite unusual. Does a "Open File" dialog in an application such as KWrite work properly?


Yes open and save dialogs in KWrite work fine. What I noticed though is that when I have the open or save dialogs open in KWrite and I run "ps -Af | grep -i dialog" I do not see kdialog in the list. But when the save dialog "opens" (but doesn't respond) in Chrome I do see kdialog in the list.
User avatar bcooksley
Administrator
Posts
19759
Karma
87
OS

Re: kdialog freezing

Tue Jan 01, 2013 4:47 am
KWrite uses KDE dialogs and other systems natively, so it does not need a separate process as Chrome/Chromium does.
Just as a test - do you see this issue in applications such as VLC as well?


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
joeferner
Registered Member
Posts
3
Karma
0

Re: kdialog freezing

Tue Jan 01, 2013 4:51 am
bcooksley wrote:KWrite uses KDE dialogs and other systems natively, so it does not need a separate process as Chrome/Chromium does.
Just as a test - do you see this issue in applications such as VLC as well?


Yes this problem occurs with other programs as well.
User avatar bcooksley
Administrator
Posts
19759
Karma
87
OS

Re: kdialog freezing

Tue Jan 01, 2013 5:49 am
Which version of KDE are you using?
You may be suffering (somehow) from the issue described at http://git.reviewboard.kde.org/r/100539/


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
denisk
Registered Member
Posts
7
Karma
0
OS

Re: kdialog freezing

Wed Feb 06, 2013 1:37 pm
Same issue. Usually appears in a couple of hours after the system starts. KDE 4.8.2 (Kubuntu 12.04). Same system at home, haven't noticed any dialog freezing behavior there.
When the issue activates, it is sufficient to execute
Code: Select all
kdialog -title="Save File" --getsavefilename /home/denisk

to reproduce it. Log out cures the issue (for some time).
Can I provide any logs/debug info?
User avatar bcooksley
Administrator
Posts
19759
Karma
87
OS

Re: kdialog freezing

Thu Feb 07, 2013 9:47 am
Can you try running the kdialog command under strace, to see where it is getting stuck?
Also, (while not under strace) try attaching a debugger to it once it is stuck and generating a backtrace.

This may be helpful in determining what component is locking up.


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
denisk
Registered Member
Posts
7
Karma
0
OS

Re: kdialog freezing  Topic is solved

Thu Feb 14, 2013 9:01 am
During the last week I haven't noticed the issue happening again. I assume it was fixed by one of the daily updates. If I notice it again however, I'll post back with all necessary debugging info.
User avatar bcooksley
Administrator
Posts
19759
Karma
87
OS

Re: kdialog freezing

Fri Feb 15, 2013 5:55 am
Okay. I've marked it as solved for now - feel free to unmark it as solved if you manage to reproduce the issue again.


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
csandanov
Registered Member
Posts
1
Karma
0

Re: kdialog freezing

Fri Jun 14, 2013 6:04 am
I experienced the same issue.
For me it was caused by unreachable mounted NFS directory
jesjimher
Registered Member
Posts
1
Karma
0

Re: kdialog freezing

Thu Jul 11, 2013 9:00 am
Same happens to me. Following some of the comments here, I realized that when KDialog gets stuck, there's a CIFS mount which has problems (server down, network error or such). In fact, if I go to Dolphin and try to browse this mount, it gets stuck too. If I do a dmesg, I see "[18135.108903] CIFS VFS: Unexpected lookup error -112".

So, it seems that the problem here is a faulty mount that keeps KDialog waiting. Anyway, perhaps KDialog could use some kind of (shorter) timeout, or it should access mounted shares only as needed, not at startup.
User avatar bcooksley
Administrator
Posts
19759
Karma
87
OS

Re: kdialog freezing

Thu Jul 11, 2013 9:40 pm
In this case, the timeout is not controlled by KDE in any manner, but instead by the kernel or file system driver you have used to mount the network share into the system. In regards to not accessing the devices at startup - it is probably trying to determine the free disk space (which Dolphin stopped doing - hence why it is not affected until you try to access the mount). As far as I am aware, this behaviour cannot be deactivated at runtime unfortunately - you would need to alter the code in question.


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
drorcohen
Registered Member
Posts
1
Karma
0

Re: kdialog freezing

Thu Jan 16, 2014 12:47 pm
I am too suffering from the (nfs server not responding -> KDialog open File dialog freezing). Any workarounds ? pointers to how to change the code ?

thanks,

Dror
User avatar bcooksley
Administrator
Posts
19759
Karma
87
OS

Re: kdialog freezing

Fri Jan 17, 2014 3:36 am
There are no known workarounds for the issue i'm afraid, other than ensuring the NFS shares which are mounted are always responsive.
The file dialog code can be found in kdelibs/kio/kfile I believe. If you have any other questions regarding the codebase, I would suggest sending them to kde-devel@kde.org as the people there are likely to be more knowledgeable in regards to it.


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]

 
Reply to topic

Bookmarks



Who is online

Registered users: Arran, Baidu [Spider], bernieke, Bing [Bot], cylverbak, Exabot [Bot], Google [Bot], kduser, smankowski, Sogou [Bot], steffie, sukalyanbanga, thunder422