fastfetch: [BUG] fastfetch on Windows hangs for a long time when calculating the drive size. On WSL, it is instant.

General description of bug:

  • What happened: fastfetch on Windows hangs for a long time before outputting the drive information. Subsequent fastfetch runs are quicker, but after some time, it gets slower again. On WSL, fastfetch is much faster and ouputs all the drive information normally.
  • What should happen: It should be quicker.
  • Fastfetch version used: fastfetch 2.10.2 (x86_64)
  • Did it work in an older version: no
  • Where did you get the binary: scoop
  • Does this issue still occurs in the latest dev build?

Often helpful information:

Screenshot: It hangs here for a while: image

The content of the configuration file you use (if any): (none)

Output of fastfetch -c ci.jsonc --format json:

//paste here

Output of fastfetch --list-features:

threads
vulkan
zlib
opencl
Proprietary GPU driver API

If fastfatch crashed or freezed

Paste the stacktrace here. You may get it with:

# You may need Ctrl+C to stop the process if it freezes
gdb -q -ex 'set confirm off' -ex run -ex 'bt full' -ex quit --args /path/to/fastfetch

If you are able to identify which module crashed, the strace can be helpful too

strace /path/to/fastfetch --multithreading false -s {MODULE} --pipe

If you cannot do the instructions above, please upload the core dump file:

If my image logo didn’t show / work

  • The image protocol you used:
  • The terminal you used: Wezterm
  • Upload the image file here, or paste the image URL:
  • Does it work with --logo-width {WIDTH} --logo-height {HEIGHT}?

If fastfetch behaves incorrectly on shell starting

  • The bug is reproduceable with fresh / clean shell configuration (i.e. fastfetch is the single line of .zshrc or ~/.config/fish/config.fish):
  • Does sleep 1 before running fastfetch work?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

@ykhan21 Just use --disk-folders C:\

I decided removing --disk-ignore-remote. Instead, use --disk-folders to set which folders you want to detect, which matches behavior of @ShowDisks in winfetch. Default to all unlike winfetch, however.

See fastfetch -h disk-folders for detail