Still happening after the 50.1-0ubuntu2.5 update.

Versions: libmutter-18-0 50.1-0ubuntu2.5, gnome-shell 50.1-0ubuntu1.5,
gnome-remote-desktop 50.2-0ubuntu0.1, kernel 7.0.0-38-generic, Ubuntu 26.04.

Setup: Raptor Lake-S desktop. The Intel UHD 770 (i915) drives a single TCL
75S451 TV on HDMI-A-3 at 3840x2160@30. An NVIDIA RTX 5060 Ti is installed but
has nothing connected. I normally use the machine over RDP through
gnome-remote-desktop desktop sharing (screen-share-mode 'mirror-primary', i.e.
a screen-cast monitor stream of the TV). Screen blanking is off (idle-delay 0).

gnome-shell has segfaulted five times since Oct 23 (Oct 23, Oct 27, Nov 1,
Nov 3, Nov 4). The Nov 3 and Nov 4 crashes happened after the 2.5 update, and
their cores show the same path as this report. The TV, which is the only
output, drops off HDMI while the RDP stream is active. After mutter's 3 s
connector debounce, the monitor manager rebuilds with no config (zero
monitors), and the cursor update for the monitor stream source dereferences a
NULL logical monitor.

Abridged backtrace, Nov 4 (libmutter build-id
ee958dbe45c6bb2f773ddf8b166ce869dd82cc69):

#6  meta_logical_monitor_get_layout (logical_monitor=0x0) at 
meta-logical-monitor.c:196
#7  is_cursor_in_stream at meta-screen-cast-monitor-stream-src.c:266
#8  should_cursor_metadata_be_set at meta-screen-cast-monitor-stream-src.c:931
#9  meta_screen_cast_monitor_stream_src_set_cursor_metadata at 
meta-screen-cast-monitor-stream-src.c:997
#10 meta_screen_cast_stream_src_set_cursor_metadata at 
meta-screen-cast-stream-src.c:431
#11 add_cursor_metadata at meta-screen-cast-stream-src.c:723
#12 maybe_record_cursor at meta-screen-cast-stream-src.c:739
#13 meta_screen_cast_stream_src_record_frame_with_timestamp at 
meta-screen-cast-stream-src.c:1289
#14 meta_screen_cast_stream_src_maybe_record_frame_with_timestamp at 
meta-screen-cast-stream-src.c:1361
    (#15-#24: g_signal_emit)
#25 load_from_current_xcursor_image at meta-cursor-xcursor.c:376
#29 meta_cursor_xcursor_prepare_at at meta-cursor-xcursor.c:538
#30 meta_cursor_renderer_update_cursor at meta-cursor-renderer.c:494
#31 meta_cursor_renderer_force_update at meta-cursor-renderer.c:533
#34 update_cursors at meta-backend.c:368
#35 meta_backend_monitors_changed at meta-backend.c:377
#36 meta_monitor_manager_notify_monitors_changed at meta-monitor-manager.c:1304
#37 meta_monitor_manager_rebuild (config=0x0) at meta-monitor-manager.c:4134
#39 meta_monitor_manager_native_apply_monitors_config at 
meta-monitor-manager-native.c:277
#40 meta_monitor_manager_apply_monitors_config (config=0x0) at 
meta-monitor-manager.c:557
#41 meta_monitor_manager_ensure_configured at meta-monitor-manager.c:874
#42 handle_hotplug_event at meta-monitor-manager-native.c:339
#43 on_kms_resources_changed at meta-monitor-manager-native.c:375
#49 meta_kms_emit_resources_changed at meta-kms.c:569
#50 connection_change_timeout at meta-kms-connector.c:1166

Likely reproducer (I have not tried it deliberately): connect over RDP using
desktop sharing in mirror-primary mode, then power off or unplug the only
monitor for more than 3 seconds.

Upstream: https://gitlab.gnome.org/GNOME/mutter/-/issues/5150
Proposed fix: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/5452
("stream-source/monitor: Don't crash when the monitor has no logical monitor")

Please consider an SRU once the fix lands upstream.

** Bug watch added: gitlab.gnome.org/GNOME/mutter/-/issues #5150
   https://gitlab.gnome.org/GNOME/mutter/-/issues/5150

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/2172435

Title:
  Mutter crashes in is_cursor_in_stream during monitor hotplug while
  screen sharing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/2172435/+subscriptions


-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to