TC hangs on some actions inside of archive
Moderators: white, Hacker, petermad, Stefan2
TC hangs on some actions inside of archive
How I found it: entered ______WINDOWS.0.DIR archive (DiskDirExtended plugin), switched to full view, opened WINDOWS.0 folder, pressed Alt+Shift+Enter and tried to copy path using click on path bar. TC hung. As I see, there should be minimal time interval between Alt+Shift+Enter and click on path bar. Sometimes all work fine, but sometimes TC freezes (I may repeat it almost every time, even if I wait for 5 seconds after size calculations), I can't find any law.
Link to file: ______WINDOWS.0.DIR.7z
Well, I don't know if it TC bug or plugin. Sometimes TC hangs when I press Left and Enter in full view (usually I use theese keys to go one level up since I'm using brief view most of time). But AFAIK TC reads whole archive at once when user enters it, so I think it is TC because on Ctrl+B I can see entire archive contents w/o troubles and then TC may freeze on Left key press (activate command line).
Sometimes TC freezes when I just trying to switch to another panel from this archive and to change drive there. In brief view I have such bugs too.
Well, it is interesting 'cause I don't have this problem with clean INI with 7z and dir plugins installed. I'll try to locate problem.
OK, I've found bug source - it was plugin GAUP_PRO 0.6.0.3. When I removed its line from [PackerPlugins] section, bug disappered.
The only interesting question is how this plugin can cause TC freeze when I'm opening archive using completely another packer (7z and dir plugins have maximum priority, and GAUP has minimum). So, this packer shouldn't be called at all!
Link to file: ______WINDOWS.0.DIR.7z
Well, I don't know if it TC bug or plugin. Sometimes TC hangs when I press Left and Enter in full view (usually I use theese keys to go one level up since I'm using brief view most of time). But AFAIK TC reads whole archive at once when user enters it, so I think it is TC because on Ctrl+B I can see entire archive contents w/o troubles and then TC may freeze on Left key press (activate command line).
Sometimes TC freezes when I just trying to switch to another panel from this archive and to change drive there. In brief view I have such bugs too.
Well, it is interesting 'cause I don't have this problem with clean INI with 7z and dir plugins installed. I'll try to locate problem.
OK, I've found bug source - it was plugin GAUP_PRO 0.6.0.3. When I removed its line from [PackerPlugins] section, bug disappered.
The only interesting question is how this plugin can cause TC freeze when I'm opening archive using completely another packer (7z and dir plugins have maximum priority, and GAUP has minimum). So, this packer shouldn't be called at all!
- ghisler(Author)
- Site Admin
- Posts: 48104
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I guess that the GAUP plugin was announcing to TC that it can detect archives by content. Just move the plugin behind the 7zip plugin (in the wincmd.ini) to make sure that 7zip can see the file before it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 48104
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
TC tries the plugins in the order they appear in the pack dialog (if they support packing), which should be the order in which they appear in the [packerplugins] section. Maybe the 7zip plugin reports that it cannot handle the specific archive...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 48104
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Maybe you can send a problematic archive to the GAUP author and ask for help?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 48104
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Currently it's not possible to handle a completely hanging plugin. Many functions would have to be moved to background threads for that, but most plugins aren't even thread-safe...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
The problem here is that buggy plugin shouldn't be called at all since plugin with higher priority should handle this archive - I have associated DIR extension with DiskDirExtended and opened archive by Enter (CanYouHandleThisFile shouldn't be used here AFAIK) - so TC should just open archive using DiskDirExtended. I can't understand why here presence of GAUP hangs TC.