SUMMARY Plasma crashes seemingly at random, but always triggered by a notification. Not all notifications. just randomly. STEPS TO REPRODUCE 1. Receiving notifications. Sometimes. OBSERVED RESULT Plasma crash and restarts on its own EXPECTED RESULT Not to crash SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux KDE Plasma Version: 6.4.4 KDE Frameworks Version: 6.16.0 Qt Version: 6.9.1 ADDITIONAL INFORMATION I ran journalctl --reverse immediately after the crash and this is what happened during the time of the crash: Aug 06 11:13:14 archlinux systemd[986]: Started dbus-:1.2-org.freedesktop.Notifications@0.service. Aug 06 11:13:14 archlinux systemd[986]: Created slice Slice /app/dbus-:1.2-org.freedesktop.Notifications. Aug 06 11:13:14 archlinux kwin_wayland[1096]: kwin_core: XCB error: 3 (BadWindow), sequence: 10287, resource id: 48274480, major code: 129 (SHAPE), minor code: 3 (Combine) Aug 06 11:13:14 archlinux kwin_wayland[1096]: kwin_core: XCB error: 3 (BadWindow), sequence: 10278, resource id: 48274480, major code: 129 (SHAPE), minor code: 3 (Combine) Aug 06 11:13:14 archlinux zen-bin[74921]: Error: Failed to open Wayland display, fallback to X11. WAYLAND_DISPLAY='wayland-0' DISPLAY=':1' Aug 06 11:13:14 archlinux systemd[986]: Started Zen Browser. Aug 06 11:13:11 archlinux systemd[986]: plasma-ksystemstats.service: Consumed 7min 37.744s CPU time, 22.1M memory peak, 5.4M memory swap peak. Aug 06 11:13:11 archlinux systemd[986]: app-plasmashell@e8e4c25c70d94fdc9c420bcaa66f1be8.service: Consumed 4min 34.334s CPU time, 477.6M memory peak, 39.1M memory swap peak. Aug 06 11:13:11 archlinux systemd[986]: app-plasmashell@e8e4c25c70d94fdc9c420bcaa66f1be8.service: Failed with result 'exit-code'. Aug 06 11:13:11 archlinux systemd[986]: app-plasmashell@e8e4c25c70d94fdc9c420bcaa66f1be8.service: Main process exited, code=exited, status=255/EXCEPTION Aug 06 11:13:11 archlinux plasmashell[21057]: The Wayland connection experienced a fatal error: Too many open files Aug 06 11:13:11 archlinux plasmashell[21057]: Error marshalling request for org_kde_plasma_window.get_icon: Too many open files Aug 06 11:13:11 archlinux plasmashell[21057]: error marshalling arguments for get_icon: dup failed: Too many open files Aug 06 11:13:10 archlinux rtkit-daemon[1254]: Supervising 10 threads of 6 processes of 1 users. Aug 06 11:13:10 archlinux rtkit-daemon[1254]: Supervising 10 threads of 6 processes of 1 users. Aug 06 11:12:49 archlinux rtkit-daemon[1254]: Supervising 10 threads of 6 processes of 1 users. Aug 06 11:13:18 archlinux rtkit-daemon[1254]: Supervising 10 threads of 6 processes of 1 users. Aug 06 11:13:18 archlinux rtkit-daemon[1254]: Supervising 10 threads of 6 processes of 1 users. Aug 06 11:13:15 archlinux rtkit-daemon[1254]: Supervising 10 threads of 6 processes of 1 users. Aug 06 11:13:15 archlinux rtkit-daemon[1254]: Supervising 10 threads of 6 processes of 1 users. Aug 06 11:13:14 archlinux systemd[986]: Started dbus-:1.2-org.freedesktop.Notifications@0.service. Aug 06 11:13:14 archlinux systemd[986]: Created slice Slice /app/dbus-:1.2-org.freedesktop.Notifications. Aug 06 11:13:14 archlinux kwin_wayland[1096]: kwin_core: XCB error: 3 (BadWindow), sequence: 10287, resource id: 48274480, major code: 129 (SHAPE), minor code: 3 (Combine) Aug 06 11:13:14 archlinux kwin_wayland[1096]: kwin_core: XCB error: 3 (BadWindow), sequence: 10278, resource id: 48274480, major code: 129 (SHAPE), minor code: 3 (Combine) Aug 06 11:13:14 archlinux zen-bin[74921]: Error: Failed to open Wayland display, fallback to X11. WAYLAND_DISPLAY='wayland-0' DISPLAY=':1' Aug 06 11:13:14 archlinux systemd[986]: Started Zen Browser. Aug 06 11:13:11 archlinux systemd[986]: plasma-ksystemstats.service: Consumed 7min 37.744s CPU time, 22.1M memory peak, 5.4M memory swap peak. Aug 06 11:13:11 archlinux systemd[986]: app-plasmashell@e8e4c25c70d94fdc9c420bcaa66f1be8.service: Consumed 4min 34.334s CPU time, 477.6M memory peak, 39.1M memory swap peak. Aug 06 11:13:11 archlinux systemd[986]: app-plasmashell@e8e4c25c70d94fdc9c420bcaa66f1be8.service: Failed with result 'exit-code'. Aug 06 11:13:11 archlinux systemd[986]: app-plasmashell@e8e4c25c70d94fdc9c420bcaa66f1be8.service: Main process exited, code=exited, status=255/EXCEPTION Aug 06 11:13:11 archlinux plasmashell[21057]: The Wayland connection experienced a fatal error: Too many open files Aug 06 11:13:11 archlinux plasmashell[21057]: Error marshalling request for org_kde_plasma_window.get_icon: Too many open files Aug 06 11:13:11 archlinux plasmashell[21057]: error marshalling arguments for get_icon: dup failed: Too many open files
Aug 06 11:13:11 archlinux plasmashell[21057]: The Wayland connection experienced a fatal error: Too many open files Aug 06 11:13:11 archlinux plasmashell[21057]: Error marshalling request for org_kde_plasma_window.get_icon: Too many open files Aug 06 11:13:11 archlinux plasmashell[21057]: error marshalling arguments for get_icon: dup failed: Too many open files Too many files means too many files. :/ There's not much we can do about this. Can you comment on your usage of the system? Is there anything you can thin of that would be opening gazillions of files?
I don't know how many files is "too many". I have fairly light usage. I have element and a browser open almost all the time. Sometimes pycharm, konsole, and dolphin too. Maybe open a text file or two here and there. But that's about it. The heaviest usage I might have is to have those open. But the crash doesn't always happen when they're all open. It can happen even when only element and browser is open.
Please attach the output of: ulimit ulimit -Sn ulimit -Hn Also, do you have an NVIDIA GPU? Finally, you might be interested in reading through https://forums.opensuse.org/t/too-many-open-files/187265/7, where other folks had the same issue and did some troubleshooting.
ulimit = unlimited ulimit -Sn = 1024 ulimit -Hn = 524288 Yes I have NVIDIA GPU There were 2 commands mentioned in that thread which I ran and these are the results right now: echo "Total open files:" $(lsof -p $(pidof plasmashell) | wc -l) = Total open files: 1644 echo "sync_file type files:" $(lsof -p $(pidof plasmashell) | grep -c sync_file) = 388 If it matters, I can run those commands immediately after Plasma restarts and provide the results again. Also it might might worth mentioning that I've asked a friend who has Slackware but same plasma version and NVIDIA GPU, and he doesn't have this issue.
There's also `lsof | wc -l`. Regardless, it probably makes sense to set the ulimit higher, especially if you have an NVIDIA GPU. I'm going to close this as a downstream issue since it appears to be an unfortunace confluence of NVIDIA bugs and system configuration.