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

            Bug ID: 487024
           Summary: kioworker crashes in thumbnailer when TIFF file is
                    exported from Darktable
    Classification: Frameworks and Libraries
           Product: kio-extras
           Version: 24.02.2
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Thumbnails and previews
          Assignee: plasma-b...@kde.org
          Reporter: adam.m.fontenot+...@gmail.com
  Target Milestone: ---

Created attachment 169481
  --> https://bugs.kde.org/attachment.cgi?id=169481&action=edit
kcrash info

SUMMARY

kioworker crashes whenever I export a TIFF file from Darktable. It appears to
be trying to thumbnail an incomplete file, which makes the zlib decoder
unhappy. The file itself is fine, and a thumbnail is immediately created and
visible in Dolphin as soon as the export is complete.

I'm not sure what part of the stack is to blame here. Should the thumbnailer
not be attempting to make a thumbnail for a partially saved file? Should
libtiff not be attempting to decompress a faulty, incomplete file? Should zlib
not be triggering an error condition?

STEPS TO REPRODUCE
1. Export a 16 bit TIFF file (compression mode "deflate with predictor") from
Darktable; I set the output directory to the Desktop for this test.

OBSERVED RESULT

Crash in kioworker. No visible result except that kcrash dialogue appears, if
installed, for kioworker.

EXPECTED RESULT

No crash.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.9-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION

#4  inflate_fast (strm=strm@entry=0x5f45e25f3d00, start=start@entry=31188) at
/usr/src/debug/zlib/zlib-1.3.1/inffast.c:104
#5  0x000076e073330735 in inflate (strm=strm@entry=0x5f45e25f3d00,
flush=flush@entry=1) at /usr/src/debug/zlib/zlib-1.3.1/inflate.c:1029
#6  0x000076e05f4be4c2 in ZIPDecode (tif=0x5f45e25f89a0, op=<optimized out>,
occ=31188, s=<optimized out>) at
/usr/src/debug/libtiff/libtiff/libtiff/tif_zip.c:259
#7  0x000076e05f4b9d1d in PredictorDecodeRow (tif=0x5f45e25f89a0,
op0=0x76dfd477e5a0 "b\264\236\327\377\377\026\005\242", occ0=31188,
s=<optimized out>) at /usr/src/debug/libtiff/libtiff/libtiff/tif_predict.c:566
#8  0x000076e05f4c3149 in TIFFReadScanline (tif=0x5f45e25f89a0,
buf=0x76dfd477e5a0, row=895, sample=<optimized out>) at
/usr/src/debug/libtiff/libtiff/libtiff/tif_read.c:458
#9  0x000076e0664b27b2 in QTiffHandler::read (this=0x5f45e25f4ea0,
image=0x7fff6a0675e0) at
/usr/src/debug/qt6-imageformats/qtimageformats-everywhere-src-6.7.0/src/plugins/imageformats/tiff/qtiffhandler.cpp:467
#10 0x000076e07173f8e2 in QImageReader::read (this=this@entry=0x7fff6a0675b0,
image=image@entry=0x7fff6a0675e0) at
/usr/src/debug/qt6-base/qtbase/src/gui/image/qimagereader.cpp:1206
#11 0x000076e07173ffca in QImageReader::read (this=this@entry=0x7fff6a0675b0,
image=image@entry=0x7fff6a0675e0) at
/usr/src/debug/qt6-base/qtbase/src/gui/image/qimagereader.cpp:1278
#12 0x000076e06c0625e9 in ImageCreator::create (this=this@entry=0x5f45e252c2e0,
request=...) at
/usr/src/debug/kio-extras/kio-extras-24.02.2/thumbnail/imagecreator.cpp:92
#13 0x000076e0741e59fe in ThumbnailProtocol::createThumbnail
(this=this@entry=0x7fff6a067b50,
thumbCreator=thumbCreator@entry=0x5f45e26f5df0, filePath=..., width=256,
height=height@entry=256, thumbnail=...) at
/usr/src/debug/kio-extras/kio-extras-24.02.2/thumbnail/thumbnail.cpp:786
#14 0x000076e0741eaefe in ThumbnailProtocol::get (this=0x7fff6a067b50,
url=<optimized out>) at
/usr/src/debug/kio-extras/kio-extras-24.02.2/thumbnail/thumbnail.cpp:248
#15 0x000076e0740bdb04 in ??? () at /usr/lib/libKF6KIOCore.so.6
#16 0x000076e0740b965e in ??? () at /usr/lib/libKF6KIOCore.so.6
#17 0x000076e074166de4 in ??? () at /usr/lib/libKF6KIOCore.so.6
#18 0x000076e0741e7967 in kdemain (argc=<optimized out>, argv=<optimized out>)
at /usr/src/debug/kio-extras/kio-extras-24.02.2/thumbnail/thumbnail.cpp:116
#19 0x00005f45e13df220 in ??? ()
#20 0x000076e073841d4a in ??? () at /usr/lib/libc.so.6
#21 0x000076e073841e0c in __libc_start_main () at /usr/lib/libc.so.6
#22 0x00005f45e13df4e5 in ??? ()

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

Reply via email to