Public bug reported:
I am running Kubuntu 26.04 LTS with:
kf6-kio 6.24.0-0ubuntu1
Dolphin 25.12.3
Dolphin intermittently crashes while a right-click context menu is open,
in particular while opening/navigating the Actions submenu.
I have now reproduced the same crash several times. The relevant portion
of the most recent stack trace is:
KJob::kill(KJob::KillVerbosity)
libKF6KIOGui.so.6 + 0x49d7f
QObject::event(QEvent *)
QApplicationPrivate::notify_helper(...)
QCoreApplication::notifyInternal2(...)
QTimerInfoList::activateTimers()
...
QEventLoop::exec(...)
QMenu::exec(...)
DolphinView::requestContextMenu(...)
I investigated the libKF6KIOGui.so.6 offset against the KDE Frameworks
6.24.0 source. The address corresponds to FilePreviewJob::timerEvent()
in src/gui/filepreviewjob.cpp. In this version FilePreviewJob starts a
2-second timer:
m_timeoutTimer = startTimer(2s);
and the timeout handler does:
if (m_transferjob) {
m_transferjob->kill();
}
The crash occurs in KJob::kill() when this timeout handler fires while
the Dolphin context menu is open.
This appears to match an upstream KDE fix included in KDE Frameworks
6.28.0:
commit ad1eb8c809c2a88e6e344df15cb9e43666976dc6
"filepreviewjob: stop timeout timer when the job finishes"
The upstream fix specifically addresses the FilePreviewJob timeout timer
remaining active after the job finishes, and notes that a nested event
loop such as QMenu::exec() can delay deletion and allow the timeout to
fire, resulting in a crash in KJob::kill().
I think this is the relevant info for that issue:
KDE Bug 517867
Upstream commit:
8b5b5ac8104754a627dca5caff166cd747a18870
"Filepreviewjob: Track subjobs using QPointer"
Fixed in KDE Frameworks 6.25.0
Kubuntu 26.04 currently ships Frameworks/KIO 6.24.0, which predates this
fix.
Would it be possible to backport this upstream FilePreviewJob fix to the
Kubuntu 26.04 LTS kf6-kio package?
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: libkf6kiogui6 6.24.0-0ubuntu1
ProcVersionSignature: Ubuntu 7.0.0-30.30-generic 7.0.12
Uname: Linux 7.0.0-30-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Wed Aug 19 12:03:24 2026
EcryptfsInUse: Yes
InstallationDate: Installed on 2026-06-02 (78 days ago)
InstallationMedia: Kubuntu 26.04 "Resolute Raccoon" - Release amd64 (20260423)
SourcePackage: kf6-kio
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: kf6-kio (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2164577
Title:
Dolphin crashes in KJob::kill() when FilePreviewJob timeout fires
while context menu is open
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kf6-kio/+bug/2164577/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs