files icon indicating copy to clipboard operation
files copied to clipboard

When a Drive is selected, Files does not refresh drive contents and deselect bookmark

Open abodedis opened this issue 3 years ago • 2 comments

What Happened

When a Drive is selected, Files occasionally does not refresh the drive contents and deselect the selected bookmark. Possibly related to #1796.

Click on Drive 1 Screenshot from 2021-08-21 10-48-07@2x

Now Click on Drive 2 Screenshot from 2021-08-21 10-48-15@2x

Expected Behavior

Window should properly refresh when a drive is selected.

Workaround: Press F5 to refresh.

Steps to Reproduce

This issue is intermittent, and the exact steps to reproduce are unknown.

  1. Open Files
  2. Select Drive(s)
  3. Select Bookmark(s)
  4. Select another drive. Issue may occur at this point. May also occur on the next start of Files.

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

abodedis avatar Aug 21 '21 15:08 abodedis

From the images, it looks like Files is just ignoring the clicks and not navigating anywhere - the pathbar, tab and view are all showing the selected bookmark. This sounds a little like #1802 except for mouse clicks. A click on a mountable bookmark (drive, volume. mount, network location) will be ignored if that bookmark is in a "working" state i.e. in the middle of being mounted or ejected, but in that case the spinner should be showing. I haven't been able to reproduce this. Does it happen with any selected bookmark (in this case smb://truenas.local/pool) or only a network location? If you could try running Files from the terminal with G_MESSAGES_DEBUG=all io.elementary.files (close all instances of Files first) and report any messages that appear after a click is ignored it might help identify the cause.

How rapidly are you clicking between bookmarks? Things that happen intermittently under the same conditions are often due to a race condition.

jeremypw avatar Aug 22 '21 08:08 jeremypw

Does it happen with any selected bookmark (in this case smb://truenas.local/pool) or only a network location?

Not sure. However, now that you mention, I've noticed with eOS 6 that it's especially glitchy regarding the network drive. Most of the things I've reported seem to start after doing things with the network drive.

If you could try running Files from the terminal with G_MESSAGES_DEBUG=all io.elementary.files (close all instances of Files first) and report any messages that appear after a click is ignored it might help identify the cause.

Will report back the next time I'm testing eOS6.

How rapidly are you clicking between bookmarks? Things that happen intermittently under the same conditions are often due to a race condition.

A normal pace, maybe once per second.

abodedis avatar Aug 22 '21 12:08 abodedis