Bug 440584 - KWin crashes when detaching one Firefox tab to create a new window on second screen.
Summary: KWin crashes when detaching one Firefox tab to create a new window on second ...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.22.4
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-04 10:31 UTC by LucaBrockschmidt
Modified: 2021-10-21 04:35 UTC (History)
3 users (show)

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


Attachments
Ran plasmashell in GDB while reproducing the crash. (14.35 KB, text/plain)
2021-08-04 10:31 UTC, LucaBrockschmidt
Details
Another gdb run (21.67 KB, text/plain)
2021-08-04 10:32 UTC, LucaBrockschmidt
Details
coredumpctl gdb kwin_wayland (42.57 KB, text/plain)
2021-08-05 08:54 UTC, LucaBrockschmidt
Details
backtrace sddm-greeter (48.95 KB, text/plain)
2021-08-05 09:13 UTC, LucaBrockschmidt
Details
gdb plasmashell crash (19.82 KB, text/plain)
2021-09-02 07:02 UTC, Tom Young
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LucaBrockschmidt 2021-08-04 10:31:21 UTC
Created attachment 140505 [details]
Ran plasmashell in GDB while reproducing the crash.

SUMMARY
When detaching a Firefox Tab to open it in a new Window on the second monitor, plasmashell crashes.

STEPS TO REPRODUCE
1. Start a Plasma Wayland Session with multiple Monitors Connected
2. Open Firefox with multiple Tabs
3. Create new Tab
4. Detach new Tab and drag to Second Screen to open a new Window

OBSERVED RESULT
Plasmashell crashes with the prompt "The Wayland connection broke. Did the Wayland compositor die?". 
The background turns black, Task Manger and Application Launcher disappear, but All Windows are still open and functional, you can still switch between them with ALT+Tab.

EXPECTED RESULT
The tab should be opened in a new window on the second scren

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: linux 5.13.7.arch1-1
(available in About System)
KDE Plasma Version: plasma-meta 5.22-1
plasma-wayland-session 5.22.4-2
plasma-workspace 5.22.4-2
KDE Frameworks Version: plasma-framework 5.84.0-1
Qt Version: qt5-wayland 5.15.2+kde+r29-1
qt5-tools 5.15.2+kde+r17-3


ADDITIONAL INFORMATION
I first reported this as a Firefox Bug to Mozilla and the archlinux team. You can find more info at these bugreports:
https://bugs.archlinux.org/task/71683
https://bugzilla.mozilla.org/show_bug.cgi?id=1723370
Comment 1 LucaBrockschmidt 2021-08-04 10:32:43 UTC
Created attachment 140506 [details]
Another gdb run
Comment 2 Nate Graham 2021-08-04 18:04:03 UTC
> The Wayland connection broke. Did the Wayland compositor die?
Seems like it's actually KWin that crashed. Can you get a backtrace of the KWin crash? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl
Comment 3 LucaBrockschmidt 2021-08-05 08:54:16 UTC
Created attachment 140537 [details]
coredumpctl gdb kwin_wayland

This is my gdb output for the coredump of /usr/bin/kwin_wayland.
I hope this helps. If you have any more questions or need more info, just ask.
Comment 4 LucaBrockschmidt 2021-08-05 09:13:48 UTC
Created attachment 140538 [details]
backtrace sddm-greeter

I don't know if this is related but I found another corefile for the sddm-greeter after running coredumpctl as root.
I have attached the corresponding backtrace.
Comment 5 Vlad Zahorodnii 2021-08-05 13:49:03 UTC
#0  0x00007f503871a110 in ?? () from /usr/lib/pipewire-0.3/libpipewire-module-protocol-native.so

It seems like kwin crashes in pipewire code?
Comment 6 Tom Young 2021-09-02 07:02:26 UTC
Created attachment 141237 [details]
gdb plasmashell crash

I can replicate this issue. I don't have a second screen to detach the tab to, but just dragging a tab to the desktop to detach triggers the same result. This only happens on Wayland, detaching works as intended on X11.

I've attached a gdb run of plasmashell, I don't get an entry in coredumpctl.

Probably unrelated, but I also get the following just by dragging anything (tabs, text, images) around for a couple of seconds on Firefox. Firefox exits afterwards:
Gdk-Message: 18:48:18.315: Lost connection to Wayland compositor.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.

5.13.13-arch1-1
plasma 5.22.5-1
Comment 7 David Redondo 2021-09-21 14:07:06 UTC
Still need a full kwin backtrace
Comment 8 Bug Janitor Service 2021-10-06 04:36:04 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 9 Bug Janitor Service 2021-10-21 04:35:31 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!