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 536437 - dragging files over sidebar blocks totally Nautilus
dragging files over sidebar blocks totally Nautilus
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: [obsolete] Sidebar
2.22.x
Other All
: Normal major
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 531435 540484 544787 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-06-03 14:17 UTC by Baptiste Mille-Mathias
Modified: 2008-07-26 01:15 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
patch for gvfsdnetwork to attempt to hide this problem (3.74 KB, patch)
2008-06-27 13:50 UTC, A. Walton
none Details | Review

Description Baptiste Mille-Mathias 2008-06-03 14:17:51 UTC
I'm using the navigation mode (not the the spatial) with the place sidebar active.
I wanted to move files from the nautilus window to the desktop, when the pointer passed over the sidebar, the pointer became blocked during several seconds.

I can see this behavior regularly.

I'll try to have strace or gdb strack trace.
Comment 1 Cosimo Cecchi 2008-06-03 18:17:29 UTC
I reproduced it. My guess is this happens because in nautilus-dnd.c:check_same_fs () we do sync I/O. I think a solution for this would be storing filesystem_id in NautilusFile and use its caching facility to obtain the information.

Also, I think this is also what triggers bug 531435.
Comment 2 Baptiste Mille-Mathias 2008-06-03 19:34:31 UTC
*** Bug 531435 has been marked as a duplicate of this bug. ***
Comment 3 Kai Willadsen 2008-06-15 16:01:39 UTC
The same behaviour can be triggered by passing over desktop files that are web links (i.e., such as those gained by dragging a URL from epiphany to the desktop).
Comment 4 A. Walton 2008-06-27 12:43:28 UTC
*** Bug 540484 has been marked as a duplicate of this bug. ***
Comment 5 A. Walton 2008-06-27 13:50:21 UTC
Created attachment 113533 [details] [review]
patch for gvfsdnetwork to attempt to hide this problem

This will hide the problem for a lot of people, I think, but it comes at a rather nasty price. This patch makes the network backend mount instantly and make same_fs() return much more quickly, but as a result, we have to scan the network every time we enumerate files on the virtual file system. If your network is extraordinarily slow, this means that Nautilus may spin a while looking for servers (but, importantly, will not block; you will still be able to use other windows and such). I'm not exactly sure how evil this will be as my home network has about three "servers", and we're already getting reports of Nautilus used in locations with thousands of servers, so it really needs to be tested to see if this is a huge hindrance to the usability of this backend for those people. (Of course, an even better fix is a rewrite of some of the internals of this backend to do async/threaded I/O, but that's best saved for 2.24+.)

So while this solves a couple of other problems, it is definitely the wrong fix for this problem. We still need to rewrite this code in Nautilus, as this behavior will manifest for any other file system that may take a while to query_info.
Comment 6 Christian Neumair 2008-07-23 22:18:33 UTC
The issue has been fixed in Nautilus 2.25.1, with a solution similar to what Cosimo proposed in comment 1. Closing.
Comment 7 A. Walton 2008-07-26 01:15:15 UTC
*** Bug 544787 has been marked as a duplicate of this bug. ***