GNOME Bugzilla – Bug 755483
Some directory selections result in an infinite loop when deep-counting
Last modified: 2018-05-26 10:28:31 UTC
I get an endless loop when trying to show information from all directories contained in my ~/.config directory. The bug isn’t specific to that directory, but it seems to be triggered when the directory contains a number of subdirectories and files. Steps to reproduce: 1. Open ~/.config/ in nautilus. 2. Select all folders and files pressing Ctrl+A. 3. Show information with Ctrl+I. 4. I get an endless loop. I have to close the Properties Window to exit the loop. Could you confirm this bug and fix it? Many thanks for your help, Pablo
I have just discovered that there is no loop when I press Control+I with the single folder ~/.config selected. It seems to be a bug to me.
*** Bug 754505 has been marked as a duplicate of this bug. ***
*** Bug 757234 has been marked as a duplicate of this bug. ***
I can reproduce with /lib and /lib64 in master consistently.
I looked into this and sort of figured it out. At least in my case, it’s related to both directories being symlinks to the same directory (/lib -> /usr/lib, /lib64 -> /usr/lib). The deep count for the first one gets calculated, then the code starts calculating it for the second one and the first one resets. Repeat ad infinitum. That I kind of sort of fixed by checking if the file is a symlink and comparing target locations (so there are only unique paths in the list) somewhere in here: https://git.gnome.org/browse/nautilus/tree/src/nautilus-properties-window.c#n976 I’m not too happy with the performance implications with that approach, however. There is another problem (from my perspective): the sizes add up with symlinks. I’ll attach illustrations.
Created attachment 330997 [details] ~/Videos properties
Created attachment 330998 [details] Properties of two symlinks to ~/Videos
*** Bug 773068 has been marked as a duplicate of this bug. ***
I'm not sure that Bug 773068 is a duplicate because I experience the bug in a folder structure without symlinks
*** Bug 777856 has been marked as a duplicate of this bug. ***
*** Bug 780557 has been marked as a duplicate of this bug. ***
*** Bug 782444 has been marked as a duplicate of this bug. ***
*** Bug 696383 has been marked as a duplicate of this bug. ***
Duplicate at GitLab https://gitlab.gnome.org/GNOME/nautilus/issues/363
Let's move this bug to GitLab and close here. https://gitlab.gnome.org/GNOME/nautilus/issues/363