Shell seems to close connection to clients randomly
I filed this issue against the Xserver thinking the issue would be over there, but it seems a few experienced people think the issue is actually somewhere in the compositor : https://gitlab.freedesktop.org/xorg/xserver/-/issues/1065
Essentially somewhat randomly wayland applications start failing reading they wayland socket (for me it happens to Totem, but mostly to Xwayland). @ofourdan seems to think this might be that the compositor closed the connection somehow.
This is really a recurring issue with the BespokeSynth app. I don't know why it does differently but that is my main reproducer.
I made a flatpak builder so just running that could help people reproduce locally : https://github.com/djdeath/org.freedesktop.LinuxAudio.BespokeSynth.yml It's not published yet as I have to fix a few issues around access to alsa.
This is with gnome-shell 3.36.5.