Description of problem: plasmashell 5.26.2 on Wayland in a Fedora Rawhide live image Fedora-KDE-Live-x86_64-Rawhide-20221103.n.0.iso (and earlier) crashed sometimes when using task manager icons with the error The Wayland connection experienced a fatal error: Invalid argument This type of crash has occurred several times when using Fedora Rawhide/38 KDE Plasma live images after I started Firefox or Dolphin from the icons in the task manager, sometimes by right-clicking from the context menus, or selecting Unpin from the Task Manager, or closing them from the icons. plasmashell restarted automatically after each crash. The journals from the times of the crashes showed errors like kwin_wayland_wrapper: invalid object/method in some form and always plasmashell: The Wayland connection experienced a fatal error: Invalid argument. The following example was when I started Firefox from the task manager icon by left-clicking on it. Nov 04 01:06:24 plasmashell[1795]: kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x562e13820fe0) Nov 04 01:06:24 plasmashell[1795]: kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x562e13820fe0) Nov 04 01:06:24 plasmashell[1795]: kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x562e13820fe0) Nov 04 01:06:24 kwin_wayland_wrapper[1652]: invalid object (256), type (wl_buffer), message set_region(?o) Nov 04 01:06:24 kwin_wayland_wrapper[1652]: error in client communication (pid 1795) Nov 04 01:06:24 plasmashell[1795]: The Wayland connection experienced a fatal error: Invalid argument Nov 04 01:06:24 plasmashell[1795]: wl_display@1: error 1: invalid arguments for org_kde_kwin_contrast Nov 04 01:06:24 systemd[1589]: plasma-plasmashell.service: Main process exited, code=exited, status=1/FAILURE Nov 04 01:06:24 systemd[1589]: plasma-plasmashell.service: Failed with result 'exit-code'. Nov 04 01:06:24 systemd[1589]: plasma-plasmashell.service: Consumed 36.328s CPU time. Nov 04 01:06:24 systemd[1589]: plasma-plasmashell.service: Scheduled restart job, restart counter is at 1. Nov 04 01:06:24 systemd[1589]: Stopped plasma-plasmashell.service - KDE Plasma Workspace. Nov 04 01:06:24 systemd[1589]: plasma-plasmashell.service: Consumed 36.328s CPU time. I noticed that lines like plasmashell[3304]: kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x563433e770b0) were frequently shown at the time of the crash. The tooltips for the icons in the task manager didn't show the window preview when the program was running at least some of the time. The following was when I just moved the cursor over the Firefox icon in the task manager and the tooltip was shown. Nov 04 01:19:53 plasmashell[3304]: kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x563433e770b0) Nov 04 01:19:53 plasmashell[3304]: kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x563433e770b0) Nov 04 01:19:53 plasmashell[3304]: kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x563433e770b0) Nov 04 01:19:53 plasmashell[3304]: kf.plasma.quick: Couldn't create KWindowShadow for ToolTipDialog(0x563433e770b0) Nov 04 01:19:53 kwin_wayland_wrapper[1652]: error in client communication (pid 3304) Nov 04 01:19:53 plasmashell[3304]: wl_display@1: error 1: invalid method 1, object wl_buffer@226 Nov 04 01:19:53 plasmashell[3304]: The Wayland connection experienced a fatal error: Invalid argument Nov 04 01:19:53 plasmashell[3304]: The Wayland connection experienced a fatal error: Invalid argument Nov 04 01:19:54 systemd[1589]: plasma-plasmashell.service: Main process exited, code=exited, status=1/FAILURE Nov 04 01:19:54 systemd[1589]: plasma-plasmashell.service: Failed with result 'exit-code'. Nov 04 01:19:54 systemd[1589]: plasma-plasmashell.service: Consumed 21.251s CPU time. Nov 04 01:19:54 systemd[1589]: plasma-plasmashell.service: Scheduled restart job, restart counter is at 2. Nov 04 01:19:54 systemd[1589]: Stopped plasma-plasmashell.service - KDE Plasma Workspace. Nov 04 01:19:54 systemd[1589]: plasma-plasmashell.service: Consumed 21.251s CPU time. Nov 04 01:19:54 systemd[1589]: Starting plasma-plasmashell.service - KDE Plasma Workspace... Nov 04 01:19:55 systemd[1589]: Started plasma-plasmashell.service - KDE Plasma Workspace. The crashes weren't shown by coredumpctl or drkonqi. I tried using gdb -p $(pidof plasmashell) then trying to reproduce the crashes, but they didn't happen when I did that. If you have any suggestions of how to get traces for these crashes, please let me know. I don't usually use the Icons-only task manager, so I'm not sure when this problem started. Version-Release number of selected component (if applicable): plasma-workspace-5.26.2-1.fc38 kf5-plasma-5.99.0-1.fc38 qt5-qtbase-5.15.7-1.fc38 How reproducible: I've seen this type of crash several times, although it only happened some of the time. Steps to Reproduce: 1. Boot Fedora-KDE-Live-x86_64-Rawhide-20221103.n.0.iso https://koji.fedoraproject.org/koji/buildinfo?buildID=2083580 2. Use the Firefox icon in the task manager to start it, or right-click on it and select start, or select Unpin from task manager or use the other icons in the task manager in similar ways until the crash happens. Actual results: plasmashell crashed sometimes when using task manager icons with the error The Wayland connection experienced a fatal error: Invalid argument Expected results: plasmashell wouldn't crash when using task manager icons. Additional info: I reported this problem at https://bugs.kde.org/show_bug.cgi?id=461397
This problem was also discussed at https://bugs.kde.org/show_bug.cgi?id=447717 I found that moving the cursor over the task manager icons for anywhere from 1 second to a few minutes so that their tooltips were shown was usually enough to caush plasmashell to crash in this way with various errors as I described there. plasmashell crashed in this way 2 times with the failed assertion plasmashell: ../src/wayland-client.c:230: wl_proxy_unref: Assertion `proxy->refcount > 0' failed. https://bugs.kde.org/show_bug.cgi?id=447717#c33 I noticed invalid reads while running plasmashell under valgrind which looked like buffer overreads https://bugs.kde.org/show_bug.cgi?id=447717#c28 A race condition in which the Wayland surfaces of the task manager icons' tooltips appeared to be freed sometimes while in use led to the Wayland connection errors and plasmashell being restarted by kwin_wayland. The two latest patches for this problem change Plasma or plasmashell to use the basic render loop for the scene graph instead of the threaded render loop which is currently the default. https://invent.kde.org/plasma/plasma-integration/-/merge_requests/59 https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2332
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle. Changing version to 38.
This message is a reminder that Fedora Linux 38 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 38 on 2024-05-21. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '38'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 38 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21. Fedora Linux 38 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora Linux please feel free to reopen this bug against that version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see the version field. If you are unable to reopen this bug, please file a new report against an active release. Thank you for reporting this bug and we are sorry it could not be fixed.