Lollypop crashes when scanned file (on_dir_changed) is deleted in the wrong moment
Environment
- Lollypop version: 1.4.5
- GTK+ version: 3.24.23
- Operating system: Fedora 33
Bug
Lollypop crashes repeatedly while the library is changed in background.
I have the following scenario:
- Downloading my music library with the Nextcloud synchronization client
- In the same time I was listening to music with lollypop.
- The synchronization client creates hidden temporary files like
.some name.flac.~450a3a96
and moves them to the correct file when it's finished.
If inotify passes the new filename which is deleted in the meantime, it crashes in inotify.py:94:
def __on_dir_changed(self, monitor, changed_file, other_file, event):
...
if changed_file.query_exists():
# Ignore non audio
--> info = changed_file.query_info(SCAN_QUERY_INFO,
Gio.FileQueryInfoFlags.NONE)
with the message:
gi.repository.GLib.Error: g-io-error-quark: Fehler beim Holen der Informationen für Datei »/home/chris/Musik/Johannes Enders Rainer Böhm/B/.04 - Johannes Enders Rainer Böhm - untitled.flac.~450a3a96«: No such file or directory (1)