-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ShadowEffect class causes hangs/crashes on Wayland #970
Comments
I've being playing with the Wayland session a little bit lately.
You can easily test it running Gala as a nested compositor, in my case it only crashes when the multitasking view is opened. After a really quick look to GNOME Shell, it seem like they only use They are using https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/master/src/st/st-shadow.h |
Does anything change or do you get any interesting messages if you do a
|
Another interesting thing to test would be to see if the environment variable |
Yes, if I call
My entire session freezes without showing any relevant message.
Mmmmm interestingly enough no, the variable is not set. Even though I can run some apps in the nested compositor: $ GDK_BACKEND=wayland io.elementary.calculator However, the socket in By the way, this is how I run it, so you, or anyone interested, can test it without breaking your stable Gala installation:
|
@JoseExposito Thanks, that's really helpful. You're right indeed that initializing the I've debugged this a little further with the help of the
It seems that GDK is getting stuck somewhere around here while initialising the wayland display: At first I thought there might be some kind of deadlock where the act of the Wayland client (ShadowEffect class using GTK) waiting for the Wayland server to respond was locking the Wayland server, but spawning I think it's probably time to look at removing GTK code from Gala. |
I think that, unfortunately, that's the only solution @davidmhewitt I need to investigate where are those shadows used in addition to the multitasking view.
We could try to do something smart and parse the CSS, but I don't know how is that going to end up. |
Opening this for tracking against the Wayland project board.
Because the
ShadowEffect
class uses GTK CSS, it tries to initialise GTK upon construction.It is not possible to initialise GTK inside the Wayland compositor, so we need to go back to using Cogl/Clutter to draw shadows.
The text was updated successfully, but these errors were encountered: