[TC 9.10 RC2] Crash when copying some files using BTM

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
EricB
Senior Member
Senior Member
Posts: 355
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

[TC 9.10 RC2] Crash when copying some files using BTM

Post by *EricB »

I was just copying a few selected files from one panel to the other, using BTM (I have AlwaysCopyInBackground=2 in wincmd.ini) and encountered a crash.
Source panel is a OneDrive synched folder.

---------------------------
Total Commander 9.10RC2
---------------------------
Fatal error in BTM thread, aborting!
Access violation at address 7754BF70. Read of address 09DD0418
Windows 10 10.0 (Build 15063), base: 00400000

Please report this error to the Author, with a description
of what you were doing when this error occurred!

Windows exception: C0000005
Stack trace:
7754BF70
00406748 0058D039 >0041181A 0041182D 00403670
Raw:
00589B32 00589B44 00406748 0058D039 004023EF 0041181A
0041182D 00403670
Press Ctrl+C to copy this report!
---------------------------

OS is Windows 10 Pro v1703.

Regards, EricB
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

NOT confirmed. Anyone else having this problem?

EricB: Can you open the BTM via main menu "Commands"?
Author of Total Commander
https://www.ghisler.com
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

ghisler(Author) wrote:NOT confirmed. Anyone else having this problem?

EricB: Can you open the BTM via main menu "Commands"?
No crash here with TC 9.10 RC3 x64.
But the BTM and TC im Foreground has problems to access some folders in the OneDrive source tree.
There are no access errors if I enter this folders, only on copy operations.
I guess this has something to do with the new OneDrive status of dirs.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Your report seems to be completely unrelated. Please post a new separate thread with more details. I have adapted TC to the new OneDrive and I don't currently have any problems with it, so more details would be appreciated. I can't fix it if I can't reproduce it.

EricB: Can you open the BTM via main menu "Commands"?
Author of Total Commander
https://www.ghisler.com
User avatar
EricB
Senior Member
Senior Member
Posts: 355
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

Post by *EricB »

Hi Christian,

I can open BTM without problems via Commands menu.
The reason I mentioned OneDrive is that I got this crash once, and it occurred when copying from this OneDrive synced folder. So I speculated a relation is present, maybe the files I tried to copy where being synced at the time? I'll try to reproduce.

Note: this is OneDrive for Business, part of the Office 365 suite.

Regards, EricB
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

ghisler(Author) wrote:Your report seems to be completely unrelated. Please post a new separate thread with more details. I have adapted TC to the new OneDrive and I don't currently have any problems with it, so more details would be appreciated. I can't fix it if I can't reproduce it.

EricB: Can you open the BTM via main menu "Commands"?
Ok, I made a new one.
https://www.ghisler.ch/board/viewtopic.php?t=48688
But its not completely unrelated as I tried to test the posters BTM problem.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2EricB
Could it be that Total Commander is installed on a network drive? The dialog layout is loaded by Windows from the totalcmd.exe file, so if this fails, the CreateDialog function could crash.
Author of Total Commander
https://www.ghisler.com
User avatar
EricB
Senior Member
Senior Member
Posts: 355
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

Post by *EricB »

Hi Christian,

TC is installed locally, albeit portable inside Dropbox.

I installed RC3 after reporting this RC2 issue, and today I got another dialog. It was displayed immediately after unlocking my machine, so there were no actions being performed at that moment. I noticed that after the dialog was clicked away, the last 10 buttons on my buttonbar were iconless/grey. After TC restart they were properly restored again.

Would you like me to post this new Access violation in this thread or open a new one?

Any suggestions on how to obtain more info (e.g. stack size/fragmentation, running threads etc) so I can provide you with extra info when this happens again? For me it is no problem to leave some monitoring program open in the background.

I'd like to rule out the possibility I'm looking at a hardware failure here....
Regards, EricB
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, please post them in this thread, they are probably the same problem.

Please also try with TC 9.10 final, and report crashes in it in a separate thread. Thanks!
Author of Total Commander
https://www.ghisler.com
User avatar
EricB
Senior Member
Senior Member
Posts: 355
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

Post by *EricB »

OK, here it is. I just installed TC 9.10 final, and will report any new issues separately.

---------------------------
Total Commander 9.10RC3
---------------------------
Access violation at address 76E0BF70. Read of address 0C810040.
Access violation at address 76E0BF70. Read of address 0C810040
Windows 10 10.0 (Build 15063), base: 00400000

Please report this error to the Author, with a description
of what you were doing when this error occurred!

Windows exception: C0000005
Stack trace:
76E0BF70
005FEB4C 004026B8 005FF57B 005FF75E 00449A86 00427172
0044858D 0044A58E >00427172 00449B30 00427172 0042C83E
0042C98C
Raw:
005FE972 005FEB4C 005C0071 005C0070 00401DC0 00401E61
00401DC0 00401E61 004023EF 004026B8 00402249 004023EF
004026B8 00403707 005FF0D1 005C0071 0045002B 0042004B
0042008D 00420324 004077BB 00430023 0041C0DB 005FF57B
004023EF 005C0071 0041366C 00402249 005FF75E 00449A86
00427172 0044A907 00402E8E 0044858D 0044A85D 004290B9
00449BFA 0044A58E 00427172 004037F6 00449B30 00427172
0042C83E 0042C98C 0042CB46
Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Yes No
---------------------------
Regards, EricB
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That's something new: It crashes in function CreateIconFromResourceEx when loading an icon of the toolbar.

1. Can you reproduce it by choosing configuration - change button bar - OK? This will force a reload of all icons.

2. If yes, try finding the problematic icon: Right click on a button, click on "Change", then on OK.
Author of Total Commander
https://www.ghisler.com
User avatar
EricB
Senior Member
Senior Member
Posts: 355
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

Post by *EricB »

Hi Christian,

I tried reproducing with TC 9.10 Final (x32) using all three of my laptops, but did not get any access violations. I saw the timestamps of the .bar and .br2 files change to current, so the icon reload must have been executed. I'll try later on with RC3, since the latter AV was only shown in that version.
Regards, EricB
User avatar
EricB
Senior Member
Senior Member
Posts: 355
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

Post by *EricB »

I also tested with RC3, same story, not readily reproducible. Seems like some race condition... I'll keep tabs on this and report if I find more AV's.
Regards, EricB
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You wrote that "It was displayed immediately after unlocking my machine". Often network connections haven't been fully re-established at this time. Maybe one of the icons in the button bar is loaded from a network share? Can you check this please?
Author of Total Commander
https://www.ghisler.com
User avatar
EricB
Senior Member
Senior Member
Posts: 355
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

Post by *EricB »

I checked and no network share references. I tend not to do that anyway, because it would diminish portability. Most paths even use environment variables like %COMMANDER_PATH%, %COMMANDER_DRIVE% or %COMMANDER_TOOLS% (the latter is defined in autoruns.wdx and points to a symlinked tools folder in dropbox. It is defined as %COMMANDER_DRIVE%\TOOLS).
Regards, EricB
Post Reply