Kioslave 5 closed unexpectedly

Using Kubuntu 24.04 on my Lenovo Thinkpad T480

Trying to access my external hdd full of images throws “Kioslave 5 closed unexpectedly” repeatedly.

```
Application: kioslave5 (kioslave5), signal: Segmentation fault

[KCrash Handler]
#4 0x0000000000000000 in ?? ()
#5 0x00007e61832765c1 in KExiv2Iface::KExiv2::load(QString const&) const () from /lib/x86_64-linux-gnu/libKF5KExiv2.so.15.0.0
#6 0x00007e6183276dc9 in KExiv2Iface::KExiv2::KExiv2(QString const&) () from /lib/x86_64-linux-gnu/libKF5KExiv2.so.15.0.0
#7 0x00007e6183ebe118 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/thumbcreator/jpegthumbnail.so
#8 0x00007e61af03a70b in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#9 0x00007e61af03e39d in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#10 0x00007e61af03f4b4 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#11 0x00007e61af040ab9 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#12 0x00007e61aef240bf in ?? () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#13 0x00007e61aef1b76d in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#14 0x00007e61aef1c0c6 in KIO::SlaveBase::dispatchLoop() () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#15 0x00007e61af03c21b in kdemain () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#16 0x00005daf2244f50c in ?? ()
#17 0x00007e61ae02a1ca in __libc_start_call_main (main=main@entry=0x5daf2244f320, argc=argc@entry=5, argv=argv@entry=0x7ffe6d571bd8) at ../sysdeps/nptl/libc_start_call_main.h:58
#18 0x00007e61ae02a28b in __libc_start_main_impl (main=0x5daf2244f320, argc=5, argv=0x7ffe6d571bd8, init=, fini=, rtld_fini=, stack_end=0x7ffe6d571bc8) at ../csu/libc-start.c:360
#19 0x00005daf2244f785 in ?? ()
[Inferior 1 (process 9316) detached]
```

You are using an unsupported KDE stack version.

That being said it looks like https://bugs.kde.org/show_bug.cgi?id=512625

It might be a downstream bug, i.e a Exiv2 library bug.

The bug is likely to concern a few of your images, that have exiv2 data, i.e metadata, that trigger this crash. The file might be corrupted or have unexpected metadata, in bose case that’s an exiv2 issue.

@Meven Hi, thanks for the reply. Is there a way a for me to currently access the images? Right now, both Dolphin and Gwenview crashes the moment I try to open the photos directory.

Note: The directory is quite large consisting of about 194GB of photos in it.

You can enable logs for the preview.

QT_LOGGING_RULES="kf.kio.gui.debug=true" dolphin

But at the moment it won’t output the filename as thumbnails are generated.
I can add that:

Hey, this may be a bit of a long shot, but as kioslave5 started started crashing for me today and I’m also on Kubuntu 24.04…

I checked my apt history and noticed that libexiv was upgraded this morning:

Start-Date: 2026-03-18  10:11:28
Commandline: /usr/bin/unattended-upgrade
Upgrade: libexiv2-27:amd64 (0.27.6-1build1, 0.27.6-1ubuntu0.1)
End-Date: 2026-03-18  10:11:29

After manually downgrading to version 0.27.6-1build1 of libexiv2-27 and rebooting (not sure if that’s required), Dolphin and Gwenview are working again without any kioslave5 crashes:

sudo apt install libexiv2-27=0.27.6-1build1

Hope it helps & good luck if it doesn’t!

4 Likes

Solved too, thanks!, fix it: sudo apt-mark hold libexiv2-27

1 Like

saved my bacon with baloo, which kept crashing

so now my discover says security updates are available with of course the dreaded libexiv2-27 package.

so what now?

Seeing similar issues here, Ubuntu Studio 24.04 LTS. Applied an update via Discover this morning that included the libexiv2.

  • Saw Dolphin crash when opening a folder containing iPhone images (JPG)
  • Saw Gwenview crash, multiple times, before and after a reboot, when attempting to open an iPhone JPG

Rolled back the update using the command shown in a later post,

sudo apt install libexiv2-27=0.27.6-1build1

