TC9b17 x64 locked bitlocker in the tab, freeze on startup

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

Post Reply
serjayes
Junior Member
Junior Member
Posts: 56
Joined: 2004-01-19, 16:53 UTC

TC9b17 x64 locked bitlocker in the tab, freeze on startup

Post by *serjayes »

I have had both in the left tab and the right tabt the directory on the drive on which the Bitlocker is applied, and if I keep that bitlocker drive locked and start the TCb16 or b17 the title registration info screen (I am registered) appears and everything just stays in that state, I have to kill it from the Task Manager.

EDIT: the prompt actually appears but somewhere behind, the registration info stays topmost and unhidable. It's on Windows 8.1 x61.

I've never observed such a problem on previous betas, including TCb15. I've now reinstalled TCb15 and it started with the dialog "this drive appears to be locked by bitlocker, unlock it? yes no" for both the left and the right tab which is obviously better than staying freezed. Some older versions simply didn't offer unlocking but treated such a path as some on the unplugged disk, which is also better than the b16 behaviour.

The drive on which the bitlocker is applied but which I manually unlock is one partition of my main hard disk.
Last edited by serjayes on 2016-10-06, 15:17 UTC, edited 1 time in total.
(user licence #64081)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will check it. Which Windows version do you use?
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I could not reproduce this bug. If I do not set BitlockerAlwaysDecrypt=1, then TC just switches to drive c: on both sides. If I set BitlockerAlwaysDecrypt=1, then I get the normal request to unlock the drives.

Does anyone else have this problem?
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Since I couldn't reproduce it, I chose a radical method: When the license dialog is up, TC will handle bitlocker like TC 8.5x did: Not at all. It will just switch to the windows system drive (usually c:) which cannot be encrypted when Windows is running.
Author of Total Commander
https://www.ghisler.com
serjayes
Junior Member
Junior Member
Posts: 56
Joined: 2004-01-19, 16:53 UTC

Post by *serjayes »

It's Windows 8.1 x64

I don't have anything in the INI about the bitlocker, it "just worked"

b15 displayed the prompt "do you want to unlock"

b16 and now also b17 seem "freezed" but in fact, now that I investigated, the prompt appears, but instead of it to become topmost, it stays somewhere behind and the topmost and "always on" remains the "registration dialog" so I somehow didn't see that if I'd move the registraton dialog there's chance to see the prompt, at least sometimes.

So that's the difference in behaviour between b15 and b16/b17. Ob b16 and b17 the registration dialog remains topmost and unhidable, and the bitlocker prompt stays behind. On b15 the bitlocker prompt was the topmost.
(user licence #64081)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, I cannot reproduce that in Beta 17 - TC just switches to c:\ instead.
Author of Total Commander
https://www.ghisler.com
serjayes
Junior Member
Junior Member
Posts: 56
Joined: 2004-01-19, 16:53 UTC

Post by *serjayes »

It looks like this:

http://imgur.com/a/uZQSU

Pic1:

Image: http://i.imgur.com/vustWAp.png

How I made the first picture:

- Started TC b17, bitlocker d disk is locked.
Result: Topmost is the reg info dialog. The bitlocker dialog exists but it is hidden behind the reg info.

- Started MSPaint.
Result: Topmost is still the reg info dialog. As long as TC is running and the initially hidden bitlocker prompt is not answered the topmost will be above everything else, above other programs too.

- Moved dialogs to make the smallest image and show the windows.
Result: Topmost reg info. Then under it is the window of MSPaint. Then under them is the rest of the windows from TC b17, bitlocker prompt is above the main TC window with panes. Had I not moved everything to make the picture of the order of windows the bitlocker prompt would have been invisible.

- Pressed print screen. Closed TC b17, pasted to MSPaint and uploaded.
The title bar says b17.

Also from the dir:

05.10.2016 09:00 8,663,176 TOTALCMD64.EXE


Pic2:

I've repeated the whole procedure once again but starting the Process Explorer to show that the path of the starting program is the one where the given date (5. October) is.

Image: http://i.imgur.com/tcpivB5.png

This time the Process Explorer remains hidden by the reg info dialog from the TC. Somewhere behind the process explorer is the "bitlocker prompt."

My INI doesn't have any "bitlocker" entry at all.

Interestingly, as soon as I click yes or no on the bit locker dialog, the reg info screen disappears, even if in both of the panes is the locked disk. That means that during the second bitlocker prompt, there's no reg info screen anymore, nothing is obscured.

Repeated with the fresh INI (TC started with /i=c:\mytemp\test.ini, there was no ini there before, changed both tabs to d, closed TC, locked bitlocker, started TC with same ini) The only line that looks "strange" (and maybe changes something?) is:

Code: Select all

[FileSystemPlugins64]
$checksum$=3014672
Again, Windows 8.1 x64, the bitlocker partition d is on the same disk as the partition c.

The most active thread stack, as reported by the process explorer, is probably the one which waits for the dialog:

Code: Select all

user32.dll!WaitMessage+0xa
user32.dll!SetWindowRgnEx+0x247
user32.dll!EnableScrollBar+0x3f2
user32.dll!SoftModalMessageBox+0x852
user32.dll!MessageBoxIndirectW+0x26d
user32.dll!MessageBoxTimeoutW+0xba
user32.dll!MessageBoxW+0x4e
TOTALCMD64.EXE+0x2fd66

I've also made the stackdump of all threads from the WinDbg, it's here (updated, I've reloaded to the newest system symbols):

http://pastebin.com/zYwEz4M2
(user licence #64081)
User avatar
silencer
Senior Member
Senior Member
Posts: 208
Joined: 2003-05-13, 13:18 UTC
Location: The Netherlands

Post by *silencer »

So, i can confirm this behaviour on win10 x64.

-When the drive is locked, you will get the startupscreen in the foreground. The bitlocker unlock question is behind this window as described by serjayes. You can move the startupscreen aside and continue.

-When there is no key file available, you get the 1-2-3 dialog. after clicking the correct number, you will not get the unlock dialog, but the "drive not found" dialog.

but in both scenarios, TC works just as normal.

So best "workaround"
-have your tc key in place. :D
-Startupscreen=0 in the wincmd.ini
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I could reproduce it now after some tries, must be a timing problem. Using my own dialog instead of Windows MessageBox fixes it. It has the additional benefit that I can show checkmark "Don't show this message in future sessions".
Author of Total Commander
https://www.ghisler.com
Post Reply