Directory fails to load a second time after editing files with thumbnails
Reported by @miketwebster in !670 (merged)
Affected version
Files 40.1 and git master.
Steps to reproduce
- Open a folder containing an editable file showing a thumbnail (e.g.
mockup.svg
,presentation.odp
) - Open the file in the editor application (e.g. Inskscape or LibreOffice Impress, respectively)
- In the Files app, navigate to a different location.
- In the editor app, make changes in the file and save them.
- In the Files app, navigate back to the folder containing the edited file.
Current behavior
The folder never finishes loading (there is a floating status bar at the bottom). The edited file never shows up. Navigating away and back a second time fixes the issue.
Expected behavior
The folder loads as normal, with the edited file getting an updated thumbnail.
Additional information
I've noticed that the the "thumbnail"
job (from src/nautilus-directory-async.c
) is not triggered when the directory doesn't finish loading, but it's triggered the second time. I didn't debug it further.
Considering the fix for an identical issue in nemo, this is possibly a leak of a . However, applying the same fix in nautilus is apparently not enough here.
git-bisecting from the point when nemo has been forked from nautilus is not easy, but might be helpful.