TC9.20/9.21rc1: Crash while building thumbnail view

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

Post Reply
Nikolaus Riehm
Junior Member
Junior Member
Posts: 12
Joined: 2004-02-18, 21:20 UTC

TC9.20/9.21rc1: Crash while building thumbnail view

Post by *Nikolaus Riehm »

Today I noticed a bug in TC9.20 (and even in 9.21rc1) that doesn't occur in the previous version(s): the building of the thumbnail view (Ctrl+shift+1) leads to a crash on certain JPG files. Windows 7 (64bit) then reports an APPCRASH in tcunzl64.dll. The 32-bit version of TC9.21rc1 runs fine, no such error at exact the same location. I'll try to isolate specific JPGs that forces the error.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

building of the thumbnail view (Ctrl+shift+1)
Don't you mean Ctrl+shift+F1 :?:
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC9.20/9.21rc1: Crash while building thumbnail view

Post by *ghisler(Author) »

tcunzl64.dll isn't used for loading JPG files, it's used for compressing/decompressing the thumbnails with the zip algorithm (like PNG files). Maybe the thumbs database got corrupted? You can try setting a different location for it via Configuration - Options - Thumbnails, so TC has to recreate it. Please do not delete the old database yet, we may need it to find the reason!

If the error still occurs with the new database, I would appreciate a sample image with which it occurs, and your configured thumbnail size.
Author of Total Commander
https://www.ghisler.com
StefB
New Member
New Member
Posts: 0
Joined: 2019-02-28, 10:38 UTC

Re: TC9.20/9.21rc1: Crash while building thumbnail view

Post by *StefB »

Hello,
I confirm this issue.
The crash is pretty violent.
Please find hereafter the message from Windows.
Signature du problème :
Nom d’événement de problème: APPCRASH
Nom de l’application: TOTALCMD64.EXE
Version de l’application: 9.2.1.0
Horodatage de l’application: 00000000
Nom du module par défaut: tcunzl64.dll
Version du module par défaut: 0.0.0.0
Horodateur du module par défaut: 516d1c2c
Code de l’exception: c0000005
Décalage de l’exception: 000000000000185c
Version du système: 6.1.7601.2.1.0.256.48
Identificateur de paramètres régionaux: 1036
Information supplémentaire n° 1: 5c05
Information supplémentaire n° 2: 5c0513bd4062cba71456b4a085c4c210
Information supplémentaire n° 3: bca0
Information supplémentaire n° 4: bca053196def265b5357fcd4f58eeccb
I have isolated the image file.
This is a JPEG file.
http://www.sevyco.com/photo/convert.php?type=2&dir=5075626c6963&name=3130382e6a7067

I hope it will help you.
Regards

Stef
StefB
New Member
New Member
Posts: 0
Joined: 2019-02-28, 10:38 UTC

Re: TC9.20/9.21rc1: Crash while building thumbnail view

Post by *StefB »

Hi,
Wait, it is really strange;
This morning, I moved the file from a directory to an other and TC crashed or not.
In the folder d:\Mes Documents\Pictures\LaPhotoDeLaSemaine\, it crashed.
I copied the file to D:\Temp\tc\, it crashed
I copied the file to D:\Temp\, no problem.
I will try to investigate.
Regards
Stef
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC9.20/9.21rc1: Crash while building thumbnail view

Post by *ghisler(Author) »

Moving the image tries to move it within the thumbnail cache. Maybe it's damaged somehow.

Please do the following to help me find the problem:
1. Turn of thumbnail view
2. Copy the file 108.jpg to a completely empty directory
3. Set that directory in both panels
4. Use the following command on the Total Commander command line (above F5, F6 buttons):
cd %$LOCAL_APPDATA%\GHISLER
This brings you to the location of the thumbnail cache.
5. Move the files named tcthumbs.db, tcthumbs.idb tcthumbs.frl elsewhere (do not delete)
6. Close and re-open Total Commander
7. Switch on thumbnail view in one panel, so the thumbnail for 108.jpg is shown
8. Move the file around until the error occurs
9. Send me the files tcthumbs.* so I can analyze them
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC9.20/9.21rc1: Crash while building thumbnail view

Post by *ghisler(Author) »

I have tried many times to reproduce the problem with your file, but couldn't.

Can you please at least tell me:
1. The size of the thumbnails defined in Configuration - Options - Thumbnails
2. The used extraction method: Do you have any Lister plugins installed?
Author of Total Commander
https://www.ghisler.com
StefB
New Member
New Member
Posts: 0
Joined: 2019-02-28, 10:38 UTC

Re: TC9.20/9.21rc1: Crash while building thumbnail view

Post by *StefB »

Hi,
As far as I know, TC crashed in Thumbnails mode with the file 108.jpg. I moved the file out of the folder and no more crash.
Before you gave me some instructions, Id did some tests. I moved the file, I cleaned the thumbnail database ( "Compact ..;"), I had deleted the thumbnails db file, ...
Now, I am not able to reproduct the defect anymore.

I am sorry for the waste of time.
Next time, If i face again to this issue, I will be more vigilent and give you more relevant information.
Thanks for all your job.
Regards
Stef
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC9.20/9.21rc1: Crash while building thumbnail view

Post by *ghisler(Author) »

I see - I have added some fixes which should prevent a crash in case of certain errors in the database. However, could you please still reply to my 2 questions?
1. The size of the thumbnails defined in Configuration - Options - Thumbnails
2. The used extraction method: Do you have any Lister plugins installed?
Author of Total Commander
https://www.ghisler.com
Post Reply