Solved [TC9b7] Overall progres bar in BTM shows wrong values.

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Solved [TC9b7] Overall progres bar in BTM shows wrong values.

Post by *petermad »

If I use the Background Transfer Manager with a few small files (30 - 100 kB) then when the transfer (copy) is done the overall progress bar ends at a percentage lower than 100% (I have seen down to 25%).

With 2 very big files (500 Mb) it ends at 100% but if I after these two add a small file then it ends at 99%.

If I upload 1 small file it ends at 0% - I have to get up to a file size around 19 Mb before it ends at 100%.

If I in the source panel open the program folder for TC9B7 and select these files:
TCLZMA64.DLL
TCMADM64.EXE
TCMDX32.EXE
TCUNIN64.EXE
TCUNIN64.WUL
and then repeatedly tranfer (copy) these 5 files to another harddisk partition using the BTM (overwrite all). then I end up with all kinds of final overall progress bar percentages like 53%, 0% and 99% - with other file selections of smaller files I get other numbers.

Expexted behaviour: either show 100% or 0% when the transfer is done and consistantly show the same valu for transfer of the same files.
Last edited by petermad on 2021-05-30, 12:02 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Isn't that just because the dialog box closes too quickly, before the progress bar can reach 100%?

Any how did you see this anyway? It would be over in a few milliseconds...
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Any how did you see this anyway? It would be over in a few milliseconds...
The BTM dialog box doesn't close after the transfer is done (I am not talking about the F5 - F2 background copying) - and the progress bar stays permanently at the wrong number (like 53%) after the transfer - so there is no problems seeing it.

Steps to reproduce.
1. Make an empty test directory, preferable on another partition of the same physical drive that your TC is installed on.
2. Open TC9b7 x64 with a clean ini file.
3. Go to Configuration -> Options -> Copy/Delete -> disable "Use standard copy method (recommended)" and chose either "Use default method only" or "Also use big file copy mode".
4. Go to TC9b7s program directory in the left panel and the test directory in the right panel.
5. Mark these 5 files in the left panel (it also happen with other file selections, so it is just to do the same as I do):
TCLZMA64.DLL
TCMADM64.EXE
TCMDX32.EXE
TCUNIN64.EXE
TCUNIN64.WUL
6. Go to Commands -> Background Transfer Manager
7. Click the + button in BTM and choose "Add selected items for copying"
8. Click OK to the suggested target path.
9. Look at the overall progress bar in the BTM - it might already show a percentage other than 0 or ?
10. Do step 7 and 8 again and click "Overwrite all"
11. Now here the overall progress bar shows 75%
12. Do step 10 several times - now I get various values for the overall progress bar like 0%, 26%, 53%, 75% and 99%.

13. Go to Configuration -> Options -> Copy/Delete -> enable "Use standard copy method (recommended)".
Now it is not as easy to reproduce the the bug, but if you in stead of "Overwrite all" chose "Overwrite" for a couple of files and then chose "Overwrite all", and thereafter do step 10 again it will probably show up after a few tries.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
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 have checked it now - TC indeed updates the progress bar only every 100 ms, so when the operation is over, the bar will stop at the point of the last update.

I have changed the behaviour now: TC will now reset both bars to 0% when all operations are over.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Confirmed fixed in TC9b8 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I think I have some kind of another bug with second progress bar in TC 9.0b9.
I have 4 tasks in queue: 62 GB, 5.5 GB, 60 MB, 592 GB.
1. When first one was almost finished (50% of last 12-GB file was copied), so approximately 56 GB of 660 GB was copied totally, second progress bar showed 19%...
2. Now only last task left in the list, 158 GB of 592 GB copied, and second progress bar shows 42%...
I can guess that TC counts overall size of data processed by this BTM window... but since we can add new tasks to the end of list and completed tasks are removed from list, this overall percentage is very confusing (it counts tasks that were already removed from list).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

it counts tasks that were already removed from list
Of course it does - until the last task is done. When you then add more tasks, it will reset the counter. How else should it be done? It's the OVERALL progress bar...
Author of Total Commander
https://www.ghisler.com
Post Reply