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
Enabling zwp_idle_inhibit_manager_v1 causes Mir to crash with some applications #2836
Comments
some SDL games were required for testing Mir, potential bug found in their use of zwp_idle_inhibit_manager_v1\n see here: canonical/mir#2836
@OPNA2608, thanks for this. Clearly there are two issues:
To help us with reproducing this, could you confirm which version of SDL2 you are using? |
Nixpkgs unstable currently uses 2.24.2, Ubuntu 22.10 uses 2.24.0+dfsg-1. |
I'm currently testing on 23.04: that has SDL2 2.26.2. I tried downloading the latest Taisei release from the website, but this doesn't bind to |
Ah, but I've just reproduced (after several attempts) with Neverputt (from the Ubuntu archive) |
I've built Taisei from source against 22.10's system libraries, sorry for not stating so before. I also tried building it against a custom SDL2 2.26.2 on NixOS and it still errors there. The static build from their website does not exhibit these problems. |
OK, this is down to a flawed implementation in Mir of With SDL2 clients this is called when the surface hasn't been mapped, so the Mir code (for reasons unknown) doesn't create an When the client subsequently destroys the |
2842: (Sophie's) reimplementation of idle_inhibit_unstable_v1 r=AlanGriffiths a=wmww Based on and alternative to #2839. I put the visibility observer in idle_inhibit_v1.cpp to avoid cluttering wl_surface.cpp. Draft since there's still some issues I've observed and want to sort out. Not yet clear if they're also in our current implementation and/or Alan's implementation. Fixes #2838 Fixes #2836 Co-authored-by: Alan Griffiths <alan@octopull.co.uk> Co-authored-by: Sophie Winter <wm@wmww.sh>
2846: Release 2.12.1 r=AlanGriffiths a=Saviq - Bugs fixed: . Add missing #include statements (#2802) . mir_wayland_generator generated code that include non public header (#2804) . Building docs fails when trying to not remove doc/html/cppguide (#2800) . wayland: Add missing cstdint includes (#2821) . Enabling zwp_idle_inhibit_manager_v1 causes Mir to crash with some applications (#2836) . [Wayland] idle_inhibit_unstable_v1 is badly broken (#2838) Co-authored-by: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Co-authored-by: Michał Sawicz (Saviq) <michal@sawicz.net>
(The latest releases of) Taisei & Teeworlds as well as some other closed-source applications that can spawn Wayland windows via SDL2 cause the following error in the logs when their window is closed.
If
zwp_idle_inhibit_manager_v1
Wayland extension enabled, andthen this instead crashes the entire Mir session. I've verified this behaviour on NixOS unstable (miral-app & Miriway) and Ubuntu 22.10 (ubuntu-frame snap & source-built miral-app), Mir 2.12.0 and current master (a35b397).
Here is the gdb backtrace with debug information.
https://wayland.app/protocols/idle-inhibit-unstable-v1 indicates that Sway also supports this extension, and these applications don't crash there.
Unsure if relevant to this, but the applications also print the following on startup.
The text was updated successfully, but these errors were encountered: