Bug 1675402 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Under very rare circumstances it appears that Firefox tries to make a surface a subsurface of itself - something like `wl_subcompositor_get_subsurface(subcompositor, surface, surface)`. Right now this crashes GS, thus we are unlikely to get crash reports for it. I made a fix for Mutter to prevent that - once that lands I expect more crash reports here. Hopefully I'll be able to catch a backtrace of it soon now.

Observerd two times over the last week on Fedora 32, FF 82.

Mutter crash stack:
```
...
#391 0x00007f59ae6643d3 in meta_wayland_surface_notify_subsurface_state_changed (surface=0x398d6c0 [MetaWaylandSurface])
    at ../src/wayland/meta-wayland-surface.c:1852
#392 0x00007f59ae65f86b in meta_wayland_subsurface_notify_subsurface_state_changed (surface_role=0x3c7e900 [MetaWaylandSubsurface])
    at ../src/wayland/meta-wayland-subsurface.c:290
#393 0x00007f59ae6643a8 in meta_wayland_surface_role_notify_subsurface_state_changed (surface_role=0x3c7e900 [MetaWaylandSubsurface])
    at ../src/wayland/meta-wayland-surface.c:1845
#394 0x00007f59ae6643d3 in meta_wayland_surface_notify_subsurface_state_changed (surface=0x398d6c0 [MetaWaylandSurface])
    at ../src/wayland/meta-wayland-surface.c:1852
#395 0x00007f59ae65f86b in meta_wayland_subsurface_notify_subsurface_state_changed (surface_role=0x3c7e900 [MetaWaylandSubsurface])
    at ../src/wayland/meta-wayland-subsurface.c:290
#396 0x00007f59ae6643a8 in meta_wayland_surface_role_notify_subsurface_state_changed (surface_role=0x3c7e900 [MetaWaylandSubsurface])
...
```
and more until the stack is filled up.

See also https://gitlab.gnome.org/GNOME/mutter/-/issues/1521 and https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1550
Under very rare circumstances it appears that Firefox tries to make a surface a subsurface of itself - something like `wl_subcompositor_get_subsurface(subcompositor, surface, surface)`. Right now this crashes GS, thus we are unlikely to get crash reports for it. I made a fix for Mutter to prevent that - once that lands I expect more crash reports here. Hopefully I'll be able to catch a backtrace of it soon now.

Observerd two times over the last week on Fedora 32, FF 82.

Mutter crash stack:
```
...
#391 0x00007f59ae6643d3 in meta_wayland_surface_notify_subsurface_state_changed (surface=0x398d6c0 [MetaWaylandSurface])
    at ../src/wayland/meta-wayland-surface.c:1852
#392 0x00007f59ae65f86b in meta_wayland_subsurface_notify_subsurface_state_changed (surface_role=0x3c7e900 [MetaWaylandSubsurface])
    at ../src/wayland/meta-wayland-subsurface.c:290
#393 0x00007f59ae6643a8 in meta_wayland_surface_role_notify_subsurface_state_changed (surface_role=0x3c7e900 [MetaWaylandSubsurface])
    at ../src/wayland/meta-wayland-surface.c:1845
#394 0x00007f59ae6643d3 in meta_wayland_surface_notify_subsurface_state_changed (surface=0x398d6c0 [MetaWaylandSurface])
    at ../src/wayland/meta-wayland-surface.c:1852
#395 0x00007f59ae65f86b in meta_wayland_subsurface_notify_subsurface_state_changed (surface_role=0x3c7e900 [MetaWaylandSubsurface])
    at ../src/wayland/meta-wayland-subsurface.c:290
#396 0x00007f59ae6643a8 in meta_wayland_surface_role_notify_subsurface_state_changed (surface_role=0x3c7e900 [MetaWaylandSubsurface])
...
```
and more until the stack is filled up.

See also https://gitlab.gnome.org/GNOME/mutter/-/issues/1521 and https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1550

Future error message for search engines:
```
wl_subcompositor@6: error 0: Circular relationship between wl_surface@12 and parent surface wl_surface@10
```

Back to Bug 1675402 Comment 0