https://bugs.kde.org/show_bug.cgi?id=426086

--- Comment #6 from k...@binkmail.com ---
(In reply to caulier.gilles from comment #5)
> Did you have the metadata view open in right sidebar, and especially the
> ExifTool tab ?

Nope. Usually filters and I just checked and exiftool isn't running. 

I have a folder with a single big tiff in it. I right click the folder and
select refresh then click on another folder and back on this one. The thumbnail
for the tiff is a grey box. The process monitor at the bottom of the screen
says "Thumbs" and 0%. 3-4 minutes and many billions of cpu cycles later the
Thumbs process ends and I see the tiff thumbnail. 

While 'Thumbs' is running I looked at the Digikam process and there is one or
more threads each of which is using 4.1% of a 12 core 24 thread 4.1GHz Ryzen
CPU. The call stacks look like

ntoskrnl.exe!KeSynchronizeExecution+0x5b66
ntoskrnl.exe!KeWaitForSingleObject+0x1460
ntoskrnl.exe!KeWaitForSingleObject+0x98f
ntoskrnl.exe!KeWaitForSingleObject+0x233
ntoskrnl.exe!ExWaitForRundownProtectionRelease+0x7dd
ntoskrnl.exe!KeWaitForSingleObject+0x3a29
ntoskrnl.exe!KeSynchronizeExecution+0x3140
msvcrt.dll!putc
libtiff-5.dll!TIFFmemcmp+0x1fc8
libtiff-5.dll!TIFFmemcmp+0x39fa
libtiff-5.dll!TIFFmemcmp+0x10df
libtiff-5.dll!TIFFPredictorCleanup+0x9d
libtiff-5.dll!TIFFPrintDirectory+0x585
DImg_TIFF_Plugin.dll!ZN21DigikamTIFFDImgPlugin14DImgTIFFLoader4loadERK7QStringPN7Digikam18DImgLoaderObserverE+0x709
libdigikamcore.dll!ZN7Digikam4DImg4loadERK7QStringiPNS_18DImgLoaderObserverERKNS_12DRawDecodingE+0xa1f
libdigikamcore.dll!ZNK7Digikam16ThumbnailCreator18loadWithDImgScaledERK7QStringPNS_10IccProfileE+0xd3
libdigikamcore.dll!ZNK7Digikam16ThumbnailCreator15createThumbnailERKNS_13ThumbnailInfoERK5QRect+0x1146
libdigikamcore.dll!ZNK7Digikam16ThumbnailCreator4loadERKNS_19ThumbnailIdentifierERK5QRectb+0x105
libdigikamcore.dll!ZNK7Digikam16ThumbnailCreator4loadERKNS_19ThumbnailIdentifierE+0x2d
libdigikamcore.dll!ZN7Digikam20ThumbnailLoadingTask7executeEv+0x57a
libdigikamcore.dll!ZN7Digikam14LoadSaveThread3runEv+0x16a
libdigikamcore.dll!ZN7Digikam13DynamicThread7Private3runEv+0x30
Qt5Core.dll!ZN11QThreadPool6cancelEP9QRunnable+0x9a
Qt5Core.dll!ZN7QThread21setTerminationEnabledEb+0x103
KERNEL32.DLL!BaseThreadInitThunk+0x14
ntdll.dll!RtlUserThreadStart+0x21


I notice that just clicking refresh starts one 4% CPU thread. Switching view to
another folder and back triggers another 1 or 2 4% threads, looks like it is
simultaneously trying to generate the same thumbnail.  Thumbnail generation is
not *the* problem. After thumbnails are generated if I click on the thumbnail
show full screen button I get 1 4% thread like 

ntoskrnl.exe!KeSynchronizeExecution+0x5b66
ntoskrnl.exe!KeWaitForSingleObject+0x1460
ntoskrnl.exe!KeWaitForSingleObject+0x98f
ntoskrnl.exe!KeWaitForSingleObject+0x233
ntoskrnl.exe!ExWaitForRundownProtectionRelease+0x7dd
ntoskrnl.exe!KeWaitForSingleObject+0x3a29
ntoskrnl.exe!KeSynchronizeExecution+0x3140
libtiff-5.dll!wcsrtombs+0x11e
libtiff-5.dll!wcsrtombs+0x13e
libtiff-5.dll!TIFFmemcmp+0x10c7
libtiff-5.dll!TIFFPredictorCleanup+0x9d
libtiff-5.dll!TIFFPrintDirectory+0x585
DImg_TIFF_Plugin.dll!ZN21DigikamTIFFDImgPlugin14DImgTIFFLoader4loadERK7QStringPN7Digikam18DImgLoaderObserverE+0x709
libdigikamcore.dll!ZN7Digikam4DImg4loadERK7QStringiPNS_18DImgLoaderObserverERKNS_12DRawDecodingE+0xa1f
libdigikamcore.dll!ZN7Digikam4DImg4loadERK7QStringPNS_18DImgLoaderObserverERKNS_12DRawDecodingE+0x17
libdigikamcore.dll!ZN7Digikam18PreviewLoadingTask7executeEv+0x777
libdigikamcore.dll!ZN7Digikam14LoadSaveThread3runEv+0x16a
libdigikamcore.dll!ZN7Digikam13DynamicThread7Private3runEv+0x30
Qt5Core.dll!ZN11QThreadPool6cancelEP9QRunnable+0x9a
Qt5Core.dll!ZN7QThread21setTerminationEnabledEb+0x103
KERNEL32.DLL!BaseThreadInitThunk+0x14
ntdll.dll!RtlUserThreadStart+0x21

and see nothing on the screen for 3-4 minutes. 

I don't know if it is reading the tiff file backwards like the initial report,
all the files are on SSD now all being read from the system cache. As I said
windows paint manages to load a 500MB tiff in about 3 seconds.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to