Bug 461397 - plasmashell crashed sometimes when using task manager icons with the error The Wayland connection experienced a fatal error: Invalid argument
Summary: plasmashell crashed sometimes when using task manager icons with the error Th...
Status: RESOLVED DUPLICATE of bug 447717
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.26.2
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-04 05:52 UTC by Matt Fagnani
Modified: 2022-11-04 11:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
WAYLAND_DEBUG=1 plasmashell --replace crash log (56.78 KB, text/plain)
2022-11-04 08:54 UTC, Matt Fagnani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Fagnani 2022-11-04 05:52:14 UTC
SUMMARY

plasmashell 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 a 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@99.set_region
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.

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.

OBSERVED RESULT
plasmashell crashed sometimes when using task manager icons with the error The Wayland connection experienced a fatal error: Invalid argument

EXPECTED RESULT
plasmashell wouldn't crash when using task manager icons.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Rawhide/38
(available in About System)
KDE Plasma Version: 5.26.2
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
Comment 1 Matt Fagnani 2022-11-04 08:54:30 UTC
Created attachment 153451 [details]
WAYLAND_DEBUG=1 plasmashell --replace crash log

I'm attaching the end of a log from when I ran WAYLAND_DEBUG=1 plasmashell --replace in konsole and plasmashell crashed when I repeatedly moved the cursor back and forth over the task manager icons so that the tooltips were shown in a Fedora Rawhide KDE Plasma live image with Plasma 5.26.2, KF 5.99.0, Qt 5.15.7. The end of the log showed the following errors.

[4245733.460] wl_display@1.error(wl_display@1, 1, "invalid arguments for org_kde_plasma_surface@270.set_output")
wl_display@1: error 1: invalid arguments for org_kde_plasma_surface@270.set_output
The Wayland connection experienced a fatal error: Invalid argument

Given that the crash can happen just by moving the cursor over the task manager icons and the errors, the Wayland objects/surfaces icons' tooltips might occasionally have been freed while still in use.
Comment 2 Nicolas Fella 2022-11-04 11:24:34 UTC

*** This bug has been marked as a duplicate of bug 447717 ***