Bug 480300 - Sometimes after locking plasmashell enters a crash loop every few minutes due to opening too many files
Summary: Sometimes after locking plasmashell enters a crash loop every few minutes due...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (other bugs)
Version First Reported In: 5.92.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-01-25 03:42 UTC by Michael Rogers
Modified: 2024-12-25 03:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rogers 2024-01-25 03:42:07 UTC
SUMMARY
Sometimes after locking plasmashell (wayland) enters a crash loop every few minutes.
It errors with
```
Jan 24 21:34:59 Garriet plasmashell[170401]: The Wayland connection experienced a fatal error: Too many open files
Jan 24 21:34:59 Garriet plasmashell[170401]: Error marshalling request: Too many open files
Jan 24 21:34:59 Garriet plasmashell[170401]: error marshalling arguments for get_icon: dup failed: Too many open files
```
Running:
lsof -p $(pidof plasmashell) | wc -l
Reveals that new pipes are being made rapidly, several a second, example:
plasmashe 171221 michael 1002r     FIFO               0,14      0t0  4066168 pipe
plasmashe 171221 michael 1003r     FIFO               0,14      0t0  4081732 pipe
plasmashe 171221 michael 1004r     FIFO               0,14      0t0  4067066 pipe
plasmashe 171221 michael 1005r     FIFO               0,14      0t0  4080284 pipe
plasmashe 171221 michael 1006r     FIFO               0,14      0t0  4082971 pipe
plasmashe 171221 michael 1007r     FIFO               0,14      0t0  4081734 pipe
plasmashe 171221 michael 1008r     FIFO               0,14      0t0  4081736 pipe
plasmashe 171221 michael 1009r     FIFO               0,14      0t0  4073952 pipe

STEPS TO REPRODUCE
1.  Let screen lock and blank
2. Unlock
3. There is a chance this crash loop starts

OBSERVED RESULT
Crashing every couple minutes

EXPECTED RESULT
No crashing

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch KDE RC1
(available in About System)
KDE Plasma Version: 5.92.0
KDE Frameworks Version:  5.248.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Looks like a possible memory leak not closing icons? As the out of handles error always happens when trying to open an icon. I am not interacting with the panel in any way during this time, my focus stayed in this text box every time it crashed, and it crashed several times in the period of entering this text. System seems stable most of the time, but last time this happened I rebooted before it stopped. It doesn't always happen when locking the session.
Comment 1 TraceyC 2024-11-25 18:34:21 UTC
If something crashed, we need a backtrace of it so we can figure out what's going on. Can you please attach a backtrace of the crash using the coredumpctl command-line program, as detailed in https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl?

Thanks!
Comment 2 Bug Janitor Service 2024-12-10 03:46:30 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2024-12-25 03:47:34 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.