Gwenview and Dolphin appear to be behaving normally and Discover once again shows the security update to libexiv2:

This will prevent not to update more.

I would recommend one of you to make sure the regression has been reported upstream.
Or next time you upgrade you might end up in the same situation.

Fixing bugs upsteam or in code is always preferable to package shenanigans, that are at best brittle workarounds that won’t benefit other users, not coming by.

Upgrade: libexiv2-27:amd64 (0.27.6-1build1, 0.27.6-1ubuntu0.1)

That’s is not a downgrade, the two packages have the same version 0.27.6-1, but one is from build1 (it seems like a kubuntu specific package?) and the other one is from ubuntu.

Either the build1 package has a fix or different compile flags, I would guess the first one.

Yes, but I need to get to work. I rely on this computer as my primary system since it’s the best OS I’ve used. This is the first time I’ve encountered an issue like this.

There seems to be a bug report here:

Is that sufficient? If not please give some details on how to implement your suggestion.

1 Like

Yes that’s perfect.

Apparently that’s a big issue (with many duplicates…) causing all sorts of applications to crash, across different distro and versions and due to a security update.

2 Likes

i’m going to give them a couple of days to put out a fix to the package before i do this, but if it drags out and other updates come my way, i’ll hold this package so don’t have to keep unchecking the box in discover.

1 Like

You could also prevent the (re-)installation of the defective version, by creating a file

/etc/apt/preferences.d/libexiv2

Package: libexiv2-27
Pin: version 0.27.6-1ubuntu0.1
Pin-Priority: -1

In contrast to holding, this will effectively skip the broken version but installs newer ones as soon they are released. You don’t have to unhold the package manually. The file can stay in the directory, it is ignored afterwards.

4 Likes

Mint 22.3 also affected. Everything involving a picture thumbnail (e.g. Gwenview, wallpaper setting menu crashes Plasmashell; it is 5.27.12). Dolphin shows empty folders or document, video thumbnails fine) Nemo still working for picture thumbs.

#5  0x00007dc8a003b5c1 in KExiv2Iface::KExiv2::load(QString const&) const () from /lib/x86_64-linux-gnu/libKF5KExiv2.so.15.0.0
#6  0x00007dc8a003bdc9 in KExiv2Iface::KExiv2::KExiv2(QString const&) () from /lib/x86_64-linux-gnu/libKF5KExiv2.so.15.0.0
#7  0x00007dc8a0234118 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/thumbcreator/jpegthumbnail.so
#8  0x00007dc8aa1f470b in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#9  0x00007dc8aa1fa482 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#10 0x00007dc8aa0cf0bf in ?? () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#11 0x00007dc8aa0c676d in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#12 0x00007dc8aa0c70c6 in KIO::SlaveBase::dispatchLoop() () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#13 0x00007dc8aa1f621b in kdemain () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so
#14 0x00005612a265950c in ?? ()
#15 0x00007dc8a922a1ca in __libc_start_call_main (main=main@entry=0x5612a2659320, argc=argc@entry=5, argv=argv@entry=0x7ffd2bb3aa28) at ../sysdeps/nptl/libc_start_call_main.h:58
#16 0x00007dc8a922a28b in __libc_start_main_impl (main=0x5612a2659320, argc=5, argv=0x7ffd2bb3aa28, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd2bb3aa18) at ../csu/libc-start.c:360
#17 0x00005612a2659785 in ?? ()
[Inferior 1 (process 104309) detached]

Ubuntu seems trying to fix it Bug #2144731 “Multiple image apps (Gwenview, GIMP, gThumb) crash...” : Bugs : gimp package : Ubuntu

Thanks a lot. I downgraded libxiv2-27 using sudo apt install libexiv2-27=0.27.6-1build1 and applied hold using sudo apt-mark hold libexiv2-27 to prevent updates. Now, I’m able to access the images without Dolphin and Gwenview crashing.

According to Bug #2144731 “Multiple image apps (Gwenview, GIMP, gThumb) crash...” : Bugs : gimp package : Ubuntu you can now unhold the package, a new fixed package has been released.

4 Likes

Works fine on Mint 22.3, so I guess all Buntus as well. Thanks for helping everybody.