<?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>520901</bug_id>
          
          <creation_ts>2026-06-01 09:51:15 +0000</creation_ts>
          <short_desc>Slideshow freezes and stops responding when encountering JPEG  with 0xDEADBEEF marker in EXIF UserComment field</short_desc>
          <delta_ts>2026-06-01 19:25:56 +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>Plugin-Generic-SlideShow</component>
          <version>9.0.0</version>
          <rep_platform>Microsoft Windows</rep_platform>
          <op_sys>Microsoft Windows</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>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Matthias">hallomatthias</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
    
    <cc>metzpinguin</cc>
          
          <cf_commitlink>https://invent.kde.org/graphics/digikam/-/commit/0284120183a30a460d986a0d982606685d78b5f9</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>2519690</commentid>
    <comment_count>0</comment_count>
    <who name="Matthias">hallomatthias</who>
    <bug_when>2026-06-01 09:51:15 +0000</bug_when>
    <thetext>Slideshow crashes when displaying JPEG images with 0xDEADBEEF 
marker in EXIF UserComment field (Samsung GT-I9505 smartphone photos).

Steps to reproduce:
1. Create a slideshow containing at least one JPEG with a 
   0xDEADBEEF marker in the EXIF UserComment field. 
2. Start and process the slideshow
3. Wait until the slideshow tries to load the affected image

Observed result:
The slideshow freezes on the image preceding the affected one 
and digiKam stops responding entirely.

Expected result:
Slideshow displays all images without crashing

Root cause identified:
Affected JPEGs contain EXIF UserComment field with 0xDEADBEEF 
debug marker written by Samsung firmware (I9505XXUENA1).
Removing the description field in digiKAM fixes the crash.

System:
- digiKam 9.0.0 / Qt 6.9.1 / KDE Frameworks 6.17.0
- Windows 11 25H2
- NVIDIA GeForce GPU</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519696</commentid>
    <comment_count>1</comment_count>
    <who name="">caulier.gilles</who>
    <bug_when>2026-06-01 10:06:15 +0000</bug_when>
    <thetext>It&apos;s probably a problem with Exiv2.

Try to switch to ExifTool metadata backend.

Try also the 9.1.0 pre-release (will be published next week end) where Exiv2 have been updated (compared to 9.0.0)

Please share the problematic JPEG file.

Best regards

Gilles Caulier</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519748</commentid>
    <comment_count>2</comment_count>
    <who name="Matthias">hallomatthias</who>
    <bug_when>2026-06-01 12:42:54 +0000</bug_when>
    <thetext>Sorry Gilles, I do not have the problematic JPEG file anymore :-(
I fixed it by deleting the content of the description field in digiKAM. Before deleting, there was some binary content included in this field, starting with &quot;METADATA...&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519838</commentid>
    <comment_count>3</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-06-01 17:57:25 +0000</bug_when>
    <thetext>Hmm, that&apos;s a bit tricky without a sample image. The marker 0xDEADBEEF stands for &quot;dead beef&quot;—just give it a quick Google search.
I actually still have a Galaxy S4 (model I9506) right here. It doesn&apos;t write anything to the Exif User Comment field. The differences between the *5 and *6 models lie in the processor and the LTE standard.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519843</commentid>
    <comment_count>4</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-06-01 18:06:36 +0000</bug_when>
    <thetext>Okay, but I also see a long string of binary text as a caption on my S4 image; I&apos;ll take a look at it.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519847</commentid>
    <comment_count>5</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-06-01 18:20:00 +0000</bug_when>
    <thetext>Git commit 059c20c6165a3cda00bda2c349ba6031f3345421 by Maik Qualmann.
Committed on 01/06/2026 at 18:19.
Pushed by mqualmann into branch &apos;master&apos;.

fix find end of ASCII user comment

M  +4    -2    core/libs/metadataengine/engine/metaengine_p.cpp

https://invent.kde.org/graphics/digikam/-/commit/059c20c6165a3cda00bda2c349ba6031f3345421</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519859</commentid>
    <comment_count>6</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-06-01 19:25:56 +0000</bug_when>
    <thetext>Git commit 0284120183a30a460d986a0d982606685d78b5f9 by Maik Qualmann.
Committed on 01/06/2026 at 19:24.
Pushed by mqualmann into branch &apos;master&apos;.

fix endless loop in caption print and check ASCII value
FIXED-IN: 9.1.0

M  +1    -1    NEWS
M  +5    -1    core/libs/metadataengine/engine/metaengine_p.cpp
M  +7    -0    core/libs/threadimageio/preview/previewosdsettings.cpp

https://invent.kde.org/graphics/digikam/-/commit/0284120183a30a460d986a0d982606685d78b5f9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>