<?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>505015</bug_id>
          
          <creation_ts>2025-05-30 14:01:24 +0000</creation_ts>
          <short_desc>dataChanged() called with an invalid index range:</short_desc>
          <delta_ts>2025-11-12 21:59:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kphotoalbum</product>
          <component>Backend</component>
          <version>GIT master</version>
          <rep_platform>Other</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>1</everconfirmed>
          <reporter name="willem">whobers</reporter>
          <assigned_to name="KPhotoAlbum Bugs">kphotoalbum-bugs-null</assigned_to>
          <cc>johannes</cc>
    
    <cc>rsquared42</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/kphotoalbum/-/commit/12282f3f34b6b1213232e54355a6c40558ed4c45</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2429093</commentid>
    <comment_count>0</comment_count>
    <who name="willem">whobers</who>
    <bug_when>2025-05-30 14:01:24 +0000</bug_when>
    <thetext>SUMMARY
Opening &quot;Exif information and file metadata&quot; dialogue produces invalid index range message in cli

STEPS TO REPRODUCE
1. In kphotoalbum select &quot;Tokens&quot;
2. right click on the media thumbnail (in my case it&apos;s a video)
3. 

OBSERVED RESULT
cli shows several recurring messages about invalid index range

EXPECTED RESULT
no such invalid index range

SOFTWARE/OS VERSIONS
MESA-INTEL: warning: Haswell Vulkan support is incomplete
Operating System: EndeavourOS 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.12.30-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-4570R CPU @ 2.70GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Intel® Iris® Pro Graphics 5200

ADDITIONAL INFORMATION
this happens in othe dialogues as well; see https://bugs.kde.org/show_bug.cgi?id=504812</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2429095</commentid>
    <comment_count>1</comment_count>
    <who name="willem">whobers</who>
    <bug_when>2025-05-30 14:02:21 +0000</bug_when>
    <thetext>Sorry, forgot to add the cli output. 

QImage::scaled: Image is a null image
dataChanged() called with an invalid index range:
    topleft: QModelIndex(-1,-1,0x0,QObject(0x0))
    bottomRight:QModelIndex(-1,-1,0x0,QObject(0x0))
QImage::scaled: Image is a null image
dataChanged() called with an invalid index range:
    topleft: QModelIndex(-1,-1,0x0,QObject(0x0))
    bottomRight:QModelIndex(-1,-1,0x0,QObject(0x0))
QImage::scaled: Image is a null image
dataChanged() called with an invalid index range:
    topleft: QModelIndex(-1,-1,0x0,QObject(0x0))
    bottomRight:QModelIndex(-1,-1,0x0,QObject(0x0))
QImage::scaled: Image is a null image
dataChanged() called with an invalid index range:
    topleft: QModelIndex(-1,-1,0x0,QObject(0x0))
    bottomRight:QModelIndex(-1,-1,0x0,QObject(0x0))
QImage::scaled: Image is a null image
dataChanged() called with an invalid index range:
    topleft: QModelIndex(-1,-1,0x0,QObject(0x0))
    bottomRight:QModelIndex(-1,-1,0x0,QObject(0x0))
QImage::scaled: Image is a null image
dataChanged() called with an invalid index range:
    topleft: QModelIndex(-1,-1,0x0,QObject(0x0))
    bottomRight:QModelIndex(-1,-1,0x0,QObject(0x0))
dataChanged() called with an invalid index range:
    topleft: QModelIndex(-1,-1,0x0,QObject(0x0))
    bottomRight:QModelIndex(-1,-1,0x0,QObject(0x0))

these are the messages after viewing 1 media item.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2464012</commentid>
    <comment_count>2</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-10-23 03:02:16 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/graphics/kphotoalbum/-/merge_requests/50</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2464272</commentid>
    <comment_count>3</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-10-23 17:57:55 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/graphics/kphotoalbum/-/merge_requests/51</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2465347</commentid>
    <comment_count>4</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-10-26 17:45:28 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/graphics/kphotoalbum/-/merge_requests/52</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2467951</commentid>
    <comment_count>5</comment_count>
    <who name="Johannes Zarl-Zierl">johannes</who>
    <bug_when>2025-11-04 20:48:20 +0000</bug_when>
    <thetext>Git commit 12282f3f34b6b1213232e54355a6c40558ed4c45 by Johannes Zarl-Zierl, on behalf of Randall Rude.
Committed on 04/11/2025 at 20:48.
Pushed by johanneszarl into branch &apos;master&apos;.

Don&apos;t updateCell for a new thumbnail

Here&apos;s another scenario that logs &quot;dataChanged() called with an invalid index range&quot;:
* start a fresh demo
* open the thumbnail view
* add at least one new image in the demo folder
* rescan for new images - the message is logged once per new image

This patch only triggers dataChanged() when a thumbnail is updated, not when a new thumbnail is inserted into the cache.

M  +11   -1    lib/kpathumbnails/TestThumbnailCache.cpp
M  +9    -2    lib/kpathumbnails/ThumbnailCache.cpp
M  +5    -4    lib/kpathumbnails/ThumbnailCache.h

https://invent.kde.org/graphics/kphotoalbum/-/commit/12282f3f34b6b1213232e54355a6c40558ed4c45</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>