[8.0ß23] ''cm_UnloadPlugins'' kills TC while packing 7z

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

[8.0ß23] ''cm_UnloadPlugins'' kills TC while packing 7z

Post by *MaxX »

Subj, command ''cm_UnloadPlugins'' kills TC 8.0 beta 23 (x32) while packing 7z in background.
Uused plugin - ''7zip.wcx'' v.0.7.6.5, this one - http://www.totalcmd.net/plugring/7zip_plugin.html .
x64 didn't tested yet (not enough time, i'll try later)
As I see it's normal, 'cause main window and process must be alive, but I have just self-killing operation.
What can I do? Or it's bug of TC/plugin?
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3300
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

I dont see where their is a bug?
You pack something using 7zip.wcx and then YOU tell TC he should stop using that dll - what do you expect to happen?
Apart from TC crashing?

I mean isnt that like trying to dance and then asking someone to hit your legs with a bat? :D
Hoecker sie sind raus!
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2Sir_SiLvA
Ne-a, I'm not about that.
If I hit ''cm_UnloadPlugins'' it should stop all plugins, but not kill main process. That's what I'm talking about.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3300
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

MaxX wrote:If I hit ''cm_UnloadPlugins'' it should stop all plugins, but not kill main process.
You cant have one without the other - see my dance comparison...
Thats why using something complex like TC requires you to able to think about what you wanna do before you do it :D
Hoecker sie sind raus!
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I think it is a plugin bug, not TC, because TC just tries to unload plugin DLL.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48118
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

cm_UnloadPlugins is mainly meant for developers who want to recompile their plugin without having to close TC. It does what it should, it just unloads all the plugins. It doesn't check whether any of these plugins are currently active, so don't use it while packing/unpacking in the background, or while a plugin like VisualDirSize is busy counting directories.
Author of Total Commander
https://www.ghisler.com
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2ghisler(Author)
so, you mean that killing TC is normal in such situation?
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

MaxX, TC can't prevent OS from closing it if some of its plugins cause serious errors.
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

so, you say it is plugin's bug?
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

User bug?
"saw off the branch you are sitting on"

:lol:
Holger
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Yes, it is a plugin bug, but it may be fixed since plugin comes with sources.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3300
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

MVV wrote:Yes, it is a plugin bug, but it may be fixed since plugin comes with sources.
NO :!: as HolgerK wrote its a USER-"Bug"
Hoecker sie sind raus!
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2Sir_SiLvA
There's totalcmd's OR plugin's bug. No user used there.
If ''cm_UnloadPlugins'' was called, plugins must stop working but totalcmd must be working as it was without quiet crash.
It's a bug, definitely! Don't try to say sh**.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Sir_SiLvA, TC crash is a bug. We can say that user shouldn't use this command when some pugin works but bug will remain anyway.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3300
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

2MVV
So you say in the scenario:
MaxX sits on a tree and saws branch he sits on off and falls down

You seriously think its the saws-bug that he fell down ????

Oh sure you can make everything absolutly fail safe or you can advice people how to use something proper and not do everything stupid possible....
Hoecker sie sind raus!
Post Reply