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

            Bug ID: 523534
           Summary: Summary: kioworker/thumbnail.so hangs indefinitely on
                    a .docx file,  reproducible on KIO 6.28.0 (after the
                    504067 timeout fix)
    Classification: Frameworks and Libraries
           Product: frameworks-kio
      Version First 6.28.0
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

STEPS TO REPRODUCE
1. Open a folder containing a specific .docx file in Dolphin, with 
   "Documents" previews enabled
2. Observe kioworker/thumbnail.so spawn for that file
3. It never terminates on its own

OBSERVED RESULT
Multiple kioworker processes running thumbnail.so get stuck at 
84-96% CPU indefinitely (30+ minutes observed before manual kill). 
They persist even after fully closing Dolphin -- they are orphaned 
from the Dolphin session that spawned them (visible in the 
local:/run/user/1000/dolphin*.kioworker.socket argument).

Example from `ps aux`:
kioworker /usr/lib/kf6/kioworker /usr/lib/qt6/plugins/kf6/kio/thumbnail.so
thumbnail local:/run/user/1000/dolphinjrMIDi.15.kioworker.socket   -- 84.8%
CPU, 31:55 CPU time
kioworker /usr/lib/kf6/kioworker /usr/lib/qt6/plugins/kf6/kio/thumbnail.so
thumbnail local:/run/user/1000/dolphinObUOdC.20.kioworker.socket  -- 96.3% CPU,
31:57 CPU time
kioworker /usr/lib/kf6/kioworker /usr/lib/qt6/plugins/kf6/kio/thumbnail.so
thumbnail local:/run/user/1000/dolphinCQdvRa.21.kioworker.socket  -- 96.2% CPU,
31:56 CPU time
kioworker /usr/lib/kf6/kioworker /usr/lib/qt6/plugins/kf6/kio/thumbnail.so
thumbnail local:/run/user/1000/dolphinOMTner.22.kioworker.socket  -- 96.2% CPU,
31:55 CPU time

Inspecting one stuck process's open file descriptors 
(ls -la /proc/<pid>/fd/) shows the target .docx file open read-only, 
plus 4 anonymous temp files created and unlinked 
(/tmp/#NNNN (deleted)), suggesting the office-document thumbnail 
renderer creates working files and hangs mid-processing without 
cleaning up or timing out.

EXPECTED RESULT
Thumbnail generation should succeed or fail within a reasonable 
time, without pegging a CPU core indefinitely.

ADDITIONAL INFO
This reproduces on KIO 6.28.0-1, well after the generic timeout fix 
from bug 504067 (merged in 6.24). This suggests either this specific 
code path in the office-document thumbnailer isn't covered by that 
timeout, or this is a related-but-distinct issue.
See Also: bug 504067 (RESOLVED FIXED in 6.24), bug 503319 (kio-extras, 
similar indefinite hang on .3mf files, still open)

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.7.3
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1
Kernel Version: 7.1.3-arch2-2 (64bit)
KIO package version: 6.28.0-1
wayland

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

Reply via email to