public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Grulich <jgrulich@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/qt6-qtdeclarative] f44: Upstream backport:
Date: Tue, 10 Nov 2026 07:01:33 GMT [thread overview]
Message-ID: <179429409327.1.762440966729111516.rpms-qt6-qtdeclarative-b0274f499ea2@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/qt6-qtdeclarative
Branch : f44
Commit : b0274f499ea2295b0eaefc876a177cc4f07b5df8
Author : Jan Grulich <jgrulich@redhat.com>
Date : 2026-11-10T08:00:26+01:00
Stats : +68/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/qt6-qtdeclarative/c/b0274f499ea2295b0eaefc876a177cc4f07b5df8?branch=f44
Log:
Upstream backport:
Fix teardown hang with QuickPixmapReader
---
diff --git a/qt6-qtdeclarative.spec b/qt6-qtdeclarative.spec
index aadbe9a..f5e58f8 100644
--- a/qt6-qtdeclarative.spec
+++ b/qt6-qtdeclarative.spec
@@ -16,7 +16,7 @@
Summary: Qt6 - QtDeclarative component
Name: qt6-%{qt_module}
Version: 6.11.2
-Release: 2%{?dist}
+Release: 3%{?dist}
License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
Url: http://www.qt.io
@@ -35,6 +35,9 @@ Source5: qv4global_p-multilib.h
## upstream patches
Patch0: qtdeclarative-qml-engine-correctly-compare-composites-with-multi-engines.patch
+# https://codereview.qt-project.org/c/qtdeclarative/+/777121
+Patch1: qtdeclarative-fix-teardown-hang-with-quickpixmapreader.patch
+
## upstreamable patches
@@ -760,6 +763,10 @@ make check -k -C tests ||:
%endif
%changelog
+* Tue Nov 10 2026 Jan Grulich <jgrulich@redhat.com> - 6.11.2-3
+- Upstream backport:
+ - Fix teardown hang with QuickPixmapReader
+
* Fri Sep 11 2026 Jan Grulich <jgrulich@redhat.com> - 6.11.2-2
- Upstream backport:
- QML Engine: correctly compare composites when multiple engines are used
diff --git a/qtdeclarative-fix-teardown-hang-with-quickpixmapreader.patch b/qtdeclarative-fix-teardown-hang-with-quickpixmapreader.patch
new file mode 100644
index 0000000..2c98435
--- /dev/null
+++ b/qtdeclarative-fix-teardown-hang-with-quickpixmapreader.patch
@@ -0,0 +1,60 @@
+From 7214a32024be080099ad05c596ee778623ed66d8 Mon Sep 17 00:00:00 2001
+From: David Edmundson <davidedmundson@kde.org>
+Date: Thu, 01 Oct 2026 13:35:58 +0100
+Subject: [PATCH] Fix teardown hang with QuickPixmapReader
+
+QQuickPixmapReader is a QThread subclass that encapsulates the thread
+usage in the constructor/destructor.
+
+The current code is broken if the QQmlEngine (and thus
+QuickPixmapReader) are deleted as children of the QCoreApplication. At
+this point no new events are posted and the deleteLater doesn't reach
+the relevant thread. We then hang forever waiting on a thread that will
+never quit.
+
+The eventloop_hack was added in 2010
+(ff983ee8257b79143911ca58ebedc49b1660a0c4 before Qt split) with the
+comment that QThread::quit was not thread safe. Current docs say it is.
+
+Pick-to: 6.12
+Change-Id: I0ae1f6c5cf269dfe5cb7b96c682f50692b210da1
+Reviewed-by: Marco Martin <mart@kde.org>
+Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
+Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
+---
+
+diff --git a/src/quick/util/qquickpixmapcache.cpp b/src/quick/util/qquickpixmapcache.cpp
+index 7e693a6..2d370c7 100644
+--- a/src/quick/util/qquickpixmapcache.cpp
++++ b/src/quick/util/qquickpixmapcache.cpp
+@@ -261,7 +261,6 @@
+ {
+ return runLoopReaderThreadExecutionEnforcer;
+ }
+- QObject *eventLoopQuitHack;
+ QMutex mutex;
+ ReaderThreadExecutionEnforcer *runLoopReaderThreadExecutionEnforcer = nullptr;
+ #else
+@@ -606,9 +605,6 @@
+
+ Q_DETACH_THREAD_AFFINITY_MARKER(m_readerThreadAffinityMarker);
+ #if QT_CONFIG(quick_pixmap_cache_threaded_download)
+- eventLoopQuitHack = new QObject;
+- eventLoopQuitHack->moveToThread(this);
+- QObject::connect(eventLoopQuitHack, &QObject::destroyed, this, &QThread::quit, Qt::DirectConnection);
+ start(QThread::LowestPriority);
+ #else
+ run(); // Call nonblocking run for ourselves.
+@@ -656,11 +652,7 @@
+ }
+
+ #if QT_CONFIG(quick_pixmap_cache_threaded_download)
+- // ... schedule stopping of this thread via the eventLoopQuitHack (processJobs scheduled above
+- // will run first) ...
+- eventLoopQuitHack->deleteLater();
+- // ... and wait() for it all to finish, as the thread will only quit after eventLoopQuitHack
+- // has been deleted.
++ quit();
+ wait();
+ #endif
+
next reply other threads:[~2026-11-10 7:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 7:01 Jan Grulich [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-09-11 10:35 [rpms/qt6-qtdeclarative] f44: Upstream backport: Jan Grulich
2026-07-14 5:53 Jan Grulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179429409327.1.762440966729111516.rpms-qt6-qtdeclarative-b0274f499ea2@fedoraproject.org \
--to=jgrulich@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox