Random crash when cutting/pasting file
Affected Version
- Version: 45.2
- Distribution: Ubuntu 23.10
- Also affects Gnome 46/Ubuntu 24.04 LTS
- Also happens with development version: No (at least I haven't been able to reproduce it so far)
Steps to reproduce
- Open 2 tabs on 2 different folders
- Update a file from the first folder using a 3rd-party software (e.g. LibreOffice, script)
- In the first tab, cut the file (Ctrl-X)
- Navigate to the second tab
- Paste the file (Ctrl-V)
Expected Behavior
The file has been moved between the 2 folders and Files doesn't crash.
Actual Behavior
On random occasions, Files either:
- freezes for a few seconds (the dialog to kill it or wait appears) and then crashes
- crashes instantly
Please note that despite Files' crash, the file has successfully been moved.
Additional Information
- When starting Nautilus in debug mode, the following warning shows up right when Files crashes:
** (org.gnome.Nautilus:61400): WARNING **: 21:29:31.964: Attempted to add a non-existent file to the view.
- Please note that when trying to reproduce the issue with the Flatpak development version, I sometimes get the above warning but Files doesn't crash
- Also note that once the warning has appeared in the development version, after attempting to reproduce the issue dozens of times, the warning never shows up anymore until I restart Nautilus
- This crash happens very frequently, sometimes after the first cut/paste, usually after a few ; I rarely can cut/paste more than a dozens times before a crash, which is pretty annoying since my workflow involves this operation a lot
- I can also reproduce the bug by moving the file between the 2 folders using the mouse
- I've never experienced this crash in the past, it started around 3 weeks ago after a software update
- Full stack trace: coredumpctl_gdb.txt
Edited by Sébastien Maillard