[wayland][flatpak] Wayland crashes when clicking on any drop-down menu of OBS Studio
After installing OBS Studio via flatpak, you can consistently crash wayland by clicking on any drop-down menu of the application. The following logs are generated:
kernel: gnome-shell[3317]: segfault at 20 ip 00007fc4e1937639 sp 00007fff7a672d78 error 4 in libmutter-10.so.0.0.0[7fc4e1849000+143000] likely on CPU 7 (core 3, socket 0)
kernel: Code: f0 48 83 c4 08 5b 5d c3 66 0f 1f 84 00 00 00 00 00 48 83 7b 20 00 75 b9 48 8b 5b 08 48 85 db 75 f0 48 83 c4 08 31 c0 5b 5d c3 <48> 8b 04 25 20 00 00 00 0f 0b b8 01 00 00 00 c3 b8 01 00 00 00 ebd
com.obsproject.Studio.desktop[281801]: The Wayland connection broke. Did the Wayland compositor die?
My system is a PopOS! 22.04, running gnome/mutter 42.5, and wayland. I installed OBS via flatpak (currently installed version: 29.1.3)
$ inxi -Sx
System:
Host: ##### Kernel: 6.4.6-76060406-generic x86_64 bits: 64
compiler: N/A Desktop: GNOME 42.5 Distro: Pop!_OS 22.04 LTS
base: Ubuntu 22.04 LTS Jammy
I installed OBS Studio via flatpak install com.obsproject.Studio
. This is the application and runtime information:
~$ flatpak info --verbose --show-extensions com.obsproject.Studio
OBS Studio - Live streaming and video recording software
ID: com.obsproject.Studio
Ref: app/com.obsproject.Studio/x86_64/stable
Arch: x86_64
Branch: stable
Version: 29.1.3
License: GPL-2.0-or-later
Origin: flathub
Collection: org.flathub.Stable
Installation: user
Installed: 520.2 MB
Runtime: org.kde.Platform/x86_64/6.4
Sdk: org.kde.Sdk/x86_64/6.4
Commit: e045c06e1a995b02c92612a4fb87ea4830cfb22e38bbb2d94b5ef4d5ce02d799
Parent: a2a07309102914200525da7264170751b657f635fa203213f08d4c5868d3842f
Subject: Export com.obsproject.Studio
Date: 2023-06-19 10:04:09 +0000
F: No installations directory in /etc/flatpak/installations.d. Skipping
Extension: runtime/com.obsproject.Studio.Locale/x86_64/stable
ID: com.obsproject.Studio.Locale
Origin: flathub
Commit: 28920044196415a40f6a13f83bdfd60d991c3fbceb59e1f5e08ead08e393fdce
Installed: <512 bytes
Subpaths: /en
I also reproduced this crash on a virtual machine by running a live PopOS 22.04 (pop-os_22.04_amd64_intel_22.iso).
Steps to reproduce:
- boot any computer with pop-os_22.04_amd64_intel_22.iso
- install OBS via flatpak [flatpak install com.obsproject.Studio]
- follow this steps to change the current desktop session to Wayland without rebooting: https://askubuntu.com/questions/1267779/try-wayland-on-20-04-live-usb
- run OBS Studio
- click on any drop-down menu (for example, the one showing "Fade" under "Scene Transitions" . Then click outside of it (like of you were trying to close the drop-down menu without selecting any option)
This will crash wayland and you will loose the session completely, pushing you back to the login screen.
Edited by Jose ignacio Aizpun