+Slow network makes a pane listing to take forever
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Strange, both 03 and 04 are hanging in ThreadedFindFirstW, which is the function calling the abort dialog after 3 seconds when there is no reaction. But this is only done when TC has the input focus. The problem could be that it loses focus when you click a lot, so windows shows it in white...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I think it would be perfect not to allow OS to show ghost windows (AFAIK they appear when application window's message processing takes a lot of time), but this will require to move all time-consuming operations to background threads and keep windows responsible by processing messages, and it may be not so easy.
I agree that both cases may be related with same code piece because in both cases TC is unable to show dialog in time. Is it possible to prevent such hangs?
What if you process main window messages before displaying 'connecting' dialog? I think it should cause returning from ghost window back to real one. Here you can find some information about preventing hangs.
I agree that both cases may be related with same code piece because in both cases TC is unable to show dialog in time. Is it possible to prevent such hangs?
What if you process main window messages before displaying 'connecting' dialog? I think it should cause returning from ghost window back to real one. Here you can find some information about preventing hangs.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I'm sorry but I cannot move everything to background threads. There are just too many functions involved. I can put certain hanging calls to background threads (as I have done before).
I have just sent you a private beta with some improvements - please test it! There will be no new public beta this week.
I have just sent you a private beta with some improvements - please test it! There will be no new public beta this week.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I understand that it is hard to move all to background and it will cause too much changes. I've tested your private beta and sent you a reply, it works better, there are no hangs longer than 20 seconds more (so no new stacks), and TC then becomes responsible again even in case of ghost window. If you want to do some specific test, please let me know.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This should work much better now with beta 13. Please send me more stack traces when you get hangs.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I added more code to show the "Drive not found" box correctly as a child of the configuration dialog if it is shown when the problem occurs.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Well, first 'Drive not found' window is now really blocks Configuration dialog. But in case of two panels with network folder 'Connecting' and 'Drive not found' windows for second panel doesn't block Configuration dialog so it becomes active and clickable but buttons do nothing until I close windows.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Sorry, I don't understand your second case. Can you give me step by step instructions what I need to do to get two dialogs 'Connecting' and 'Drive not found'? This shouldn't be possible at the same time.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Open same network folder in both panels, go to Configuration dialog and then disable adapter and click OK in dialog. TC will show 'Connecting' and 'Drive not found' for one panel first and then it will show same windows for another panel, but these second windows don't block Configuration dialog. I can activate it and bring to front leaving these windows behind dialog.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Ah, thanks for the clarification! I will try that.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Christian, today I copied a file to notebook via Wi-Fi and then shut it down, and TC hung. I've waited for 20 seconds after noticing it and copied stacks then. After resuming TC become responsible again.
Code: Select all
MIME-Version: 1.0
Content-Type: application/octet-stream; name="report5.7z"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="report5.7z"
N3q8ryccAAPy1o+ckQUAAAAAAABYAAAAAAAAAG0KTmcAGIzCaJpZYAdUVZ1/LciFpZxqSqpAOYWW
gAMymPArpZAy9hdkjWZMvWNpdYOHtuIcxgEE4Rwf6fSq0FfyQ0JeG/L1/ByCvQ7MxwqP91A4ptD+
cOAQ3nWGJY7WizksfUk+KHXDLx34pch99Av8XkAFbLyTQkL4KQqSl2pqXBkr0U9drqamYcU74Zp0
XW0v5UUPzSFKQ/0hDH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HidciUXv3ib/Hh+pQC9Pg1Yc6v8npOYfJHPbDSf7dwU5xMq+7aX
jmpP/x9C/+yc7FNgZli1SWAlGpdJW3WVlMisVXP2EVeqYWnIrXaxt3mBMwD6Sd8xZpc+HFqNih29
Dl+uUyRO4lqDHqbI7ksR6TacyCH4cZP6NmWFq2dHm/yLtaij1Igj9c6DJnpBBaMvYF5nrr+klt9Z
si6Nmmts3niBa7bXJNfGtxysAvkhMC7vMZxvwhzEkRGxw83/afekYCvBg6gBRk8UkF5FWUFdgzz7
+aPOmd6cM0cpnz00moqkUCMSQY6kLHFENQ+iAeTfCWGMI9e7V3tGzIWs/AM4Nva1C6/XAbXh2tPn
y88oclwDLRECaK0UdzqZImDNDo4L03PwmQB/8mpj+z2CWWW/hHT/AIs5lHP2WRIU/+i7LK6SllHN
LrBUKgn7w6ILCZZPmjZU3nVhxtmalzy53F6bv/aspuRNuF5Hkei5QIl6h1eXtcBLsxbH1HBJIfRT
RGPNiTpijCnaORZeJKOeMtn0qYbpvRk8lLzj6PljbUxIYT53DQ2yFbwGcIVZoLpOEWMkCGSna/on
BBKUM28ZCy9GHEPxIc+d1Bd+NuRxoKGO4Xx9xhhfc/ABBAYAAQmFkQAHCwEAASMDAQEFXQAAAQAM
nHwACAoBV35idAAABQERGQByAGUAcABvAHIAdAA1AC4AdAB4AHQAAAAUCgEAur5uBLL9zgEVBgEA
IAgAAAAA
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact: