<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>520577</bug_id>
          
          <creation_ts>2026-05-23 20:23:03 +0000</creation_ts>
          <short_desc>Navigating in thumbnails/preview uses 100% of main thread for 10-15 seconds on each selection change</short_desc>
          <delta_ts>2026-05-24 03:55:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Albums-ItemsGroup</component>
          <version>9.0.0</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Saveliy Vasilev">saveliy.v.vasilev</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
    
    <cc>saveliy.v.vasilev</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>9.1.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2517964</commentid>
    <comment_count>0</comment_count>
    <who name="Saveliy Vasilev">saveliy.v.vasilev</who>
    <bug_when>2026-05-23 20:23:03 +0000</bug_when>
    <thetext>DESCRIPTION

Changing a single-picture selection within folder with grouped JPG and NEF files halts the main thread for 10-15 seconds

STEPS TO REPRODUCE

1. Select all files in a folder  (~1400 files, 21GB)
2. Right click -&gt; Group -&gt; Group Selected by Filename (resulting in ~700 groups since I shoot NEF+JPG)
3. Go to either preview or remain in thumbnails view, change selection with arrows 5-10 times

OBSERVED RESULT

DigiKam becomes unresponsive, the main thread goes to 100% CPU usage for 10-15 seconds

On any subsequent selection change the same happens -- rendering the experience unusable

EXPECTED RESULT

Works as if the files were not grouped

SOFTWARE/OS VERSIONS

Operating System (available in the Info Center app, or by running `kinfo` in a terminal window):
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.26.0
Qt Version: 6.11.1
Kernel Version: 7.0.9-arch2-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics
Memory: 64 GiB of RAM (58.6 GiB usable)
Graphics Processor: AMD Radeon 780M Graphics


ADDITIONAL INFORMATION

When the main thread shows 100% usage, below is the gbd backtrace for Thread#1, the Thread#1 is consistently stuck in that state during the unresponsive period. The rest of the threads are waiting with different calls (ppoll, epoll, etc)

Thread 1 (Thread 0x7f1520e36cc0 (LWP 57817) &quot;digikam&quot;):
#0  0x00007f154e49bb18 in ??? () at /usr/lib/libQt6Core.so.6
#1  0x00007f154e4aa2ee in QtPrivate::QStringList_contains(QList&lt;QString&gt; const*, QStringView, Qt::CaseSensitivity) () at /usr/lib/libQt6Core.so.6
#2  0x00007f15505095e6 in ??? () at /usr/lib/libdigikamcore.so.9.0.0
#3  0x00007f1550511dc0 in Digikam::LoadingCache::putThumbnail(QString const&amp;, QPixmap const&amp;, QString const&amp;) () at /usr/lib/libdigikamcore.so.9.0.0
#4  0x00007f15504f158c in Digikam::ThumbnailLoadThread::slotThumbnailLoaded(Digikam::LoadingDescription const&amp;, QImage const&amp;) () at /usr/lib/libdigikamcore.so.9.0.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2517973</commentid>
    <comment_count>1</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2026-05-23 20:53:36 +0000</bug_when>
    <thetext>This problem must be fixed in 9.1.9 pre-release available as AppImage bundle here :

https://files.kde.org/digikam/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2517986</commentid>
    <comment_count>2</comment_count>
    <who name="Saveliy Vasilev">saveliy.v.vasilev</who>
    <bug_when>2026-05-23 22:24:51 +0000</bug_when>
    <thetext>Confirming it works, thanks a lot!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>