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 756280 - GDrive sync freezes main UI
GDrive sync freezes main UI
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
3.18.x
Other Linux
: Normal major
: 3.18
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-10-09 09:26 UTC by Nikki Kononov
Modified: 2015-10-14 10:22 UTC
See Also:
GNOME target: ---
GNOME version: 3.17/3.18


Attachments
file: get filesystem type asynchronously (8.44 KB, patch)
2015-10-14 10:19 UTC, Carlos Soriano
committed Details | Review

Description Nikki Kononov 2015-10-09 09:26:12 UTC
While Nautilus connects to GDrive and syncs all the folders and files, the main UI freezes and cannot be interacted with until all files and folders are synced and displayed.
Comment 1 Carlos Soriano 2015-10-09 09:35:14 UTC
Saw it myself, I think is the check for the filesystem type.
->3.18
Comment 2 Ondrej Holy 2015-10-13 13:27:48 UTC
Then the check for filesystem type have to be done asynchronously if it is not. Especially google backend is really slow if there is a lot of files on the drive...
Comment 3 Carlos Soriano 2015-10-14 10:19:25 UTC
Created attachment 313253 [details] [review]
file: get filesystem type asynchronously

We were peeking the filesystem type synchronously since nautilus
was checking for some file infos that are only required once
synchronously. However the call for the filesystem is usually slow
which makes nautilus main thread hang.

To avoid I/O in the main thread, make the filesystem type request
asynchronously and part of all the others attributes for the file.
Comment 4 Carlos Soriano 2015-10-14 10:22:18 UTC
Attachment 313253 [details] pushed as bfd9ccf - file: get filesystem type asynchronously