TC hangs when marking directories

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

Moderators: white, Hacker, petermad, Stefan2

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

Post by *ghisler(Author) »

Hmm, these should both cause no problems - except when something in c:\ProgramData points back to somewhere inc:\Users or in "c:\Documents and Settings"...
Author of Total Commander
https://www.ghisler.com
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

ghisler(Author) wrote:Hmm, these should both cause no problems - except when something in c:\ProgramData points back to somewhere inc:\Users or in "c:\Documents and Settings"...
Yes (except that the "virtual" content of these directories is counted multiple time, also these Junctions and Symlinks are only present because some older 2000/xp - not vista aware - installer or programs are used to use a hardcoded "C:\Documents and Setting\All users" path.)

As neither roentgen nor i can confirm this recursive counting, it may be caused by a faulty setup on fhub's PC.

BTW, TC does already ignore the files behind a Junction during space calculation.
But "All Users" is a Symbolic Link (shown as <SYMLINKD>in command prompt), and the size is counted when pressing <Space>.

An option like Herr Mann's suggestion from the corresponding german thread
"Ignore/hide Symlinks and Junctions with hidden and or system attribute"
would be nice, especially if the size of these linked directories would not be taken into account.

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

Post by *ghisler(Author) »

Yes (except that the "virtual" content of these directories is counted multiple time
This is intentional: When you select these folders and copy them e.g. to an external harddisk, all these linked dirs would also be copied multiple times...
Author of Total Commander
https://www.ghisler.com
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Mmmh, and why is there a difference when copying
the "Default User" (hidden/system <Junction>)
instead of "All Users"(hidden/system <Symlinkd>)

Both are only there for compatibility reasons to direct pre-Vista programs to store their files into the correct locations.

If I want to backup the files behind "All Users", a backup of "C:\ProgramData" is all I need.

Regards,
Holger
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

So just select that and not the other dirs. :)
Author of Total Commander
https://www.ghisler.com
User avatar
kotlomoy
Member
Member
Posts: 100
Joined: 2008-03-09, 07:27 UTC

Re: TC hangs when marking directories

Post by *kotlomoy »

fhub wrote: on my new Vista system TC 7.04a hangs when I mark a directory which contains those strange NTFS folder links (<LINK>), and TC tries to calculate the folder size!
Partially confirmed -- TC doesn't hang but it takes very very LOOONG to calculate! End it calculates wrong! My C:\Users is 1.05Gb but TC calculates 45GB!!! My C: disk's size is 32Gb.

I have Vista 64bit Ultimate and TC 7.04a
Last edited by kotlomoy on 2009-02-08, 14:41 UTC, edited 1 time in total.
#213083 Single user license
BranchViewExtended
User avatar
kotlomoy
Member
Member
Posts: 100
Joined: 2008-03-09, 07:27 UTC

Re: TC hangs when marking directories

Post by *kotlomoy »

fhub wrote: In the meantime I´ve found that exactly the same problem exists with e.g. the ´Branch View´ feature (Ctrl-B) of TC, also with this function TC hangs on such folders.
Same here
#213083 Single user license
BranchViewExtended
User avatar
kotlomoy
Member
Member
Posts: 100
Joined: 2008-03-09, 07:27 UTC

Post by *kotlomoy »

I have this endless loop with <LNK> links:

E:\Users\All Users\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Applica .... and so on

May be TC shouldn't calculate links?

Branch View shows multiple identical files.

Very annoying actually :( All this . And shows wrong sizes :?
#213083 Single user license
BranchViewExtended
User avatar
karlchen
Power Member
Power Member
Posts: 4601
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hm, cannot confirm. Do not see any such problem on Windows Vista Home Premium (32bit, ger) and TotalCommander 7.04a here:
+ C:\users => 792.132.774 bytes, 1.409 files, 830 folders
+ C:\Users\All Users\Application Data as well as
+ C:\Users\All Users\Anwendungsdaten will be recoginzed as "links", no sizes reported at all.

If I follow the link and end up in C:\ProgramData, the reported sizes for C:\ProgramData will be: 149.243.275 bytes, 2.479 files, 306 folders.

This suggests that T.C. does not follow the links C:\Users\All Users\Application Data and C:\Users\All Users\Anwendungsdaten when it calculates the disk space occupied by C:\Users.

Anyway, no endless loop occurs here.

Branchhview on C:\Users\All Users\Application Data and C:\Users\All Users\Anwendungsdaten will work correctly. All 2.479 files inside C:\ProgramData will be listed. No endless loop occurs here, either.

As I can only test on Vista 32bit, but not on Vista 64bit, the reported problem might be caused by some difference between the 32bit and the 64bit version of Vista.

Karl
User avatar
kotlomoy
Member
Member
Posts: 100
Joined: 2008-03-09, 07:27 UTC

Post by *kotlomoy »

Previous I tried [Alt+Ctrl+Enter], [Ctrl+B] and [Shift]. Now I'll try [Ctrl+L] to get file count:

Image: http://s50.radikal.ru/i127/0902/25/fbcf6fdc8e1f.jpg

This is [Ctrl+L] window for my "C:\users" directory (actually it is not C:\users but E:\users cause E: is my system disk)

As you can see:
45Gb occupied while disk e:\ have 32Gb size

By the way: my system (not only TC) was totaly hanged during calculation :?
#213083 Single user license
BranchViewExtended
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Could someone try whether this works better now, please? TC should follow links only when they don't cause an infinite loop. Unfortunately double links like dir1\link1->dir2, dir2\link2->dir1 cannot be detected yet. These seem to exist on Windows 7, but not on Vista.
Author of Total Commander
https://www.ghisler.com
User avatar
kotlomoy
Member
Member
Posts: 100
Joined: 2008-03-09, 07:27 UTC

Post by *kotlomoy »

It works worse for me: http://s44.radikal.ru/i104/0905/ac/771bb6b1fb08.jpg

As you can see, million files :? 95Gb on 32Gb disk :?

TC (not entire system) hanged during calculating (it took several minutes)

----
sorry forgot to change lang
#213083 Single user license
BranchViewExtended
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

95Gb on 32Gb disk
Well that's less than infinity ;-)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2kotlomoy
Can you try the same in TC 7.04a? Do you get the same size, or even larger?

TC 7.5 beta still follows links, so you will always get larger numbers this way, but it will not follow infinite link loops.
Author of Total Commander
https://www.ghisler.com
User avatar
kotlomoy
Member
Member
Posts: 100
Joined: 2008-03-09, 07:27 UTC

Post by *kotlomoy »

2ghisler
TC 7.04a works better for me: http://i048.radikal.ru/0905/36/3f9dd6623d35.jpg

I think TC7.5 still follows infinite loops, even deeper than TC7.04a
#213083 Single user license
BranchViewExtended
Post Reply