elementary / files

File browser designed for elementary OS
https://elementary.io
GNU General Public License v3.0
327 stars 77 forks source link

Loading Animation stops while loading the contents of large folders #1793

Open abodedis opened 3 years ago

abodedis commented 3 years ago

What Happened

Loading Animation stops while loading the contents of large folders.

Expected Behavior

Loading Animation should continue animating while loading the contents of large folders.

Steps to Reproduce

  1. Set Files to view icons as grid.
  2. Open a large folder known to take awhile to load (e.g., folder with 5000+ photos, perhaps more). This may depend on the speed of the computer used to replicate this issue.
  3. Look at the spinning loading animation while the folder contents attempt to load.
  4. Animation will stop only after a few seconds which may lead the user to believe that Files has become unresponsive or has crashed. However, it is still loading. If left alone, the folder and thumbnails will successfully load after several seconds or minutes.

Logs

Platform Information

OS: elementary OS 6 Odin x86_64 Kernel: 5.11.0-27-generic Packages: 1699 (dpkg), 20 (flatpak) Shell: bash 5.0.17 Resolution: 3840x2160 DE: Pantheon WM: Mutter(Gala) Theme: io.elementary.stylesheet.blueberry [GTK3] Icons: elementary [GTK3] Terminal: io.elementary.t CPU: Intel Xeon W3680 (12) @ 3.326GHz GPU: NVIDIA GeForce GT 1030 Memory: 1370MiB / 24047MiB

jeremypw commented 3 years ago

The actual loading of the files happens asynchronously and should not be blocking the spinner, but I am not sure about the laying out and drawing of the view which done by Gtk.IconView and is very slow for large folders.