dundee / gdu

Fast disk usage analyzer with console interface written in Go
MIT License
3.75k stars 137 forks source link

Gdu hangs (100% cpu) when entering a folder with only empty files. #368

Closed borestad closed 2 months ago

borestad commented 2 months ago

Describe the bug Gdu hangs (100% cpu) when entering a folder with only empty files. It also crashes when starting normally and navigating to a folder with the same empty files. Is only killable via killall / kill -9 etc.

To Reproduce Steps to reproduce the behavior:

mkdir -p /tmp/foo && cd $_ && touch a b c d && gdu

Expected behavior It shouldn't crash

Screenshots

image image

System (please complete the following information):

Additional context Version that I use - https://github.com/dundee/gdu/releases/download/v5.28.0/gdu_linux_amd64_static.tgz

dundee commented 2 months ago

I am not able to reproduce that. Could you retry without the -x option?

dundee commented 2 months ago

Found it. This was fixed in https://github.com/dundee/gdu/pull/359, I will release 5.29.0 soon.

borestad commented 2 months ago

Amazing! ❤️