mutter/src/tests/monitor-configs
Jonas Ådahl 867494d3df wayland/cursor-surface: Update cursor on dispose
Otherwise we'll have a cursor sprite backed by a surface that no longer
exist. This usually doesn't happen, but can happen in rare situations
related to pointer capability changes Wayland client cursor changes and
hotplugs.

Fixes the following crash:

  #0 meta_wayland_buffer_get_resource() at ../src/wayland/meta-wayland-buffer.c:128
  #1 realize_cursor_sprite_from_wl_buffer_for_gpu() at ../src/backends/native/meta-cursor-renderer-native.c:1649
  #2 realize_cursor_sprite_for_gpu() at ../src/backends/native/meta-cursor-renderer-native.c:1869
  #3 realize_cursor_sprite() at ../src/backends/native/meta-cursor-renderer-native.c:1887
  #4 meta_cursor_renderer_native_update_cursor() at ../src/backends/native/meta-cursor-renderer-native.c:1100
  #5 meta_cursor_renderer_update_cursor() at ../src/backends/meta-cursor-renderer.c:414
  #6 meta_cursor_renderer_force_update() at ../src/backends/meta-cursor-renderer.c:449
  #7 update_cursors() at ../src/backends/meta-backend.c:328
  #8 meta_backend_monitors_changed() at ../src/backends/meta-backend.c:338
  #9 meta_monitor_manager_notify_monitors_changed() at ../src/backends/meta-monitor-manager.c:3590
 #10 meta_monitor_manager_rebuild() at ../src/backends/meta-monitor-manager.c:3678
 #11 meta_monitor_manager_native_apply_monitors_config() at ../src/backends/native/meta-monitor-manager-native.c:343
 #12 meta_monitor_manager_apply_monitors_config() at ../src/backends/meta-monitor-manager.c:706
 #13 meta_monitor_manager_ensure_configured() at ../src/backends/meta-monitor-manager.c:779
 #14 meta_monitor_manager_reconfigure() at ../src/backends/meta-monitor-manager.c:3738
 #15 meta_monitor_manager_reload() at ../src/backends/meta-monitor-manager.c:3745

or the following on gnome-43:

 #0 meta_wayland_surface_get_buffer at ../src/wayland/meta-wayland-surface.c:441
 #1 meta_cursor_sprite_wayland_get_buffer at ../src/wayland/meta-cursor-sprite-wayland.c:83
 #2 realize_cursor_sprite_from_wl_buffer_for_gpu at ../src/backends/native/meta-cursor-renderer-native.c:1612
 #3 realize_cursor_sprite_for_gpu at ../src/backends/native/meta-cursor-renderer-native.c:1836
 #4 realize_cursor_sprite at ../src/backends/native/meta-cursor-renderer-native.c:1854
 #5 meta_cursor_renderer_native_update_cursor at ../src/backends/native/meta-cursor-renderer-native.c:1087
 #6 meta_cursor_renderer_update_cursor at ../src/backends/meta-cursor-renderer.c:413
 #7 meta_cursor_renderer_force_update at ../src/backends/meta-cursor-renderer.c:448
 #8 update_cursors at ../src/backends/meta-backend.c:344
 #9 meta_backend_monitors_changed at ../src/backends/meta-backend.c:354

Related: https://bugzilla.redhat.com/show_bug.cgi?id=2185113
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2968>
2023-04-17 19:53:35 +00:00
..
system monitor-config-store: Add test for monitor configuration policy 2022-01-25 16:25:48 +00:00
user monitor-config-store: Add test for monitor configuration policy 2022-01-25 16:25:48 +00:00
first-rotated.xml tests/monitor-unit-tests: Make serials more unique 2022-09-01 14:31:40 +00:00
fractional-scale.xml monitor-config-store: Properly escape monitor spec 2021-01-29 16:49:58 +00:00
full-hd-fractional-scale-1.5.xml tests/wayland: Add test for fractional-scale protocol 2023-03-04 22:13:45 +01:00
full-hd-fractional-scale-1.25.xml tests/wayland: Add test for fractional-scale protocol 2023-03-04 22:13:45 +01:00
high-precision-fractional-scale.xml monitor-config-store: Properly escape monitor spec 2021-01-29 16:49:58 +00:00
interlaced.xml monitor-config-store: Properly escape monitor spec 2021-01-29 16:49:58 +00:00
kms-cursor-hotplug-off.xml wayland/cursor-surface: Update cursor on dispose 2023-04-17 19:53:35 +00:00
kms-cursor-hotplug-on.xml wayland/cursor-surface: Update cursor on dispose 2023-04-17 19:53:35 +00:00
lid-scale.xml monitor-config-store: Properly escape monitor spec 2021-01-29 16:49:58 +00:00
lid-switch.xml tests/monitor-unit-tests: Make serials more unique 2022-09-01 14:31:40 +00:00
max-bpc.xml monitor-store-unit-tests: Verify <maxbpc> XML is stored correctly 2022-08-19 17:07:13 +00:00
mirrored.xml tests/monitor-unit-tests: Make serials more unique 2022-09-01 14:31:40 +00:00
non-preferred-tiled-custom-resolution.xml monitor-config-store: Properly escape monitor spec 2021-01-29 16:49:58 +00:00
oneoff.xml monitor-config-store: Properly escape monitor spec 2021-01-29 16:49:58 +00:00
pointer-constraint.xml tests: Add test for constraining pointer on hotplug 2022-01-16 18:38:20 +00:00
policy-dbus-invalid.xml monitor-config-store: Allow changing D-Bus configuration policy 2022-01-25 16:25:48 +00:00
policy-dbus.xml monitor-config-store: Allow changing D-Bus configuration policy 2022-01-25 16:25:48 +00:00
policy-duplicate.xml tests: Add more monitor config policy parsing tests 2022-01-25 16:25:48 +00:00
policy-empty.xml tests: Add more monitor config policy parsing tests 2022-01-25 16:25:48 +00:00
policy-invalid.xml tests: Add more monitor config policy parsing tests 2022-01-25 16:25:48 +00:00
policy-multiple.xml tests: Add more monitor config policy parsing tests 2022-01-25 16:25:48 +00:00
policy.xml monitor-config-store: Add way to define config store loading policy 2022-01-25 16:25:48 +00:00
primary.xml tests/monitor-unit-tests: Make serials more unique 2022-09-01 14:31:40 +00:00
scale.xml monitor-config-store: Properly escape monitor spec 2021-01-29 16:49:58 +00:00
second-rotated-tiled.xml tests/monitor-unit-tests: Make serials more unique 2022-09-01 14:31:40 +00:00
second-rotated.xml tests/monitor-unit-tests: Make serials more unique 2022-09-01 14:31:40 +00:00
single.xml monitor-config-store: Properly escape monitor spec 2021-01-29 16:49:58 +00:00
switch-remember-scale.xml tests: Add test for remembering configured monitor scales 2022-08-15 10:00:25 +00:00
tiled-custom-resolution.xml monitor-config-store: Properly escape monitor spec 2021-01-29 16:49:58 +00:00
tiled.xml monitor-config-store: Properly escape monitor spec 2021-01-29 16:49:58 +00:00
underscanning.xml monitor-config-store: Properly escape monitor spec 2021-01-29 16:49:58 +00:00
unknown-elements.xml monitor-config-store: Make parsing a bit more forgiving 2022-01-25 16:25:48 +00:00
vertical.xml tests/monitor-unit-tests: Make serials more unique 2022-09-01 14:31:40 +00:00