+Slow network makes a pane listing to take forever

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

Moderators: Hacker, petermad, Stefan2, white

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

Post by *ghisler(Author) »

This is something new: It's in a timer function used either when
- a drive is added or removed, resulting in a WM_DEVICECHANGE message
or
- the user used the context menu

It hangs in a SetCurrentDirectory call.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It wasn't a context menu because TC was inactive. Maybe I've inserted or removed USB stick before shutting notebook down and returning to TC, it wasn't immediately.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, I can reproduce the problem with a USB stick. It should work better now in beta 14.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

New freeze:

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="1.7z"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="1.7z"

N3q8ryccAANXn4M5JAcAAAAAAABMAAAAAAAAAEr4RawAHIwDkFCgXG/CC0uzGC2c4rgMUgae+gLn
sREkJRT8S++dlTJBVyT5LLDgnw7NxSw64q3Ksm2o41f7BkXcCD2ZXeCr8vQKVaIE4EK0iZvqxZP7
QK9CcMHzw8zOBrwDC6zyHBCCIYwCUoVb3WmIr6pSOaApbzTHU/bWS+UK3pPnGK8n6IeLlMLq4afA
+SIGnwiAw6TCLi32aP/eTrxoiWTDldOcIKeBKYEUxJGvHU1lDtix5fbpgK4tdFb8cS7jXRjqMiOg
h0+MgMGas5lX1UpO4bptu4NCbQEHh+muy3XpF/21Bi9zZVzWq8GibRIZ5KPQJU/6T0qlnFzMibRJ
k3ecC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V0A
AAEADKcCAAgKAXwP9voAAAUBEQ0AMQAuAHQAeAB0AAAAFAoBAGa1rRCBAc8BFQYBACAoAAAAAA==

I've worked with notebook via network folder, then disconnected it from network in order to pack into case. When I returned to TC, it hung, I got ghost window, after more than 30 seconds I suspended it and got stacks. After resuming it become responsible again only after 2-3 minutes.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Is this with beta 13 or 14?
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2MVV
This is caused by the function which checks for shared folders. It is only called in local dirs and in admin shares like C$, but doesn't seem to have any effect there. You can turn it off via wincmd.ini:
TestIfSharedDir=0

I will change the code to handle this.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

BTW share name was CC$, so it was an admin share. Didn't know that it matters.

Hm, do you try to say that this hang was because TC tried to show 'hang' icon for some dirs displayed in a shared folder?

Does TestIfSharedDir work for both local and remote dirs (admin shares) so it will disable both?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TestIfSharedDir controls both. I recently moved the check from the directory read function to the function where individual lines are displayed, to make reading of subdirs with 1000s of subfolders faster. With the new method, it's checked only for the displayed folders. But this means that we get a problem when the connection is lost after reading the directory.

Please set TestIfSharedDir=0 until the problem is fixed, maybe you find hangs in other functions this way.
Author of Total Commander
https://www.ghisler.com
User avatar
HolgerK
Power Member
Power Member
Posts: 5409
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

ghisler(Author) wrote:TestIfSharedDir controls both. I recently moved the check from the directory read function to the function where individual lines are displayed, ...
This may also explain an effect i've noticed yesterday while copying some large files to an USB 3.0 memory stick (F2 queue).
Moving the cursor up/down inside a large USB folder with several subfolders was annoying slow (even with a BTM speed limit of 2500 kB/s).
Sometimes the inverted cursor was shown as blank line and TC stuck for several seconds.
I could not reproduce the behavior with TC 8.01.

After reading this thread i've set "TestIfSharedDir=0" in TC 8.5b14 and the slowdown seems to be gone.

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

Post by *ghisler(Author) »

Yes, the problem is that the shared state is currently not cached by mistake. This will also be fixed in the next beta.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

If there isn't any reply to this thread within the next 7 days, I will move it to fixed bugs.
Author of Total Commander
https://www.ghisler.com
User avatar
HolgerK
Power Member
Power Member
Posts: 5409
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Sorry, I do not have access to a slow network, but i can confirm that starting with TC850b15 my test case: "Navigation inside a usb stick folder while a background process copies data to the stick" is much more fluid than in TC850b14.
Even if TestIfSharedDir is set to 1(default).

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

Post by *ghisler(Author) »

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