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

            Bug ID: 529208
           Summary: plasmashell spins at 100% CPU forever (desktop dead)
                    when a .desktop file in ~/Desktop contains a NUL byte
    Classification: Plasma
           Product: plasmashell
      Version First 5.27.12
       Reported In:
          Platform: Mint (Debian based)
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Folder View widget
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: 1.0

Environment: KDE Plasma 5.27.12 on X11 (Linux Mint 22.3, Qt 5.15).

STEPS TO REPRODUCE:
1. Take any working .desktop file in ~/Desktop (Chinese locale here: ~/桌面)
2. Append a single NUL (0x00) byte at the end of the file
3. Log into a Plasma (X11) session

OBSERVED RESULT:
- plasmashell spins at 100% CPU indefinitely (measured 17 min 41 s CPU in
  one session, desktop never became usable)
- The panel never appears; desktop icons don't respond; the whole shell
  is dead
- journal shows kf.config.core spamming 'Invalid entry (missing "=")'
  for that file 5-8 times per second, forever

EXPECTED RESULT:
The folder view should parse the file once, mark that one icon as broken
(or ignore it), and leave the rest of the desktop and panel alive.

NOTE: A single malformed file in ~/Desktop should never be able to take
down the entire shell. This looks like a parse/reload loop: the failed
parse appears to trigger a re-read, which fails again, ad infinitum.

Workaround: strip the NUL bytes (tr -d '\000') from the file; plasmashell
immediately goes idle (measured 0% CPU after the fix).

DESCRIPTION


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window):
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

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

Reply via email to