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

            Bug ID: 528769
           Summary: Plasmashell deadlocks on exit in QQuickPixmapReader
    Classification: Plasma
           Product: plasmashell
      Version First 6.8.2
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: 1.0

Created attachment 198411
  --> https://bugs.kde.org/attachment.cgi?id=198411&action=edit
Coredump backtrace with symbols

DESCRIPTION

The plasma-plasmashell.service hangs when rebooting or shutting down.

STEPS TO REPRODUCE

1. Use the session for several hours (the hang doesn't happen in short
sessions)
2. Reboot or Shutdown. I used "systemctl --user stop
plasma-plasmashell.service" to simulate the hang and take the coredump while
hanged
3. The reboot/shutdown process hangs for 39 seconds then reboots/shutdowns

OBSERVED RESULT

The reboot or shutdown waits 40 seconds to proceed.

EXPECTED RESULT

The reboot or shutdown is expected to be relatively quick.

SOFTWARE/OS VERSIONS

Operating System: Fedora Linux 44
KDE Plasma Version: 6.8.2
KDE Frameworks Version: 6.31.0
Qt Version: 6.11.2 (qtbase 6.11.2-3, qtdeclarative 6.11.2-2)
Kernel Version: 7.3.3-200.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 9950X3D2 16-Core Processor
Memory: 64 GiB of RAM (61.8 GiB usable)
Graphics Processor: AMD Radeon RX 9060 XT
Manufacturer: ASUS

ADDITIONAL INFORMATION

I have tried to debug the deadlock with the help of LLM in order to collect the
information that might be of use. 

According to it's analysis:

After the main loop exits, main() tears down the object tree. Destroying a
ToolTipArea destroys its ToolTipDialog/QQuickWindow. That window's
DialogBackground drops the last reference to a shared object that owns a
QQuickPixmapReader, whose destructor calls QThread::wait()
(qquickpixmapcache.cpp:663). The reader thread is still idle in QThread::exec()
(qquickpixmapcache.cpp:1203) and never quits, so the main thread waits forever.
Several gdb snapshots taken during the 40s were identical.

The object being destroyed is the tooltip popup itself (ToolTipDialog).

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

Reply via email to