After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 328217 - File chooser dialog hangs when a network bookmarks is unreachable.
File chooser dialog hangs when a network bookmarks is unreachable.
Status: RESOLVED DUPLICATE of bug 155420
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.8.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2006-01-22 21:27 UTC by Emmanuel Rodriguez
Modified: 2006-01-23 18:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Simple test case (1.38 KB, text/plain)
2006-01-22 21:38 UTC, Emmanuel Rodriguez
Details

Description Emmanuel Rodriguez 2006-01-22 21:27:23 UTC
File chooser dialog hangs when a network bookmarks is unreachable.

The file chooser dialog hangs when a GTK bookmark points to a host that can be resolved but can't be reached.
This happens when an application invokes the method 'gtk_file_chooser_set_local_only' in order to request a backend that is not local.

What happens is that the application invoking the file dialog freezes and doesn't respond to events anymore until the dialog appears.
The problem is that the dialog takes a log time to appear.
During that time, the CPU usage, the load and the memory consumption are normal.
Everything seems to indicate that the application is waiting for something.
After a while, usually about 30 seconds, the file dialog appears and the application responds normally to events.

To reproduce the bug do the following:
1. Add a network bookmark to a host that can't be reached:
   echo "sftp://1.2.3.4/" >> ~/.gtk-bookmarks
2. Invoke a file dialog from an application, make sure that the gtk_file_chooser_set_local_only was invoked.
   For example, with gedit perform the following:
   File -> Open... 
3. Be patient and wait, eventually the file dialog will appear.

NOTE: In order to reproduce this bug it is important that the host used in the bookmark can be resolved. 
Use an IP address that can't be reached as the bookmark's host or add a hostname in the file /etc/hosts that resolves to an IP address that can't be reached and use that hostname.
If the bookmark has a hostname that can't be resolved the dialog will appear without any problems.
Comment 1 Emmanuel Rodriguez 2006-01-22 21:38:40 UTC
Created attachment 57879 [details]
Simple test case

Small program that can be used to test the bug. This program creates a dialog with the property 'local-only' set to false and times some of the operations.
Comment 2 Federico Mena Quintero 2006-01-23 18:02:33 UTC

*** This bug has been marked as a duplicate of 155420 ***