Bug 440559 - Certain parts of KDE Plasma stop working after long-term use
Summary: Certain parts of KDE Plasma stop working after long-term use
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.22.4
Platform: Manjaro Linux
: NOR major
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-03 15:27 UTC by alerikaisattera
Modified: 2021-11-29 17:57 UTC (History)
4 users (show)

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


Attachments
fdlog (22.41 KB, application/gzip)
2021-09-16 17:57 UTC, alerikaisattera
Details
fdlog (24.50 KB, application/gzip)
2021-09-27 12:45 UTC, alerikaisattera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alerikaisattera 2021-08-03 15:27:23 UTC
This is a highly enigmatic bug. After long-term use of KDE Plasma (for a few days without restart) one or more of the following stop working:

* Thumbnails for new images/videos in Dolphin
* Starting software via keyboard shortcuts. This may affect Dolphin, Spectacle, Krunner, but never Konsole
* Opening any files via Dolphin
* Certain actions in Dolphin (for instance, change ownership)

Prior to Plasma 5.22, every failed action was accompanied by log message

  This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                         
  Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

from either kdeinit5, kglobalaccel or, in case of opening a file in a program, that program. This message was followed by a crash message.

In Plasma 5.22, however, the message is

  QProcessPrivate::createPipe: Cannot create pipe 0x55848c032c68 (Too many open files)

with the number different every time. No crash messages


STEPS TO REPRODUCE
This bug is quite hard to reproduce, exact trigger is not known
1. Use Plasma for multiple days with no restart
2. After some time, some parts of Plasma (described above) stop working 

OBSERVED RESULT
Using Plasma for multiple days causes some functions to stop working


EXPECTED RESULT
Using Plasma for multiple days must not cause any problems


SOFTWARE/OS VERSIONS

KDE Plasma Version:  Present at least since 5.19 to 5.22. Possibly was present before 5.19 as well
Comment 1 Nate Graham 2021-08-03 19:26:34 UTC
How did you install your system? This seems like a configuration/packaging bug.

However this is interesting:

> QProcessPrivate::createPipe: Cannot create pipe 0x55848c032c68 (Too many open files)

Do things start working if you increase the open file limit? See https://www.tecmint.com/increase-set-open-file-limits-in-linux/
Comment 2 alerikaisattera 2021-08-03 20:07:21 UTC
> How did you install your system? This seems like a configuration/packaging
> bug.
> 

Manjaro installed from official Manjaro KDE edition
Comment 3 alerikaisattera 2021-08-03 20:08:27 UTC
> Do things start working if you increase the open file limit? See
> https://www.tecmint.com/increase-set-open-file-limits-in-linux/

This is already unreasonably large (9223372036854775807), so probably not
Comment 4 alerikaisattera 2021-08-03 20:10:58 UTC
(In reply to alerikaisattera from comment #3)
> > Do things start working if you increase the open file limit? See
> > https://www.tecmint.com/increase-set-open-file-limits-in-linux/
> 
> This is already unreasonably large (9223372036854775807), so probably not

I saw there are some other limits, which are smaller
Comment 5 alerikaisattera 2021-08-15 13:34:09 UTC
Increasing limits had no apparent effect. The bug occured in 10 days, which seems to be typical for it
Comment 6 alerikaisattera 2021-08-15 13:36:40 UTC
This time the error messages are

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                           
                                           Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Comment 7 valdikss 2021-08-16 10:19:48 UTC
Next time when you spot this bug, execute Konsole (you say it works) and run:

    ps aux > fdlog.txt
    ls -la /proc/*/fd >> fdlog.txt
    gzip fdlog.txt

and upload fdlog.txt.gz here.
Comment 8 valdikss 2021-08-16 10:21:22 UTC
Do you have any additional plasmoids, maybe third-party ones?
Comment 9 alerikaisattera 2021-08-16 16:25:33 UTC
(In reply to valdikss from comment #8)
> Do you have any additional plasmoids, maybe third-party ones?

No
Comment 10 Bug Janitor Service 2021-08-31 04:36:25 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2021-09-15 04:36:25 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 12 alerikaisattera 2021-09-16 17:57:13 UTC
Created attachment 141607 [details]
fdlog

This time I tried closing Dolphin and restarting it. Restarting via shortcut failed, but was successful via Krunner. This fixed opening files in some applications (Kate) but not in others (VLC). Didn't fix rest of the problem
Comment 13 valdikss 2021-09-16 18:25:36 UTC
Something is indeed wrong with Dolphin, it has a lot of sockets.
It's not clear whether this is a network sockets or unix sockets. Run

    ps aux > fdlog.txt
    ls -la /proc/*/fd >> fdlog.txt
    ss -np >> fdlog.txt
    gzip fdlog.txt

please.
Comment 14 alerikaisattera 2021-09-17 03:51:01 UTC
(In reply to valdikss from comment #13)
> Something is indeed wrong with Dolphin, it has a lot of sockets.
> It's not clear whether this is a network sockets or unix sockets. Run
> 
>     ps aux > fdlog.txt
>     ls -la /proc/*/fd >> fdlog.txt
>     ss -np >> fdlog.txt
>     gzip fdlog.txt
> 
> please.

Will do it next time I have this bug. This should take about 10 days, unless I have to do reboot/shutdown in this time
Comment 15 valdikss 2021-09-17 06:52:40 UTC
(In reply to alerikaisattera from comment #14)
> Will do it next time I have this bug. This should take about 10 days, unless
> I have to do reboot/shutdown in this time

If `ls -la /proc/*/fd` shows many fds for dolphin, you can do that right now, without waiting for the bug.
Comment 16 David Edmundson 2021-09-22 08:59:23 UTC
Marking as needsinfo.

Please reopen after attaching the file
Comment 17 alerikaisattera 2021-09-27 12:45:41 UTC
Created attachment 141947 [details]
fdlog

Added info with socket information included
Comment 18 alerikaisattera 2021-09-29 11:59:01 UTC
reopened with new info
Comment 19 valdikss 2021-10-02 13:59:41 UTC
(In reply to alerikaisattera from comment #17)
> Created attachment 141947 [details]
> fdlog
> 
> Added info with socket information included

Unfortunately I don't know what's the cause of these sockets and how to fix that. I would guess that is file descriptor leak. Maybe KDE developers can help.
Comment 20 David Edmundson 2021-10-03 19:56:18 UTC
Plasmashell had a sensible amount of fd's open.
Comment 21 valdikss 2021-10-05 16:29:41 UTC
(In reply to David Edmundson from comment #20)
> Plasmashell had a sensible amount of fd's open.

Take a look at dolphin with 303 fds in the latest file.
Comment 22 Bug Janitor Service 2021-10-20 04:35:29 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 23 Bug Janitor Service 2021-11-04 04:35:23 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 24 alerikaisattera 2021-11-28 06:11:24 UTC
Due to lack of updates, I recenlty had a Plasma session running for almost a month. During that time, only Dolphin-related bugs were detected, with error message "QProcessPrivate::createPipe: Cannot create pipe 0x5607b2303378 (Too many open files)" in logs. Restarting Dolphin fixes this. No bugs in other components have been detected
Comment 25 Nate Graham 2021-11-29 17:57:14 UTC
OK, if Plasma is now working find and only Dolphin-related bugs were found, please report them separately to Dolphin. :) Thanks!