dust: Dust never finishes

Did cargo install and ran it in my home directory. Quickly counted up to

Indexing: . 2835562 files, 299G ... /

but then doesn’t seem to get any further. Interrupted it after 5 minutes.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 23 (7 by maintainers)

Commits related to this issue

Most upvoted comments

With v1.2.1 I now intermittently face the below situation:

❯ dust ~/Library/Containers/com.readitlater.PocketMac/Data/Library/Application\ Support/Pocket/offline/cache0/RIL_assets
Indexing: /Users/sankalp/Library/Containers/com.readitlater.PocketMac/Data/Library/Application Support/Pocket/offline/cache0/RIL_assets 18869 files, 2.3G ... -
thread '<unnamed>' panicked at src/dir_walker.rs:309:17:
Multiple Interrupted Errors occurred while scanning filesystem. Aborting
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Other times it finishes execution and shows results (for the same dir).

Managed to get a backtrace after many retries:

❯ RUST_BACKTRACE=1 dust ~/Library
Indexing: /Users/sankalp/Library 672875 files, 98G ... /
thread '<unnamed>' panicked at src/dir_walker.rs:309:17:
Multiple Interrupted Errors occurred while scanning filesystem. Aborting
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Indexing: /Users/sankalp/Library 811229 files, 101G ... |
thread '<unnamed>' panicked at src/dir_walker.rs:291:54:
called `Result::unwrap()` on an `Err` value: PoisonError { .. }
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Indexing: /Users/sankalp/Library 811229 files, 101G ... /
thread '<unnamed>' panicked at src/dir_walker.rs:291:54:
called `Result::unwrap()` on an `Err` value: PoisonError { .. }
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

thread '<unnamed>' panicked at src/dir_walker.rs:291:54:
called `Result::unwrap()` on an `Err` value: PoisonError { .. }
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Indexing: /Users/sankalp/Library 811229 files, 101G ... /
thread '<unnamed>' panicked at src/dir_walker.rs:291:54:
called `Result::unwrap()` on an `Err` value: PoisonError { .. }
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Yes thanks @sankalp-khare - I think your summary is correct

I think the fix is simple - we just remove the second unwrap2 - I think this is simply my own dumb refactoring error:

https://github.com/bootandy/dust/pull/497

coo, this is interesting, I’ll look into this soon.

thanks for the investigation so far

I have not had it happen again, but I know that if you scan your home directory from a newly installed application on macOS, it will pop up dialogs asking for permissions to read various directories.

well there is no verbose in the flags yet i have tried to add it locally to my version-tbh i don’t want this flag to be there for many reasons fork my repo I have added the following changes to the latest commit