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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |Setup-Misc
      Version First|unspecified                 |9.1.0
        Reported In|                            |
            Version|                            |9.2.0
  Fixed/Implemented|                            |
                 In|                            |
             Status|REPORTED                    |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |FIXED

--- Comment #3 from [email protected] ---
Git commit 253ac8602c6afb864a60e8ab16dfbd051d3388a4 by Andreas Winther.
Committed on 14/07/2026 at 21:35.
Pushed by cgilles into branch 'master'.

Fix malformed QString::arg() in OpenCL DNN test thread name

The thread-name string "OpenCLDNN" contained no %1 placeholder, so the
following .arg(__FUNCTION__) call had no marker to substitute into. Qt
logged a runtime "QString::arg: Argument missing" warning whenever the
OpenCV/OpenCL DNN test ran, and the function name was silently dropped
from the thread name.

Add the missing %1 placeholder so the thread name resolves to
"OpenCLDNN::runTest" as intended.

M  +1    -1    core/utilities/setup/misc/ocvocldnntestdlg.cpp

https://invent.kde.org/graphics/digikam/-/commit/253ac8602c6afb864a60e8ab16dfbd051d3388a4

diff --git a/core/utilities/setup/misc/ocvocldnntestdlg.cpp
b/core/utilities/setup/misc/ocvocldnntestdlg.cpp
index 0a6cb78790..1b7b190309 100644
--- a/core/utilities/setup/misc/ocvocldnntestdlg.cpp
+++ b/core/utilities/setup/misc/ocvocldnntestdlg.cpp
@@ -246,7 +246,7 @@ void OpenCVOpenCLDNNTestDlg::slotNotification(const
QString& message)

 bool OpenCVOpenCLDNNTestDlg::runTest()
 {
-   
ActionThreadBase::setCurrentThreadName(QString::fromLatin1("OpenCLDNN").arg(QLatin1String(__FUNCTION__)));
      // To customize thread name
+   
ActionThreadBase::setCurrentThreadName(QString::fromLatin1("OpenCLDNN::%1").arg(QLatin1String(__FUNCTION__)));
      // To customize thread name

     bool result = false;

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

Reply via email to