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

            Bug ID: 497602
           Summary: Plasmashell crashes with "Too many open files" after
                    generating enough window previews in Task Manager
    Classification: Plasma
           Product: plasmashell
           Version: 6.2.3
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: generic-crash
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: 1.0

Created attachment 176708
  --> https://bugs.kde.org/attachment.cgi?id=176708&action=edit
Recording of the bug

SUMMARY
In the Task Manager, when the window previews are turned on, whenever I hover
an application with at least one window open, the previews for that windows are
generated. However, after a certain number of previews have been generated over
the lifecycle of the plasmashell, the plasmashell crashes. The following lines
always accompany the crash:
```
kpipewire_logging: Could not connect to stream
KCrash: Attempting to start /usr/bin/plasmashell
Failed to open metadata file: Too many open files
KCrash: Application 'plasmashell' crashing... crashRecursionCounter = 2
Segmentation fault (core dumped)
```
The most likely reason as to why it happens is because each time the window
preview is generated, a file is opened, but then it is never closed, leading to
a "leak". After enough of these files are "leaked" (left open) to exceed the
maximum amount of open files, the window preview cannot be generated, leading
to a crash.
The leaked files are never closed, which means that they accumulate over time
and the crash will eventually happen if the system is not restarted frequently.
However, the process can be sped up rapidly by hovering over two task manager
entries with a lot of windows open and quickly alternating between them, which
makes the bug easily reproducible.

STEPS TO REPRODUCE
1. Make sure the window previews are enabled in the task manager configuration.
2. Open several instances of two applications.
3. Make sure both of the applications lay next to each other in the task
manager.
4. Hover over one of the applications' icons.
5. Quickly alternate between hovering one and the other application for about a
minute, until plasmashell crashes. This is usually indicated by the taskbar
disappearing.

OBSERVED RESULT
Plasmashell crashes, and the taskbar disappears. This can also cause other side
effects.

EXPECTED RESULT
Plasmashell never crashes and allows the user to alternate between the
applications indefinitely.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.7-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland

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

Reply via email to