pop-os / cosmic-files

WIP COSMIC file manager
GNU General Public License v3.0
109 stars 82 forks source link

Panic when operating on files in trash #508

Open qarmin opened 3 weeks ago

qarmin commented 3 weeks ago

Cosmic-files version: 5e0ef57ef853953f1e201bdbd08c531e8743acd9

Issue/Bug description: When trying to open some files in trash and later removing all files from it, I got this crash(app still works, so looks that only one thread crashed)

thread 'tokio-runtime-worker' panicked at /home/rafal/.cargo/git/checkouts/trash-rs-73fb3f8cbeeee6a0/483f839/src/freedesktop.rs:266:5:
assertion failed: virtually_exists(&file).map_err(|e| fs_error(&file, e))?
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2024-09-27T19:14:26Z WARN  cosmic_files::app] failed to rescan: task 89 panicked with message "assertion failed: virtually_exists(&file).map_err(|e| fs_error(&file, e))?

Steps to reproduce: TODO - happened only once and cannot really reproduce it, but trying

joshuamegnauth54 commented 2 weeks ago

Ping me if you're able to replicate it.

I may be able to fix it, but I don't want to modify either project unless I can test my code.