TC7.50a freezes when CD is ejected

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

Moderators: Hacker, petermad, Stefan2, white

sopel
Junior Member
Junior Member
Posts: 5
Joined: 2009-12-16, 11:34 UTC

TC7.50a freezes when CD is ejected

Post by *sopel »

TC 7.50a freezes completely when a CD is ejected while its content is still displayed in the file list - no way to kill it, forces system reboot. OS is XP Pro SP2.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Re: TC7.50a freezes when CD is ejected

Post by *karlchen »

Hello, sopel.
TC 7.50a freezes completely when a CD is ejected while its content is still displayed in the file list - no way to kill it, forces system reboot. OS is XP Pro SP2.
Not reproducible here.
  • inserted a CD
  • switched 1 file panel to drive D: (CD)
  • changed to some arbitrary subfolder on the CD
  • ejected the CD
  • told TC to show a file on the CD in "lister" => "file not found" (to be expected)
  • switched to another file panel tab
  • switched back to the tab showing the CD folder => T.C. started thinking for a few seconds (10?) => "Drive not found, select a different drive" => different drive selected
  • No reboot, not even a T.C. restart
Environment:
+ Total Commander 7.50a
+ Windows XP Prof SP1, 32bit

You may have to provide more details on your environment (T.C., T.C. plugins, Windows environment) so that others can either reproduce the problem or at least guess the cause.
Also: what does Explorer do when you open a folder on the CD and then eject this CD?

Regards,
Karl
sopel
Junior Member
Junior Member
Posts: 5
Joined: 2009-12-16, 11:34 UTC

Post by *sopel »

Might be something specific to my PC... On my laptop, following your procedure, when the CD is ejected TC automatically switches back to C: (doesn't give me the choice to select other drives though). On my PC TC freezes...
TC 7.02a was fine (behaved as you described), no problems with Windows Explorer either.
What info do you need?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC tries to re-read the drive when it gets a drive change notification. Apparently your CD-ROM driver hangs in this case, which is quite unusual. As a workaround, you can tell TC to not react to drive insert and eject notifications:

Please add the following string to the file wincmd.ini, section [Configuration]:
DeviceChange=0

You can edit the wincmd.ini via Configuration - Change settings files directly.
Author of Total Commander
https://www.ghisler.com
sopel
Junior Member
Junior Member
Posts: 5
Joined: 2009-12-16, 11:34 UTC

Post by *sopel »

I'm afraid that did not help. Still, as soon as the CD is ejected TC freezes and there is no way to kill it (not even with Task Manager, or taskkill command) other than rebooting the system...
Let me know if there anything I can do to help to track it down.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, sopel.

As you do not experience any hangs inside Explorer and as I cannot reproduce the problem on my XP machines (SP1 and SP2), I wonder whether some T.C. plugin might be somehow involved.

Can you reproduce the problem if you launch T.C. with an empty wincmd.ini file?
"Fully\qualified\path\to\totalcmd.exe" /N /I="%temp%\damnsmall.ini" /F="%temp%\freshftp.ini"
Replace "Fully\qualified\path\to\" by the appropriate pathname, please.

Kind regards,
Karl
sopel
Junior Member
Junior Member
Posts: 5
Joined: 2009-12-16, 11:34 UTC

Post by *sopel »

Karl,

I'm afraid your suggestion did not help...
On my side I have tested older TC versions that I could put my hands on, using the same settings and the same .ini files, and found that TC 7.01 works fine but TC 7.02a and 7.04a freeze (I did not manage to find any other versions) - I hope you find that helpful.
I've also left frozen TC 7.50a over the weekend, but again that did not help - I found it frozen on Monday morning as I left it on Friday afternoon...
Let me know if there is anything else I could try to help.

Pawel
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, Pawel.
I'm afraid your suggestion did not help...
May we conclude that you did run the commandline
totalcmd.exe" /N /I="%temp%\damnsmall.ini" /F="%temp%\freshftp.ini"
but that you experienced the same problem as before, even though T.C. 7.50a used freshly created INI-files (hence its default values and no plugins whatsoever)?

As I have not been able to reproduce the problem on my machines, the fact that you do not experience the problem under T.C. 7.01, but do experience the problem starting with T.C. 7.02, does not really ring any bell here. Sorry. :(

In case some change which happened from T.C. 7.01 to T.C. 7.02 causes a conflict with some driver on your system, there is no way for me of finding out which change this may have been. Maybe the programme author has got a chance by going through his changelogs.

Kind regards,
Karl
sopel
Junior Member
Junior Member
Posts: 5
Joined: 2009-12-16, 11:34 UTC

Post by *sopel »

Karl,

Yes, I did try the command you suggested, fresh copy of TC started (with none of my settings or plugins) and yes, the same problem came up, with TC freezing when ejecting a CD.
Thanks for all your help!

Pawel
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, Pawel.

Sad, but true, it looks as if we have not come any closer to the cause of your problem yet. :(
And I have not got a good idea where to look next.

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

Post by *ghisler(Author) »

I will compare the code of TC 7.01 and 7.02 to find out what might be causing this, but unfortunately I don't have much hope without a way to reproduce it...
Author of Total Commander
https://www.ghisler.com
bajbek
New Member
New Member
Posts: 1
Joined: 2010-01-05, 14:17 UTC

Post by *bajbek »

I also have a problem with freezing the TC 7.50a after removing a CD from the drive. However, I observed an interesting relationship that TC 7.50a hangs only when the CD was displayed in the right panel. When the CD was displayed in the left panel, after removing the CD, everything was ok and the left panel displays the contents of C: drive. I thought I would share with you this information, which may help find the bug.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Can someone who has this problem with TC 7.50a check if it's still there in TC 7.55? The new version should now avoid to access a drive when Windows reported that the disk was ejected or the drive removed.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Up!
Author of Total Commander
https://www.ghisler.com
atw109s5
New Member
New Member
Posts: 1
Joined: 2010-04-26, 11:46 UTC

Post by *atw109s5 »

Just now downloaded TC7.55B3 and it's still the same for me. Also doesn't matter if I open the CD contents in the right or left pane. I simply use the drive buttons to go to the CD, navigate one directory down and eject the CD. TC still in the old dir, hanging with the hourglass.
Post Reply