Thumbnail view freezes on 43'' monitor

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

Moderators: white, Hacker, petermad, Stefan2

myuser
Junior Member
Junior Member
Posts: 5
Joined: 2023-10-05, 22:10 UTC

Thumbnail view freezes on 43'' monitor

Post by *myuser »

Total Commander freezes with blinking icons when put to full screen in Thumbnail View mode. I tried on 11.01.

How to reproduce the problem:
1. Maximize the window of total commander on my 43'' monitor with 4k resolution (so it's full screen).
2. Open a folder that contains many images (so they cover the whole screen when in Thumbnail view mode)
3. Switch to thumbnail view mode (Show -> Thumbnail View)
4. Scroll a bit with mouse. Total commander freezes with icons of images on screen flashing as if they were reloading. You can only kill the process of Total Commander.

The problem occurs only on my 43'' 4k monitor - I have multiple monitors and on the others everything works as expected. If I don't put Total Commander to full screen on 43'' monitor (so the window is only a quarter or so of screen size) the program works flawlessly.

The problem occurs also on previous versions of Total Commander (tried on 11.01 and 10.52).

What am I doing wrong?
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Thumbnail view freezes on 43'' monitor

Post by *petermad »

Does it occur with different sizes for the thumbnails?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
myuser
Junior Member
Junior Member
Posts: 5
Joined: 2023-10-05, 22:10 UTC

Re: Thumbnail view freezes on 43'' monitor

Post by *myuser »

I changed it now from 96x96 to 48x48 pixels. The program told me that the thumbnail database will get deleted (of course). Afterwards TotalCmd started generating all the new size thumbnails for the folder and when the whole screen of thumbnails got rendered (or loaded to say) the typical "flashing" of random icons started as if they were loading again. And at that time Total Commander was frozen and I had to kill it.

Changing the thumbnail size to 128x128 didn't freeze TotalCmd. But if I scroll while the icons are loading, some of those loading icons won't get loaded (and they flash as described above). If I move the TotalCmd window to 24'' monitor they get rendered as they're supposed to.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Thumbnail view freezes on 43'' monitor

Post by *ghisler(Author) »

Cannot reproduce. Thumbnails are generated in a background thread and should never freeze the program. My guess is that a plugin or shell extension is crashing.

You can try generating a log to check which file is causing the freeze. It should be the last in the log.
Please add the following line to the wincmd.ini section [Configuration] :
DebugIconThread=3
Then restart Total Commander and try to reproduce the issue.
Finally go to the folder TEMP via command
cd %temp%
and check the file tciconlog.txt (search from the end) for
extract called
to find the last file TC tried to get the thumbnail for.
Author of Total Commander
https://www.ghisler.com
myuser
Junior Member
Junior Member
Posts: 5
Joined: 2023-10-05, 22:10 UTC

Re: Thumbnail view freezes on 43'' monitor

Post by *myuser »

I did enable the logging (DebugIconThread=3).

It seems as if TotalCmd is generating thumbnail for image, then instantly deleting it to save space and repeating the process forever. It does this for one or a couple of images (not all of them). As if it didn't delete the oldest generated icons but the newest. This takes a lot of CPU.

Part of report that might be of relevance (afterward TotalCmd Froze and I had to kill it):

Code: Select all

06/10/2023 13:37:28: Adding image to item list, index=101
06/10/2023 13:37:28: thumb: e:\temp\20220920_213300.mp4 posting notification for bmp: 18446744073089127337
06/10/2023 13:37:28: Deleting image to save space, index= 101
06/10/2023 13:37:28: thumb: e:\temp\20220921_172718.jpg
06/10/2023 13:37:28: e:\temp\20220921_172718.jpg extract called:
06/10/2023 13:37:28: RefreshBitmap notification received, index=102, bmp=-620424279
06/10/2023 13:37:28: Adding image to item list, index=102
06/10/2023 13:37:28: thumb: e:\temp\20220921_172718.jpg posting notification for bmp: 18446744071897948237
06/10/2023 13:37:28: Deleting image to save space, index= 102
06/10/2023 13:37:28: thumb: e:\temp\20220921_184035.jpg
06/10/2023 13:37:28: e:\temp\20220921_184035.jpg extract called:
06/10/2023 13:37:28: RefreshBitmap notification received, index=103, bmp=-1811603379
06/10/2023 13:37:28: Adding image to item list, index=103
06/10/2023 13:37:28: thumb: e:\temp\20220921_184035.jpg posting notification for bmp: 18446744073156236201
06/10/2023 13:37:28: Deleting image to save space, index= 103
06/10/2023 13:37:28: thumb: e:\temp\20220918_200706.mp4
06/10/2023 13:37:28: e:\temp\20220918_200706.mp4 extract called:
06/10/2023 13:37:28: RefreshBitmap notification received, index=104, bmp=-553315415
06/10/2023 13:37:28: Adding image to item list, index=104
06/10/2023 13:37:28: thumb: e:\temp\20220918_200706.mp4 posting notification for bmp: 18446744071965057101
06/10/2023 13:37:28: Deleting image to save space, index= 104
06/10/2023 13:37:28: thumb: e:\temp\20220920_213300.mp4
06/10/2023 13:37:28: e:\temp\20220920_213300.mp4 extract called:
06/10/2023 13:37:28: RefreshBitmap notification received, index=101, bmp=-1744494515
06/10/2023 13:37:28: Adding image to item list, index=101
06/10/2023 13:37:28: thumb: e:\temp\20220920_213300.mp4 posting notification for bmp: 18446744073223345065
06/10/2023 13:37:28: Deleting image to save space, index= 101
06/10/2023 13:37:28: thumb: e:\temp\20220921_172718.jpg
06/10/2023 13:37:28: e:\temp\20220921_172718.jpg extract called:
06/10/2023 13:37:28: RefreshBitmap notification received, index=102, bmp=-486206551
06/10/2023 13:37:28: Adding image to item list, index=102
06/10/2023 13:37:28: thumb: e:\temp\20220921_172718.jpg posting notification for bmp: 18446744072032165965
06/10/2023 13:37:28: Deleting image to save space, index= 102
06/10/2023 13:37:28: thumb: e:\temp\20220921_184035.jpg
06/10/2023 13:37:28: e:\temp\20220921_184035.jpg extract called:
06/10/2023 13:37:28: RefreshBitmap notification received, index=103, bmp=-1677385651
06/10/2023 13:37:28: Adding image to item list, index=103
06/10/2023 13:37:28: thumb: e:\temp\20220921_184035.jpg posting notification for bmp: 18446744073290453929
06/10/2023 13:37:28: Deleting image to save space, index= 103
06/10/2023 13:37:28: RefreshBitmap notification received, index=104, bmp=-419097687
06/10/2023 13:37:28: thumb: e:\temp\20220918_200706.mp4
06/10/2023 13:37:28: e:\temp\20220918_200706.mp4 extract called:
06/10/2023 13:37:28: thumb: e:\temp\20220918_200706.mp4 posting notification for bmp: 18446744071612746428
06/10/2023 13:37:28: thumb: e:\temp\20220920_213300.mp4
06/10/2023 13:37:28: RefreshBitmap notification received, index=101, bmp=-2096805188
06/10/2023 13:37:28: e:\temp\20220920_213300.mp4 extract called:
06/10/2023 13:37:28: thumb: e:\temp\20220920_213300.mp4 posting notification for bmp: 18446744073038807334
06/10/2023 13:37:28: End size thread
06/10/2023 13:37:28: End icon thread
06/10/2023 13:37:30: Start icon thread
06/10/2023 13:37:30: Start thumb thread
06/10/2023 13:37:30: End thumb thread
06/10/2023 13:37:30: Start size thread
06/10/2023 13:37:30: End thumb thread
06/10/2023 13:37:30: End icon thread
06/10/2023 13:37:30: End size thread
Another example of repeating the loop forever (the log repeats this forever):

Code: Select all

06/10/2023 14:07:37: Adding image to item list, index=106
06/10/2023 14:07:37: Deleting image to save space, index= 106
06/10/2023 14:07:37: thumb: c:\temp\PXL_20230812_070626763.jpg
06/10/2023 14:07:37: c:\temp\PXL_20230812_070626763.jpg extract called:
06/10/2023 14:07:37: c:\temp\PXL_20230812_070626763.jpg GetThumbFromGdiPlus returns: 1577408189
06/10/2023 14:07:37: c:\temp\PXL_20230812_070626763.jpg posting notification for bmp: 1577408189
06/10/2023 14:07:37: RefreshBitmap notification received, index=107, bmp=1577408189
06/10/2023 14:07:37: Adding image to item list, index=107
06/10/2023 14:07:37: Deleting image to save space, index= 107
06/10/2023 14:07:37: thumb: c:\temp\PXL_20230812_070859960.jpg
06/10/2023 14:07:37: c:\temp\PXL_20230812_070859960.jpg extract called:
06/10/2023 14:07:37: c:\temp\PXL_20230812_070859960.jpg GetThumbFromGdiPlus returns: 18446744072199948952
06/10/2023 14:07:37: c:\temp\PXL_20230812_070859960.jpg posting notification for bmp: 18446744072199948952
06/10/2023 14:07:37: RefreshBitmap notification received, index=108, bmp=-1509602664
06/10/2023 14:07:37: Adding image to item list, index=108
06/10/2023 14:07:37: Deleting image to save space, index= 108
ecco64
Junior Member
Junior Member
Posts: 4
Joined: 2010-03-28, 10:05 UTC

Re: Thumbnail view freezes on 43'' monitor

Post by *ecco64 »

I can confirm the problem since using a high resolution monitor and a small thumbnail size. Sometimes it works, sometimes the preview process just stops. After restarting TC everthing works again for awhile.

The problem seems to depend on the number of images which are visible at once. When reducing the window size and by this the number of visible images everything works fine.

Not a bug but a feature request: A parallelization of the image database creating would be nice, because it takes a while to process folders with some thousand images. It would also be nice if the images of the folder which are currently out of scope would also be processed. Right now you have to repeatingly scroll down manually an wait while the images are processed.
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Thumbnail view freezes on 43'' monitor

Post by *petermad »

Right now you have to repeatingly scroll down manually an wait while the images are processed.
Maybe you have changed PreloadThumbnails setting in the [Configuration] section of your wincmd.ini file
Help wrote:PreloadThumbnails=1 1: Loads thumbnail images already when opening a dir, not only when scrolling to that line.
2: Same as 1, but also in branch view
3: Preload just the next two lines below the visible thumbnails
0: Disabled, load thumbnails only when they scroll into view

Here are my thumbnail setting - you could try and see if they make a difference:

Code: Select all

ThumbsCopyDel=1
ThumbOptions=15
ThumbGdiplusTypes=*.jpg *.dng *.crw *.arw *.cr2 *.cr3 *.nef *.orf *.pef *.raf *.rw2
ThumbPlgTypes=*.* | *.jpg *.avi *.mp3 *.mp4 *.wmv *.mov *.mpeg *mpg *.m4v
ThumbExplTypes=*.jpg *.avi *.mp3 *.mp4 *.wmv *.mov *.mpeg *mpg *.m4v | *.htm* *.lnk
ThumbIrfXnTypes=*.*
ThumbTxtTypes=*.txt *.ini *.mnu *.inc *.lng *.htm*
ThumbsCustomFieldsEnabled=1
ThumbsCustomField=[=tc.writedate.D-M-y]  [=tc.size.bkMG]\n[=shelldetails.Dimensioner]
ThumbWidthNoCache=128
ThumbHeightNoCache=72
ThumbIconSize=32
PreloadThumbnails=2
ThumbnailPrealloc=100000
ThumbnailMemoryLimit=500
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Thumbnail view freezes on 43'' monitor

Post by *ghisler(Author) »

How many images are shown at the same time? I think that may indeed be the problem:
06/10/2023 13:37:28: Deleting image to save space, index= 102
Currently TC keeps a maximum of 500 thumbnails in memory. You can increase this limit by adding
thumbnailmemorylimit=1000
or so to wincmd.ini section [Configuration].
Author of Total Commander
https://www.ghisler.com
myuser
Junior Member
Junior Member
Posts: 5
Joined: 2023-10-05, 22:10 UTC

Re: Thumbnail view freezes on 43'' monitor

Post by *myuser »

Indeed increasing the thumbnailmemorylimit solves the problem. Why is the default value so low? In modern computers with many gigabytes of RAM I would assume the default value to be in a couple of thoushands and more. I don't want for the folder with couple thousand images from phone camera to constantly reload images as I scroll through them.

Also in my view the icons should get pre-loaded for the whole folder by default (as eco64 mentioned).

And there seems to be another common problem where Microsoft removed HEVC decoders from Windows due to license payments so all videos encoded in h.265 get shown a default "mp4" icon instead of a thumbnail. A simple K-Lite Codec Pack installation would solve that (as mentioned in https://superuser.com/questions/1730808/how-to-fix-regenerate-thumbnails-for-mp4-files-in-windows-10-recorded-by-pixe).

With that TotalCommander would become a much better file manager for managing images / videos and could mostly replace irfan/Xnview/other image viewers.
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Thumbnail view freezes on 43'' monitor

Post by *petermad »

Indeed increasing the thumbnailmemorylimit solves the problem.
Good, but TC should not freeze, if the limit is too low - so there is some bug here.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
myuser
Junior Member
Junior Member
Posts: 5
Joined: 2023-10-05, 22:10 UTC

Re: Thumbnail view freezes on 43'' monitor

Post by *myuser »

I agree that TC shouldn't freeze. I've made a video of how to reproduce the bug:
https://emalm.com/?v=UK91O

Be attentive that the problem occurs when I scroll back to part of folder where thumbnails have already loaded before.

On the video I used a directory of 1500 random photos from internet and it didn't "freeze" TotalCommander completely (but the "blinking" of icons does occur). But when I do the same on the folder of about 2000 photos/videos from my mobile phone, TotalCommander window freezes so I have to close it from Task Manager (or right clicking in Taskbar -> close window)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Thumbnail view freezes on 43'' monitor

Post by *ghisler(Author) »

I will automatically increase thumbnailmemorylimit internally (not in the ini) when more than the specified number of thumbnails (x1.5 safety margin) are on screen. Btw, I don't get any freeze, the loading just stops adding more thumbnails, but continues when I make the window smaller...
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Thumbnail view freezes on 43'' monitor

Post by *petermad »

I can reproduce the flickering of the icons, that are not being converted to thumbnails.

I have a 1920x1080 27" monitor. I don't use any scaling (neither Windows or TC)

If I maximize TC and soom the size of my thumbnails to 50% I can see between 117 and 120 thumbnails, depending on how many button bars i have enabled (I have 3 lines of text under each thumbnail). With that zoom factor I see icons that are flickering and are not being converted to thumbnails. See: https://tcmd.madsenworld.dk/thumbflicker.png

See my settings here: viewtopic.php?p=442372#p442372



If I scroll down, the thumbnails that were not shown is now shown, but then no thumbnails are shown for the new files in the bottom. I have not encountered any freeze.

So try to zoom the thumbnail size down, if you cannot reproduce the problem.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Thumbnail view freezes on 43'' monitor

Post by *ghisler(Author) »

I can reproduce the flickering, but no freeze. Can you?
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Thumbnail view freezes on 43'' monitor

Post by *petermad »

Can you?
No, as I wrote: " I have not encountered any freeze" - but I have only tested on Wndows 7 so far.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply