Bug 446769 - [Wayland] Kwin crashes randomly when sharing screen on Chromium and switching Virtual Desktops using pager widget.
Summary: [Wayland] Kwin crashes randomly when sharing screen on Chromium and switching...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.23.4
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-10 05:31 UTC by Bacteria
Modified: 2022-01-13 04:37 UTC (History)
2 users (show)

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


Attachments
journalctl log of the crash (52.84 KB, text/plain)
2021-12-10 05:31 UTC, Bacteria
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bacteria 2021-12-10 05:31:18 UTC
Created attachment 144417 [details]
journalctl log of the crash

SUMMARY
This bug happens with the Pager widget on Wayland. Not sure where it belongs exactly.

Kwin crashes when I am sharing screen on Chromium (XWayland) and switching virtual desktops using pager widget. The crash happens randomly, sometimes after switching 2 3 times, sometimes it may takes more tries but it always happens. I have attached journalctl log in text file attached. Since I am running Arch, quality crash report is a pain to obtain.

I was not able to reproduce if I scroll on Pager widget or if I use shortcuts to switch VDs. It happens only when I click on the VD in the Pager widget to switch.


STEPS TO REPRODUCE
1. Share whole screen on Chromium (XWayland)
2. Switch VDs using pager widget by clicking on the virtual desktops. 
3. Repeat step 2 until Kwin crashes. The crash always happens but you may need to switch VDs a number of times. Sometimes it happens in 2-3 times sometimes 30-40 times.

OBSERVED RESULT
Kwin crashes after a variable number of virtual desktop switching.

EXPECTED RESULT
Kwin shouldn't crash.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Arch Linux
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Graphics Platform: Wayland

ADDITIONAL INFORMATION
1. The pager widget is on the panel.
2. Screen sharing is done using webrtc-pipewire flag in Chromium.
Comment 1 Bacteria 2021-12-10 10:17:39 UTC
If the bug wasn't already very specific, it just got more specific.

It only happens when "Show on-screen display when switching". I disabled that setting and the crash is gone.
Comment 2 Nate Graham 2021-12-14 17:46:36 UTC
Can you get a backtrace of the crash? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
Comment 3 Bug Janitor Service 2021-12-29 04:34:59 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 4 Bug Janitor Service 2022-01-13 04:37:13 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!