GNOME Bugzilla – Bug 764286
mutter:ERROR:backends/meta-monitor-config.c:2032:meta_monitor_config_assign_crtcs: assertion failed: (n_outputs == config->n_outputs)
Last modified: 2016-04-13 16:17:36 UTC
Opening the lid of my laptop while connected to a monitor crashes GNOME Shell with mutter:ERROR:backends/meta-monitor-config.c:2032:meta_monitor_config_assign_crtcs: assertion failed: (n_outputs == config->n_outputs) After automatically switching to tty1, the machine became entirely unreactive and had to be rebooted via sysrq. Log: Mar 28 19:37:19 jak-x230 systemd-logind[752]: Lid opened. Mar 28 19:37:19 jak-x230 gnome-session[1759]: ** Mar 28 19:37:19 jak-x230 gnome-session[1759]: mutter:ERROR:backends/meta-monitor-config.c:2032:meta_monitor_config_assign_crtcs: assertion failed: (n_outputs == config->n_outputs) Mar 28 19:37:19 jak-x230 kernel: i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment Mar 28 19:37:19 jak-x230 gnome-session[1108]: ** Mar 28 19:37:19 jak-x230 gnome-session[1108]: mutter:ERROR:backends/meta-monitor-config.c:2032:meta_monitor_config_assign_crtcs: assertion failed: (n_outputs == config->n_outputs) Mar 28 19:37:19 jak-x230 systemd[1]: Started Process Core Dump (PID 2331/UID 0). Mar 28 19:37:19 jak-x230 systemd[1]: Started Process Core Dump (PID 2330/UID 0). Mar 28 19:37:19 jak-x230 polkitd(authority=local)[964]: Unregistered Authentication Agent for unix-session:c1 (system bus name :1.23, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_IE.UTF-8) (disconnected from bus) Mar 28 19:37:19 jak-x230 gnome-session[1108]: (EE) Mar 28 19:37:19 jak-x230 gnome-session[1108]: Fatal server error: Mar 28 19:37:19 jak-x230 gnome-session[1108]: (EE) failed to dispatch Wayland events: Broken pipe Mar 28 19:37:19 jak-x230 gnome-session[1108]: (EE) Mar 28 19:37:19 jak-x230 mission-control-5[1936]: (process:1936): tp-glib-CRITICAL **: tp_cli_connection_interface_contact_capabilities_call_update_capabilities: assertion 'TP_IS_CONNECTION (proxy)' failed Mar 28 19:37:19 jak-x230 polkitd(authority=local)[964]: Unregistered Authentication Agent for unix-session:1 (system bus name :1.1122, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_IE.UTF-8) (disconnected from bus) Mar 28 19:37:19 jak-x230 gnome-session[1759]: gnome-session-binary[1759]: WARNING: Application 'gnome-shell.desktop' killed by signal 6 Mar 28 19:37:19 jak-x230 gnome-session-binary[1759]: WARNING: Application 'gnome-shell.desktop' killed by signal 6 Mar 28 19:37:19 jak-x230 gnome-session-binary[1108]: Unrecoverable failure in required component gnome-shell-wayland.desktop Mar 28 19:37:20 jak-x230 dbus-daemon[1140]: Activating service name='ca.desrt.dconf' Mar 28 19:37:20 jak-x230 gdm-launch-environment][1021]: pam_unix(gdm-launch-environment:session): session closed for user Debian-gdm Mar 28 19:37:20 jak-x230 dbus-daemon[1140]: Successfully activated service 'ca.desrt.dconf' Mar 28 19:37:20 jak-x230 /usr/lib/gdm3/gdm-x-session[1735]: (II) systemd-logind: got pause for 13:66 Mar 28 19:37:20 jak-x230 /usr/lib/gdm3/gdm-x-session[1735]: (II) systemd-logind: got pause for 13:79 Mar 28 19:37:20 jak-x230 /usr/lib/gdm3/gdm-x-session[1735]: (II) systemd-logind: got pause for 13:64 Mar 28 19:37:20 jak-x230 /usr/lib/gdm3/gdm-x-session[1735]: (II) systemd-logind: got pause for 13:69 Mar 28 19:37:20 jak-x230 /usr/lib/gdm3/gdm-x-session[1735]: (II) systemd-logind: got pause for 13:82 Mar 28 19:37:20 jak-x230 /usr/lib/gdm3/gdm-x-session[1735]: (II) systemd-logind: got pause for 226:0 Mar 28 19:37:20 jak-x230 /usr/lib/gdm3/gdm-x-session[1735]: (II) systemd-logind: got pause for 13:83 Mar 28 19:37:20 jak-x230 /usr/lib/gdm3/gdm-x-session[1735]: (II) systemd-logind: got pause for 13:84 Mar 28 19:37:20 jak-x230 /usr/lib/gdm3/gdm-x-session[1735]: (II) systemd-logind: got pause for 13:65 Mar 28 19:37:20 jak-x230 /usr/lib/gdm3/gdm-x-session[1735]: (II) systemd-logind: got pause for 13:68 Mar 28 19:37:20 jak-x230 org.a11y.atspi.Registry[1313]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":1024" Mar 28 19:37:20 jak-x230 org.a11y.atspi.Registry[1313]: after 21 requests (21 known processed) with 0 events remaining. Mar 28 19:37:20 jak-x230 systemd[1]: Stopping Session c1 of user Debian-gdm. Mar 28 19:37:20 jak-x230 gdm3[996]: Child process -1106 was already dead. Mar 28 19:37:20 jak-x230 systemd[1]: Stopped Session c1 of user Debian-gdm. Mar 28 19:37:20 jak-x230 bluetoothd[814]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSource Mar 28 19:37:20 jak-x230 bluetoothd[814]: Endpoint unregistered: sender=:1.33 path=/MediaEndpoint/A2DPSink Mar 28 19:37:20 jak-x230 systemd-logind[752]: Removed session c1. Mar 28 19:37:20 jak-x230 systemd[1]: Stopping User Manager for UID 110... Mar 28 19:37:20 jak-x230 systemd[1078]: Stopped target Default. Mar 28 19:37:20 jak-x230 systemd[1078]: Stopping D-Bus User Message Bus... Mar 28 19:37:20 jak-x230 systemd[1078]: Stopped D-Bus User Message Bus. Mar 28 19:37:20 jak-x230 systemd[1078]: Stopped target Basic System. Mar 28 19:37:20 jak-x230 systemd[1078]: Stopped target Paths. Mar 28 19:37:20 jak-x230 systemd[1078]: Stopped target Sockets. Mar 28 19:37:20 jak-x230 systemd[1078]: Stopped target Timers. Mar 28 19:37:20 jak-x230 systemd[1078]: Closed D-Bus User Message Bus Socket. Mar 28 19:37:20 jak-x230 systemd[1078]: Reached target Shutdown. Mar 28 19:37:20 jak-x230 systemd[1078]: Starting Exit the Session... Mar 28 19:37:20 jak-x230 systemd[1078]: Received SIGRTMIN+24 from PID 2350 (kill). Mar 28 19:37:20 jak-x230 systemd[1088]: pam_unix(systemd-user:session): session closed for user Debian-gdm Mar 28 19:37:20 jak-x230 systemd[1]: Stopped User Manager for UID 110. Mar 28 19:37:20 jak-x230 systemd[1]: Removed slice User Slice of Debian-gdm. Mar 28 19:37:23 jak-x230 kernel: retire_capture_urb: 2492 callbacks suppressed Mar 28 19:37:28 jak-x230 kernel: retire_capture_urb: 2492 callbacks suppressed Mar 28 19:37:33 jak-x230 kernel: retire_capture_urb: 2492 callbacks suppressed Mar 28 19:37:34 jak-x230 kernel: usb 1-2: USB disconnect, device number 13 Mar 28 19:37:35 jak-x230 pulseaudio[1853]: [alsa-source-USB Audio] alsa-util.c: Got POLLNVAL from ALSA Mar 28 19:37:35 jak-x230 pulseaudio[1853]: [alsa-sink-USB Audio] alsa-util.c: Got POLLNVAL from ALSA Mar 28 19:37:35 jak-x230 pulseaudio[1853]: [alsa-sink-USB Audio] alsa-util.c: Could not recover from POLLERR|POLLNVAL|POLLHUP with snd_pcm_prepare(): No such device Mar 28 19:37:35 jak-x230 pulseaudio[1853]: [alsa-source-USB Audio] alsa-util.c: Could not recover from POLLERR|POLLNVAL|POLLHUP with snd_pcm_prepare(): No such device Mar 28 19:37:35 jak-x230 gnome-session[1759]: (gnome-settings-daemon:1836): media-keys-plugin-WARNING **: Unable to get default sink Mar 28 19:37:35 jak-x230 gnome-session[1759]: (gnome-settings-daemon:1836): media-keys-plugin-WARNING **: Unable to get default source Mar 28 19:37:35 jak-x230 rtkit-daemon[1322]: Supervising 1 threads of 1 processes of 1 users. Mar 28 19:37:35 jak-x230 rtkit-daemon[1322]: Successfully made thread 2382 of process 1853 (n/a) owned by '1000' RT at priority 5. Mar 28 19:37:35 jak-x230 rtkit-daemon[1322]: Supervising 2 threads of 1 processes of 1 users. Mar 28 19:37:40 jak-x230 systemd[1]: Started Getty on tty3. Mar 28 19:37:41 jak-x230 systemd[1]: Started Getty on tty4. Mar 28 19:37:41 jak-x230 systemd[1]: Started Getty on tty5. Mar 28 19:37:41 jak-x230 systemd[1]: Started Getty on tty6. Mar 28 19:37:43 jak-x230 kernel: sysrq: SysRq : SAK Mar 28 19:37:45 jak-x230 kernel: sysrq: SysRq : Keyboard mode set to system default Mar 28 19:37:46 jak-x230 kernel: sysrq: SysRq : SAK Mar 28 19:37:47 jak-x230 kernel: sysrq: SysRq : Keyboard mode set to system default Mar 28 19:37:47 jak-x230 kernel: sysrq: SysRq : This sysrq operation is disabled. Mar 28 19:37:47 jak-x230 kernel: sysrq: SysRq : This sysrq operation is disabled. Mar 28 19:37:48 jak-x230 wpa_supplicant[1239]: wlan0: WPA: Group rekeying completed with 34:81:c4:3f:84:fc [GTK=CCMP] Mar 28 19:37:49 jak-x230 kernel: sysrq: SysRq : Emergency Sync Mar 28 19:37:50 jak-x230 kernel: Emergency Sync complete Mar 28 19:38:28 jak-x230 systemd-coredump[2332]: Process 1176 (gnome-shell) of user 110 dumped core. Stack trace of thread 1176: #0 0x00007f5fdc7ab478 __GI_raise (libc.so.6) #1 0x00007f5fdc7ac8fa __GI_abort (libc.so.6) #2 0x00007f5fdcda8d25 g_assertion_message (libglib-2.0.so.0) #3 0x00007f5fdcda8dba g_assertion_message_expr (libglib-2.0.so.0) #4 0x00007f5fde7111fe n/a (libmutter.so.0) #5 0x00007f5fde712290 meta_monitor_config_restore_previous (libmutter.so.0) #6 0x00007f5fdd059fa5 g_closure_invoke (libgobject-2.0.so.0) #7 0x00007f5fdd06bfc1 signal_emit_unlocked_R (libgobject-2.0.so.0) #8 0x00007f5fdd074d5c g_signal_emit_valist (libgobject-2.0.so.0) #9 0x00007f5fdd07508f g_signal_emit (libgobject-2.0.so.0) #10 0x00007f5fdd05e4d4 g_object_dispatch_properties_changed (libgobject-2.0.so.0) #11 0x00007f5fdd060961 g_object_notify_by_spec_internal (libgobject-2.0.so.0) #12 0x00007f5fdd059fa5 g_closure_invoke (libgobject-2.0.so.0) #13 0x00007f5fdd06bfc1 signal_emit_unlocked_R (libgobject-2.0.so.0) #14 0x00007f5fdd074d5c g_signal_emit_valist (libgobject-2.0.so.0) #15 0x00007f5fdd07508f g_signal_emit (libgobject-2.0.so.0) #16 0x00007f5fdd05e4d4 g_object_dispatch_properties_changed (libgobject-2.0.so.0) #17 0x00007f5fdd060961 g_object_notify_by_spec_internal (libgobject-2.0.so.0) #18 0x00007f5fd6930afc n/a (libupower-glib.so.3) #19 0x00007f5fd78ff060 ffi_call_unix64 (libffi.so.6) #20 0x00007f5fd78feacb ffi_call (libffi.so.6) #21 0x00007f5fdd05a7c9 g_cclosure_marshal_generic (libgobject-2.0.so.0) #22 0x00007f5fdd059fa5 g_closure_invoke (libgobject-2.0.so.0) #23 0x00007f5fdd06c56e signal_emit_unlocked_R (libgobject-2.0.so.0) #24 0x00007f5fdd074d5c g_signal_emit_valist (libgobject-2.0.so.0) #25 0x00007f5fdd07508f g_signal_emit (libgobject-2.0.so.0) #26 0x00007f5fdd58b439 on_properties_changed (libgio-2.0.so.0) #27 0x00007f5fdd57a954 emit_signal_instance_in_idle_cb (libgio-2.0.so.0) #28 0x00007f5fdcd82fea g_main_dispatch (libglib-2.0.so.0) #29 0x00007f5fdcd83390 g_main_context_iterate (libglib-2.0.so.0) #30 0x00007f5fdcd836b2 g_main_loop_run (libglib-2.0.so.0) #31 0x00007f5fde73e89c meta_run (libmutter.so.0) #32 0x0000000000402197 main (gnome-shell) #33 0x00007f5fdc798610 __libc_start_main (libc.so.6) #34 0x00000000004022c9 n/a (gnome-shell) Stack trace of thread 1299: #0 0x00007f5fdc857e4d poll (libc.so.6) #1 0x00007f5fdcd8332c g_main_context_poll (libglib-2.0.so.0) #2 0x00007f5fdcd8343c g_main_context_iteration (libglib-2.0.so.0) #3 0x00007f5fc467128d n/a (libdconfsettings.so) #4 0x00007f5fdcda9b75 g_thread_proxy (libglib-2.0.so.0) #5 0x00007f5fdcb23454 start_thread (libpthread.so.0) #6 0x00007f5fdc860edd __clone (libc.so.6) Stack trace of thread 1178: #0 0x00007f5fdc857e4d poll (libc.so.6) #1 0x00007f5fdcd8332c g_main_context_poll (libglib-2.0.so.0) #2 0x00007f5fdcd8343c g_main_context_iteration (libglib-2.0.so.0) #3 0x00007f5fdcd83479 glib_worker_main (libglib-2.0.so.0) #4 0x00007f5fdcda9b75 g_thread_proxy (libglib-2.0.so.0) #5 0x00007f5fdcb23454 start_thread (libpthread.so.0) #6 0x00007f5fdc860edd __clone (libc.so.6) Stack trace of thread 1332: #0 0x00007f5fdc857e4d poll (libc.so.6) #1 0x00007f5fd8c02ae1 n/a (libpulse.so.0) #2 0x00007f5fd8bf4091 pa_mainloop_poll (libpulse.so.0) #3 0x00007f5fd8bf472e pa_mainloop_iterate (libpulse.so.0) #4 0x00007f5fd8bf47e0 pa_mainloop_run (libpulse.so.0) #5 0x00007f5fd8c02a29 n/a (libpulse.so.0) #6 0x00007f5fcee0f648 n/a (libpulsecommon-8.0.so) #7 0x00007f5fdcb23454 start_thread (libpthread.so.0) #8 0x00007f5fdc860edd __clone (libc.so.6) Stack trace of thread 1335: #0 0x00007f5fdcb2904f pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0) #1 0x00007f5fce384d70 PR_WaitCondVar (libnspr4.so) #2 0x00007f5fd85e6f0e n/a (libmozjs-24.so.0) #3 0x00007f5fce38a758 n/a (libnspr4.so) #4 0x00007f5fdcb23454 start_thread (libpthread.so.0) #5 0x00007f5fdc860edd __clone (libc.so.6) Stack trace of thread 1336: #0 0x00007f5fdcb2904f pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0) #1 0x00007f5fce384d70 PR_WaitCondVar (libnspr4.so) #2 0x00007f5fd865e5ce n/a (libmozjs-24.so.0) #3 0x00007f5fce38a758 n/a (libnspr4.so) #4 0x00007f5fdcb23454 start_thread (libpthread.so.0) #5 0x00007f5fdc860edd __clone (libc.so.6) Stack trace of thread 1179: #0 0x00007f5fdc857e4d poll (libc.so.6) #1 0x00007f5fdcd8332c g_main_context_poll (libglib-2.0.so.0) #2 0x00007f5fdcd836b2 g_main_loop_run (libglib-2.0.so.0) #3 0x00007f5fdd58e906 gdbus_shared_thread_func (libgio-2.0.so.0) #4 0x00007f5fdcda9b75 g_thread_proxy (libglib-2.0.so.0) #5 0x00007f5fdcb23454 start_thread (libpthread.so.0) #6 0x00007f5fdc860edd __clone (libc.so.6) Mar 28 19:38:32 jak-x230 kernel: sysrq: SysRq : Emergency Remount R/O
Backtrace with line numbers:
+ Trace 236121
This is on the 3.18.3, but I expect the same to apply 3.20; there were no monitor-related changes AFAICT.
Is this reproducible? If it is, can you try with the patch I'm attaching?
Created attachment 324964 [details] [review] monitor-config: Handle invalid previous configurations The previous configuration might not apply because the number of enabled outputs when trying to apply it might have changed. This isn't a bug so we shouldn't assert. Instead, we can handle it by falling back as we would if we didn't have a previous configuration to start with.
I forgot about this for some days, but tried it today and the patch seems to work well. I tried about 20 times - open/close lid, dock/undock, and everything works.
That's on 3.20 now BTW, which is of course affected as well. Not sure if Version should be changed in the bug info.
This might be a nice fix for 3.20.1 ?
Review of attachment 324964 [details] [review]: OK
Attachment 324964 [details] pushed as 8587f0e - monitor-config: Handle invalid previous configurations