Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic assertion failed: virtually_exists(&file).map_err(|e| fs_error(&file, e))? #119

Open
qarmin opened this issue Sep 27, 2024 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@qarmin
Copy link

qarmin commented Sep 27, 2024

When testing cosmic-files I got only once this crash

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

not sure how to reproduce

pop-os/cosmic-files#508

@Byron Byron added bug Something isn't working help wanted Extra attention is needed labels Sep 28, 2024
@Byron
Copy link
Owner

Byron commented Sep 28, 2024

Thanks for reporting!

I think the issue here might be a race condition, and some other program meddled with the file so it indeed didn't exist anymore even though it did before.

A way to fix this should be to remove the assertion, and depending on the context fail with an error, or ignore the now missing file if that's feasible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants