Directory size scan getting stuck

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
betatester314
Junior Member
Junior Member
Posts: 7
Joined: 2009-10-24, 08:57 UTC

Directory size scan getting stuck

Post by *betatester314 »

TC 7.50a (and earlier versions) sometimes gets stuck while scanning for directory sizes (Alt-Shift-Enter). Pressing Esc, then repeating the operation seems to resolve this.

The issue reproduces more easily on large directory trees and might involve other applications accessing the hard-disk at the same time.

This item was extracted from the 'Longstanding Issues' topic in the suggestions forum.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48096
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This can happen when there are infinite loops via hard links, e.g. a hard link pointing to the same directory, or a parent of the same directory. TC tries to detect these, but some hard links have access rights which disallow programs from finding out the link target.
Author of Total Commander
https://www.ghisler.com
betatester314
Junior Member
Junior Member
Posts: 7
Joined: 2009-10-24, 08:57 UTC

Post by *betatester314 »

This makes sense, but it doesn't explain why it happens more often when other programs access the same directories simultaneously. Maybe it has to do with the directory contents being modified while the scan is taking place.

In any case, performing this task in the background with a reasonable timeout could improve the experience.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48096
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC 7.51 will do it in the background.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48096
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Can someone test this, please? ESC should abort any hanging background directory calculations now.
Author of Total Commander
https://www.ghisler.com
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, Christian.

T.C. 7.55pb1 performs the calculation in the background.
When I pressed the ESC button the calculation stopped immediately.

I could tell because for those sub-folders the sizes of which had not been calculated
  • the "?" was converted back to "<DIR>" (column size)
  • the folder icons returned to their normal design, i.e. the overlay icons indicating the background calculation were removed
Therefore I assume that the reported problem can be considered solved by the new "calculate file and folder sizes in a background thread" feature.

Kind regards,
Karl
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48096
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for your feedback!
Author of Total Commander
https://www.ghisler.com
Post Reply