After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 787637 - gnome-shell crashes when unplugged monitor on desktop machine
gnome-shell crashes when unplugged monitor on desktop machine
Status: RESOLVED OBSOLETE
Product: mutter
Classification: Core
Component: wayland
3.25.x
Other Linux
: Normal critical
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2017-09-13 16:18 UTC by Bastien Nocera
Modified: 2021-07-05 13:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
surface-actor/x11: Don't try to unredirect when headless (995 bytes, patch)
2017-09-25 18:15 UTC, Jonas Ådahl
reviewed Details | Review
window: Don't try to auto-maximize when headless (1.18 KB, patch)
2017-09-25 18:15 UTC, Jonas Ådahl
committed Details | Review
part of Syslog (249.27 KB, text/plain)
2017-10-06 08:28 UTC, Ryzko
  Details
part of Syslog (35.12 KB, text/plain)
2017-10-06 12:47 UTC, Ryzko
  Details

Description Bastien Nocera 2017-09-13 16:18:43 UTC
gnome-shell-3.25.91-1.fc28.x86_64
mutter-3.25.92-1.fc27.x86_64

When unplugging the DisplayPort cable from my desktop machine:

gdm's gnome-shell:
Sep 13 18:08:20 classic systemd-coredump[21524]: Process 1065 (gnome-shell) of user 42 dumped core.
                                                 
                                                 Stack trace of thread 1065:
                                                 #0  0x00007fc5410e251b __GI_raise (libc.so.6)
                                                 #1  0x00007fc5410e42a7 __GI_abort (libc.so.6)
                                                 #2  0x00007fc54323296d g_assertion_message (libglib-2.0.so.0)
                                                 #3  0x00007fc5432329fa g_assertion_message_expr (libglib-2.0.so.0)
                                                 #4  0x00007fc541716fde meta_monitor_manager_get_logical_monitor_from_number (libmutter-1.so.0)
                                                 #5  0x00007fc541764266 meta_workspace_get_work_area_for_monitor (libmutter-1.so.0)
                                                 #6  0x00007fc53dbe3d1e ffi_call_unix64 (libffi.so.6)
                                                 #7  0x00007fc53dbe368f ffi_call (libffi.so.6)
                                                 #8  0x00007fc5421da606 gjs_invoke_c_function (libgjs.so.0)
                                                 #9  0x00007fc5421dbf76 function_call (libgjs.so.0)
                                                 #10 0x00007fc53a6d63d8 _ZN2js6InvokeEP9JSContextN2JS8CallArgsENS_14MaybeConstructE (libmozjs-38.so)
                                                 #11 0x00007fc53a6cc2cd _ZL9InterpretP9JSContextRN2js8RunStateE (libmozjs-38.so)
                                                 #12 0x00007fc53a6d6054 _ZN2js9RunScriptEP9JSContextRNS_8RunStateE (libmozjs-38.so)
                                                 #13 0x00007fc53a6d6344 _ZN2js6InvokeEP9JSContextN2JS8CallArgsENS_14MaybeConstructE (libmozjs-38.so)
                                                 #14 0x00007fc53a6d6f73 _ZN2js6InvokeEP9JSContextRKN2JS5ValueES5_jPS4_NS2_13MutableHandleIS3_EE (libmozjs-38.so)
                                                 #15 0x00007fc53a92f15b _ZN2js3jit14InvokeFunctionEP9JSContextN2JS6HandleIP8JSObjectEEjPNS3_5ValueES9_ (libmozjs-38.so)
                                                 #16 0x00007fc543fa1134 n/a (ld-linux-x86-64.so.2)

My user's gnome-shell:
Sep 13 18:08:20 classic systemd-coredump[21434]: Process 1728 (gnome-shell) of user 1000 dumped core.
                                                 
                                                 Stack trace of thread 1728:
                                                 #0  0x00007f734be89da4 meta_window_is_on_primary_monitor (libmutter-1.so.0)
                                                 #1  0x00007f734be89e00 should_be_on_all_workspaces (libmutter-1.so.0)
                                                 #2  0x00007f734be8a909 meta_window_on_all_workspaces_changed (libmutter-1.so.0)
                                                 #3  0x00007f734be8df75 meta_window_update_monitor (libmutter-1.so.0)
                                                 #4  0x00007f734d95a7cd g_slist_foreach (libglib-2.0.so.0)
                                                 #5  0x00007f734be80404 meta_screen_foreach_window (libmutter-1.so.0)
                                                 #6  0x00007f734be82f26 on_monitors_changed (libmutter-1.so.0)
                                                 #7  0x00007f7348313d1e ffi_call_unix64 (libffi.so.6)
                                                 #8  0x00007f734831368f ffi_call (libffi.so.6)
                                                 #9  0x00007f734dc150c9 g_cclosure_marshal_generic (libgobject-2.0.so.0)
                                                 #10 0x00007f734dc148cd g_closure_invoke (libgobject-2.0.so.0)
                                                 #11 0x00007f734dc2819e signal_emit_unlocked_R (libgobject-2.0.so.0)
                                                 #12 0x00007f734dc30cc5 g_signal_emit_valist (libgobject-2.0.so.0)
                                                 #13 0x00007f734dc31b08 g_signal_emit_by_name (libgobject-2.0.so.0)
                                                 #14 0x00007f734be48737 meta_monitor_manager_rebuild (libmutter-1.so.0)
                                                 #15 0x00007f734becc875 meta_monitor_manager_kms_apply_monitors_config (libmutter-1.so.0)
                                                 #16 0x00007f734be463cc meta_monitor_manager_apply_monitors_config (libmutter-1.so.0)
                                                 #17 0x00007f734be474bb meta_monitor_manager_ensure_configured (libmutter-1.so.0)
                                                 #18 0x00007f7348313d1e ffi_call_unix64 (libffi.so.6)
                                                 #19 0x00007f734831368f ffi_call (libffi.so.6)
                                                 #20 0x00007f734dc150c9 g_cclosure_marshal_generic (libgobject-2.0.so.0)
                                                 #21 0x00007f734dc148cd g_closure_invoke (libgobject-2.0.so.0)
                                                 #22 0x00007f734dc2819e signal_emit_unlocked_R (libgobject-2.0.so.0)
                                                 #23 0x00007f734dc30cc5 g_signal_emit_valist (libgobject-2.0.so.0)
                                                 #24 0x00007f734dc3162f g_signal_emit (libgobject-2.0.so.0)
                                                 #25 0x00007f73409fcb24 monitor_event (libgudev-1.0.so.0)
                                                 #26 0x00007f734d93bc87 g_main_dispatch (libglib-2.0.so.0)
                                                 #27 0x00007f734d93c030 g_main_context_iterate (libglib-2.0.so.0)
                                                 #28 0x00007f734d93c342 g_main_loop_run (libglib-2.0.so.0)
                                                 #29 0x00007f734be7b9ac meta_run (libmutter-1.so.0)
                                                 #30 0x000055c836026277 main (gnome-shell)
                                                 #31 0x00007f734b7fc187 __libc_start_main (libc.so.6)
                                                 #32 0x000055c83602638a _start (gnome-shell)

Then when restarting:
Sep 13 18:08:21 classic unknown[21554]: JS ERROR: TypeError: this.primaryMonitor is undefined
                                LayoutManager<._updateBoxes@resource:///org/gnome/shell/ui/layout.js:461:9
                                wrapper@resource:///org/gnome/gjs/modules/lang.js:178:22
                                LayoutManager<._monitorsChanged@resource:///org/gnome/shell/ui/layout.js:495:9
                                wrapper@resource:///org/gnome/gjs/modules/lang.js:178:22
                                LayoutManager<._init@resource:///org/gnome/shell/ui/layout.js:277:9
                                wrapper@resource:///org/gnome/gjs/modules/lang.js:178:22
                                _Base.prototype._construct@resource:///org/gnome/gjs/modules/lang.js:110:5
                                Class.prototype._construct/newClassConstructor@resource:///org/gnome/gjs/modules/lang.js:213:20
                                _initializeUI@resource:///org/gnome/shell/ui/main.js:151:21
                                start@resource:///org/gnome/shell/ui/main.js:125:5
                                @<main>:1:31

etc.

Unplugging a monitor shouldn't crash the session(s).
Comment 1 Bastien Nocera 2017-09-14 11:01:14 UTC
The assertion is:
Sep 13 18:07:47 classic org.gnome.Shell.desktop[1065]: mutter:ERROR:backends/meta-monitor-manager.c:2274:meta_monitor_manager_get_logical_monitor_from_number: assertion failed: ((unsigned int) number < g_list_length (manager->logical_monitors))
Comment 2 Jonas Ådahl 2017-09-15 03:46:52 UTC
Can you try 3.26.0? This looks like bug 730551 which landed in 3.25.92, but this bug report mentiones 3.25.91.
Comment 3 Rasmus Thomsen 2017-09-17 11:16:04 UTC
I have the same error using gnome-shell 3.26.0 & mutter 3.26.0
gnome-shell[399]: Failed to apply DRM plane transform 0: Invalid argument
exherbo systemd-coredump[1055]: Process 761 (gnome-shell) of user 1000 dumped core.
                                                
                                                Stack trace of thread 761:
                                                #0  0x00007f89533389a0 meta_window_is_monitor_sized (libmutter-1.so.0)
                                                #1  0x00007f8953313502 meta_surface_actor_x11_should_unredirect (libmutter-1.so.0)
                                                #2  0x00007f89533083e9 meta_pre_paint_func (libmutter-1.so.0)
                                                #3  0x00007f8953aac3d4 _clutter_run_repaint_functions (libmutter-clutter-1.so)
                                                #4  0x00007f8953aace97 clutter_clock_dispatch (libmutter-clutter-1.so)
                                                #5  0x00007f8954dc0c5e g_main_context_dispatch (libglib-2.0.so.0)
                                                #6  0x00007f8954dc0ec8 g_main_context_iterate.isra.30 (libglib-2.0.so.0)
                                                #7  0x00007f8954dc11ca g_main_loop_run (libglib-2.0.so.0)
                                                #8  0x00007f8953329f9c meta_run (libmutter-1.so.0)
                                                #9  0x000055e38cecb427 main (gnome-shell)
                                                #10 0x00007f8952f11531 __libc_start_main (libc.so.6)
                                                #11 0x000055e38cecb56a _start (gnome-shell)
                                                
                                                Stack trace of thread 786:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f89459da473 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so)
                                                #2  0x00007f8945df2fbd _ZN2js23GlobalHelperThreadState4waitERNS_25AutoLockHelperThreadStateENS0_7CondVarEN7moz
                                                #3  0x00007f8945e1180a _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE8callMainIJLm0EEEEvN7mozill
                                                #4  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #5  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 769:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f8929de3db3 util_queue_thread_func (radeonsi_dri.so)
                                                #2  0x00007f8929de3cd7 impl_thrd_routine (radeonsi_dri.so)
                                                #3  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #4  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 763:
                                                #0  0x00007f8952fd077d poll (libc.so.6)
                                                #1  0x00007f8954dc0e5e g_main_context_iterate.isra.30 (libglib-2.0.so.0)
                                                #2  0x00007f8954dc0f74 g_main_context_iteration (libglib-2.0.so.0)
                                                #3  0x00007f8954dc0fb1 glib_worker_main (libglib-2.0.so.0)
                                                #4  0x00007f8954de7b35 g_thread_proxy (libglib-2.0.so.0)
                                                #5  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #6  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 765:
                                                #0  0x00007f8952fd077d poll (libc.so.6)
                                                #1  0x00007f8954dc0e5e g_main_context_iterate.isra.30 (libglib-2.0.so.0)
                                                #2  0x00007f8954dc0f74 g_main_context_iteration (libglib-2.0.so.0)
                                                #3  0x00007f893bdfa41d dconf_gdbus_worker_thread (libdconfsettings.so)
                                                #4  0x00007f8954de7b35 g_thread_proxy (libglib-2.0.so.0)
                                                #5  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #6  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 764:
                                                #0  0x00007f8952fd077d poll (libc.so.6)
                                                #1  0x00007f8954dc0e5e g_main_context_iterate.isra.30 (libglib-2.0.so.0)
                                                #2  0x00007f8954dc11ca g_main_loop_run (libglib-2.0.so.0)
                                                #3  0x00007f89553a2e16 gdbus_shared_thread_func (libgio-2.0.so.0)
                                                #4  0x00007f8954de7b35 g_thread_proxy (libglib-2.0.so.0)
                                                #5  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #6  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 768:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f8929de3db3 util_queue_thread_func (radeonsi_dri.so)
                                                #2  0x00007f8929de3cd7 impl_thrd_routine (radeonsi_dri.so)
                                                #3  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #4  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 770:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f8929de3db3 util_queue_thread_func (radeonsi_dri.so)
                                                #2  0x00007f8929de3cd7 impl_thrd_routine (radeonsi_dri.so)
                                                #3  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #4  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 771:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f8929de3db3 util_queue_thread_func (radeonsi_dri.so)
                                                #2  0x00007f8929de3cd7 impl_thrd_routine (radeonsi_dri.so)
                                                #3  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #4  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 1051:
                                                #0  0x00007f8952fd5139 syscall (libc.so.6)
                                                #1  0x00007f8954e0508a g_cond_wait_until (libglib-2.0.so.0)
                                                #2  0x00007f8954d96551 g_async_queue_pop_intern_unlocked (libglib-2.0.so.0)
                                                #3  0x00007f8954d96b2c g_async_queue_timeout_pop (libglib-2.0.so.0)
                                                #4  0x00007f8954de85bc g_thread_pool_thread_proxy (libglib-2.0.so.0)
                                                #5  0x00007f8954de7b35 g_thread_proxy (libglib-2.0.so.0)
                                                #6  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #7  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 795:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f89459da473 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so)
                                                #2  0x00007f8945df2fbd _ZN2js23GlobalHelperThreadState4waitERNS_25AutoLockHelperThreadStateENS0_7CondVarEN7moz
                                                #3  0x00007f8945e1180a _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE8callMainIJLm0EEEEvN7mozill
                                                #4  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #5  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 794:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f89459da473 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so)
                                                #2  0x00007f8945df2fbd _ZN2js23GlobalHelperThreadState4waitERNS_25AutoLockHelperThreadStateENS0_7CondVarEN7moz
                                                #3  0x00007f8945e1180a _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE8callMainIJLm0EEEEvN7mozill
                                                #4  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #5  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 773:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f8929de3db3 util_queue_thread_func (radeonsi_dri.so)
                                                #2  0x00007f8929de3cd7 impl_thrd_routine (radeonsi_dri.so)
                                                #3  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #4  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 772:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f8929de3db3 util_queue_thread_func (radeonsi_dri.so)
                                                #2  0x00007f8929de3cd7 impl_thrd_routine (radeonsi_dri.so)
                                                #3  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #4  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 793:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f89459da473 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so)
                                                #2  0x00007f8945df2fbd _ZN2js23GlobalHelperThreadState4waitERNS_25AutoLockHelperThreadStateENS0_7CondVarEN7moz
                                                #3  0x00007f8945e1180a _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE8callMainIJLm0EEEEvN7mozill
                                                #4  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #5  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 775:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f8929de3db3 util_queue_thread_func (radeonsi_dri.so)
                                                #2  0x00007f8929de3cd7 impl_thrd_routine (radeonsi_dri.so)
                                                #3  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #4  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 783:
                                                #0  0x00007f8952fd077d poll (libc.so.6)
                                                #1  0x00007f89262dd121 poll_func (libpulse.so.0)
                                                #2  0x00007f89262cedb1 pa_mainloop_poll (libpulse.so.0)
                                                #3  0x00007f89262cf426 pa_mainloop_iterate (libpulse.so.0)
                                                #4  0x00007f89262cf4d0 pa_mainloop_run (libpulse.so.0)
                                                #5  0x00007f89262dd069 thread (libpulse.so.0)
                                                #6  0x00007f892607bd5f internal_thread_func (libpulsecommon-11.0.so)
                                                #7  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #8  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 784:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f89459da473 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so)
                                                #2  0x00007f8945df2fbd _ZN2js23GlobalHelperThreadState4waitERNS_25AutoLockHelperThreadStateENS0_7CondVarEN7moz
                                                #3  0x00007f8945e1180a _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE8callMainIJLm0EEEEvN7mozill
                                                #4  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #5  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 792:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f89459da473 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so)
                                                #2  0x00007f8945df2fbd _ZN2js23GlobalHelperThreadState4waitERNS_25AutoLockHelperThreadStateENS0_7CondVarEN7moz
                                                #3  0x00007f8945e1180a _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE8callMainIJLm0EEEEvN7mozill
                                                #4  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #5  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 791:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f89459da473 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so)
                                                #2  0x00007f8945df2fbd _ZN2js23GlobalHelperThreadState4waitERNS_25AutoLockHelperThreadStateENS0_7CondVarEN7moz
                                                #3  0x00007f8945e1180a _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE8callMainIJLm0EEEEvN7mozill
                                                #4  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #5  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 785:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f89459da473 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so)
                                                #2  0x00007f8945df2fbd _ZN2js23GlobalHelperThreadState4waitERNS_25AutoLockHelperThreadStateENS0_7CondVarEN7moz
                                                #3  0x00007f8945e1180a _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE8callMainIJLm0EEEEvN7mozill
                                                #4  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #5  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 787:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f89459da473 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so)
                                                #2  0x00007f8945df2fbd _ZN2js23GlobalHelperThreadState4waitERNS_25AutoLockHelperThreadStateENS0_7CondVarEN7moz
                                                #3  0x00007f8945e1180a _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE8callMainIJLm0EEEEvN7mozill
                                                #4  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #5  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 790:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f89459da473 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so)
                                                #2  0x00007f8945df2fbd _ZN2js23GlobalHelperThreadState4waitERNS_25AutoLockHelperThreadStateENS0_7CondVarEN7moz
                                                #3  0x00007f8945e1180a _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE8callMainIJLm0EEEEvN7mozill
                                                #4  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #5  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 788:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f89459da473 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so)
                                                #2  0x00007f8945df2fbd _ZN2js23GlobalHelperThreadState4waitERNS_25AutoLockHelperThreadStateENS0_7CondVarEN7moz
                                                #3  0x00007f8945e1180a _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE8callMainIJLm0EEEEvN7mozill
                                                #4  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #5  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 789:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f89459da473 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so)
                                                #2  0x00007f8945df2fbd _ZN2js23GlobalHelperThreadState4waitERNS_25AutoLockHelperThreadStateENS0_7CondVarEN7moz
                                                #3  0x00007f8945e1180a _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE8callMainIJLm0EEEEvN7mozill
                                                #4  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #5  0x00007f8952fd9d2f __clone (libc.so.6)
                                                
                                                Stack trace of thread 767:
                                                #0  0x00007f89503765b6 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                                                #1  0x00007f8929de3db3 util_queue_thread_func (radeonsi_dri.so)
                                                #2  0x00007f8929de3cd7 impl_thrd_routine (radeonsi_dri.so)
                                                #3  0x00007f89503701e7 start_thread (libpthread.so.0)
                                                #4  0x00007f8952fd9d2f __clone (libc.so.6)
gnome-shell[399]: Failed to apply DRM plane transform 0: Invalid argument
gnome-session-f[1091]: Cannot open display: 
gnome-session-binary[699]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
gnome-session-binary[699]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
gnome-session-binary[699]: Unrecoverable failure in required component org.gnome.Shell.desktop
gnome-session[699]: gnome-session-binary[699]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
gnome-session[699]: gnome-session-binary[699]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
gnome-shell[1056]: Execution of main.js threw exception: JS_EvaluateScript() failed
gnome-shell[1056]: JS ERROR: TypeError: this.primaryMonitor is undefined
                                           LayoutManager<._updateBoxes@resource:///org/gnome/shell/ui/layout.js:461:9
                                           wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
                                           LayoutManager<._monitorsChanged@resource:///org/gnome/shell/ui/layout.js:495:9
                                           wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
                                           LayoutManager<._init@resource:///org/gnome/shell/ui/layout.js:277:9
                                           wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
                                           _Base.prototype._construct@resource:///org/gnome/gjs/modules/_legacy.js:18:5
                                           Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/_legacy.js:117:20
                                           _initializeUI@resource:///org/gnome/shell/ui/main.js:151:21
                                           start@resource:///org/gnome/shell/ui/main.js:125:5
                                           @<main>:1:31
gnome-shell[1056]: JS WARNING: [resource:///org/gnome/shell/ui/layout.js 217]: reference to undefined property "MetaWindowGroup"
gnome-shell[1056]: JS WARNING: [resource:///org/gnome/shell/ui/main.js 314]: reference to undefined property "MetaStage"
exherbo gnome-shell[1056]: Error: Requiring IBus, version none: Typelib file for namespace 'IBus' (any version) not found
/usr/x86_64-pc-linux-gnu/libexec/gdm-x-session[682]: (WW) AMDGPU(0): get vblank counter failed: Invalid argument
/usr/x86_64-pc-linux-gnu/libexec/gdm-x-session[682]: (WW) AMDGPU(0): get vblank counter failed: Invalid argument
/usr/x86_64-pc-linux-gnu/libexec/gdm-x-session[682]: (WW) AMDGPU(0): get vblank counter failed: Invalid argument
gnome-session[699]: gnome-session-binary[699]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 11
gnome-session-binary[699]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 11
polkitd[370]: Unregistered Authentication Agent for unix-session:c2 (system bus name :1.58, object path /org/freedesktop/PolicyKit1/Au
/usr/x86_64-pc-linux-gnu/libexec/gdm-x-session[682]: (WW) AMDGPU(0): Page flip failed: Invalid argument
/usr/x86_64-pc-linux-gnu/libexec/gdm-x-session[682]: (WW) AMDGPU(0): flip queue failed: Invalid argument.
kernel: gnome-shell[761]: segfault at 18 ip 00007f89533389a0 sp 00007fff51a44f10 error 4 in libmutter-1.so.0.0.0[7f8953291000+14a000]
gnome-shell[761]: JS ERROR: TypeError: this.primaryMonitor is undefined
                                          LayoutManager<._updateBoxes@resource:///org/gnome/shell/ui/layout.js:461:9
                                          wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
                                          LayoutManager<._monitorsChanged@resource:///org/gnome/shell/ui/layout.js:495:9
                                          wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
Comment 4 Daniel van Vugt 2017-09-18 08:44:44 UTC
At least one Ubuntu 17.10 tester reports the same crash:
https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1717170/comments/8
Comment 5 Ryzko 2017-09-18 10:19:38 UTC
(In reply to Daniel van Vugt from comment #4)
> At least one Ubuntu 17.10 tester reports the same crash:
> https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1717170/comments/8

As Daniel wrote, I have the same issue.
Tested on Ubuntu 17.10 (with the latest updates) with gnome-shell 3.26.0-0ubuntu1 & mutter 3.26.0-1
Comment 6 pullasuti 2017-09-21 12:44:05 UTC
Another Ubuntu 17.10 user here with this issue. Using the same version of gnome-shell and mutter as Ryzko. Problem occurring when turning off the TV my NUC is connected to (GPU is Intel Iris 580).
Comment 7 Jonas Ådahl 2017-09-25 18:15:24 UTC
Created attachment 360374 [details] [review]
surface-actor/x11: Don't try to unredirect when headless

We don't have a monitor size to compare a window size with, so don't
attempt to determine whether to unredirect when headless.
Comment 8 Jonas Ådahl 2017-09-25 18:15:29 UTC
Created attachment 360375 [details] [review]
window: Don't try to auto-maximize when headless

Automatic maximization is done when a window is almost the size of the
work area of a monitor. This makes no sense to try when there is no
monitor available, so skip trying to do this when headless.
Comment 9 Mario Sánchez Prada 2017-09-26 14:22:47 UTC
Quick note to mention that I managed to reproduce exactly the same issue (same backtrace) just by booting without a monitor after having all the patches from bug 730551 (including https://bugzilla.gnome.org/attachment.cgi?id=360379&action=diff) applied. See https://bugzilla.gnome.org/show_bug.cgi?id=730551#c82

At the same time, I can confirm that applying the patches from this bug locally made the crash go away.
Comment 10 Ryzko 2017-09-29 11:02:07 UTC
I have noticed another strange behaviour bound to this bug, if the "Dim screen when inactive" option is enabled the connected monitor is going to power save state for a while after session "Lock" therefore session lost the primary monitor and the session crashed. With the "Dim screen when inactive" disabled the session is locking normally.
Comment 11 Rui Matos 2017-09-29 16:40:36 UTC
Review of attachment 360375 [details] [review]:

right
Comment 12 Rui Matos 2017-09-29 16:42:45 UTC
Review of attachment 360374 [details] [review]:

this would make more sense in meta_window_is_monitor_sized()
Comment 13 Jonas Ådahl 2017-09-29 17:47:45 UTC
(In reply to Rui Matos from comment #12)
> Review of attachment 360374 [details] [review] [review]:
> 
> this would make more sense in meta_window_is_monitor_sized()

I used the same reasoning here as with meta_window_is_on_primary_monitor() in bug 730551 that, if one checks whether a window is in a certain way with relation to some monitor when being headless, we should probably avoid checking that to begin with and handle being headless in a more explicit way.
Comment 14 Rui Matos 2017-10-02 09:37:34 UTC
(In reply to Jonas Ådahl from comment #13)
> (In reply to Rui Matos from comment #12)
> > Review of attachment 360374 [details] [review] [review] [review]:
> > 
> > this would make more sense in meta_window_is_monitor_sized()
> 
> I used the same reasoning here as with meta_window_is_on_primary_monitor()
> in bug 730551 that, if one checks whether a window is in a certain way with
> relation to some monitor when being headless, we should probably avoid
> checking that to begin with and handle being headless in a more explicit way.

TBH, I agree with Florian there. Even more so in this case since this is accessing a MetaWindow variable from a different class when we can nicely hide that behind the API call.
Comment 15 Jonas Ådahl 2017-10-02 22:04:09 UTC
(In reply to Rui Matos from comment #14)
> (In reply to Jonas Ådahl from comment #13)
> > (In reply to Rui Matos from comment #12)
> > > Review of attachment 360374 [details] [review] [review] [review] [review]:
> > > 
> > > this would make more sense in meta_window_is_monitor_sized()
> > 
> > I used the same reasoning here as with meta_window_is_on_primary_monitor()
> > in bug 730551 that, if one checks whether a window is in a certain way with
> > relation to some monitor when being headless, we should probably avoid
> > checking that to begin with and handle being headless in a more explicit way.
> 
> TBH, I agree with Florian there. Even more so in this case since this is
> accessing a MetaWindow variable from a different class when we can nicely
> hide that behind the API call.

Fair enough, I replaced that commit to treat headless windows as being not
monitor sized.

Attachment 360375 [details] pushed as 6dd819a - window: Don't try to auto-maximize when headless
Comment 16 Ryzko 2017-10-06 08:28:44 UTC
Created attachment 361027 [details]
part of Syslog

Today the update of mutter to version 3.26.1-1 was installed on my PC by "apt upgrade" and the issue still persist. Please see attached syslog, cut from the time of crash (caused by monitor switch off).
Comment 17 Rui Matos 2017-10-06 09:06:52 UTC
(In reply to Ryzko from comment #16)
> Created attachment 361027 [details]
> part of Syslog
> 
> Today the update of mutter to version 3.26.1-1 was installed on my PC by
> "apt upgrade" and the issue still persist. Please see attached syslog, cut
> from the time of crash (caused by monitor switch off).

Do you have gnome-shell 3.26.1 too?
Comment 18 Ryzko 2017-10-06 10:04:07 UTC
no, still 3.26.0-0ubuntu2. Newer was not proposed by apt yet.
Comment 19 Ryzko 2017-10-06 12:47:18 UTC
Created attachment 361043 [details]
part of Syslog

Hello, gnome-shell just updated to version 3.26.1-0ubuntu1 and the crash issue still persist, please see attached syslog.
mutter was upgraded earlier to version 3.26.1-1.
Comment 20 Bastien Nocera 2017-10-11 11:41:28 UTC
mutter-3.26.1-2.fc27.x86_64
gnome-shell-3.26.1-1.fc27.x86_64

Unplugging the DisplayPort connector from my desktop machine:

Stack trace of thread 1069:
#0  0x00007f7069eb851b __GI_raise (libc.so.6)
#1  0x00007f7069eba2a7 __GI_abort (libc.so.6)
#2  0x00007f706c03269d g_assertion_message (libglib-2.0.so.0)
#3  0x00007f706c03272a g_assertion_message_expr (libglib-2.0.so.0)
#4  0x00007f706a4f312e meta_monitor_manager_get_logical_monitor_from_number (libmutter-1.so.0)
#5  0x00007f706a5411a6 meta_workspace_get_work_area_for_monitor (libmutter-1.so.0)
#6  0x00007f70669b9d1e ffi_call_unix64 (libffi.so.6)
#7  0x00007f70669b968f ffi_call (libffi.so.6)
#8  0x00007f706afd1ed8 n/a (libgjs.so.0)
#9  0x00007f706afd37b4 n/a (libgjs.so.0)
#10 0x0000253d59f9d810 n/a (n/a)
#11 0x000055b3bd68a0b8 n/a (n/a)
#12 0x0000253d59fe7b2b n/a (n/a)
#13 0x00007f7062588c9d _ZN2js3jit9IonCannonEP9JSContextRNS_8RunStateE (libmozjs-52.so.0)
#14 0x00007f7062894abb _ZN2js9RunScriptEP9JSContextRNS_8RunStateE (libmozjs-52.so.0)
#15 0x00007f7062894ddf _ZN2js23InternalCallOrConstructEP9JSContextRKN2JS8CallArgsENS_14MaybeConstructE (libmozjs-52.so.0)
#16 0x00007f70628950b9 _ZN2js4CallEP9JSContextN2JS6HandleINS2_5ValueEEES5_RKNS_13AnyInvokeArgsENS2_13MutableHandleIS4_EE (libmozjs-52.so.0)
#17 0x00007f706272643a _Z20JS_CallFunctionValueP9JSContextN2JS6HandleIP8JSObjectEENS2_INS1_5ValueEEERKNS1_16HandleValueArrayENS1_13MutableHandleIS6_EE (libmozjs-52.so.0)
#18 0x00007f706afd3f31 n/a (libgjs.so.0)
#19 0x00007f70669b9abf ffi_closure_unix64_inner (libffi.so.6)
#20 0x00007f70669b9e86 ffi_closure_unix64 (libffi.so.6)
#21 0x00007f706acb8eb4 clutter_constraint_update_allocation (libmutter-clutter-1.so)
#22 0x00007f706aca3007 clutter_actor_allocate (libmutter-clutter-1.so)
#23 0x00007f706aca3b03 clutter_actor_allocate_preferred_size (libmutter-clutter-1.so)
#24 0x00007f70669b9d1e ffi_call_unix64 (libffi.so.6)
#25 0x00007f70669b968f ffi_call (libffi.so.6)
#26 0x00007f706afd1ed8 n/a (libgjs.so.0)
#27 0x00007f706afd37b4 n/a (libgjs.so.0)
#28 0x00007f7062894f9c _ZN2js23InternalCallOrConstructEP9JSContextRKN2JS8CallArgsENS_14MaybeConstructE (libmozjs-52.so.0)
#29 0x00007f70628950b9 _ZN2js4CallEP9JSContextN2JS6HandleINS2_5ValueEEES5_RKNS_13AnyInvokeArgsENS2_13MutableHandleIS4_EE (libmozjs-52.so.0)
#30 0x00007f706268320d _ZN2js3jit14InvokeFunctionEP9JSContextN2JS6HandleIP8JSObjectEEbjPNS3_5ValueENS3_13MutableHandleIS8_EE (libmozjs-52.so.0)
#31 0x0000253d59f993c6 n/a (n/a)
#32 0x00007f7062588c9d _ZN2js3jit9IonCannonEP9JSContextRNS_8RunStateE (libmozjs-52.so.0)
#33 0x00007f7062894abb _ZN2js9RunScriptEP9JSContextRNS_8RunStateE (libmozjs-52.so.0)
#34 0x00007f7062894ddf _ZN2js23InternalCallOrConstructEP9JSContextRKN2JS8CallArgsENS_14MaybeConstructE (libmozjs-52.so.0)
#35 0x00007f70628950b9 _ZN2js4CallEP9JSContextN2JS6HandleINS2_5ValueEEES5_RKNS_13AnyInvokeArgsENS2_13MutableHandleIS4_EE (libmozjs-52.so.0)
#36 0x00007f706272643a _Z20JS_CallFunctionValueP9JSContextN2JS6HandleIP8JSObjectEENS2_INS1_5ValueEEERKNS1_16HandleValueArrayENS1_13MutableHandleIS6_EE (libmozjs-52.so.0)
#37 0x00007f706affadb6 gjs_call_function_value (libgjs.so.0)
#38 0x00007f706afcc3f5 gjs_closure_invoke (libgjs.so.0)
#39 0x00007f706afea015 n/a (libgjs.so.0)
#40 0x00007f706c2e473d g_closure_invoke (libgobject-2.0.so.0)
#41 0x00007f706c2f74de signal_emit_unlocked_R (libgobject-2.0.so.0)
#42 0x00007f706c2ffd05 g_signal_emit_valist (libgobject-2.0.so.0)
#43 0x00007f706c30066f g_signal_emit (libgobject-2.0.so.0)
#44 0x00007f706c8e312a shell_generic_container_allocate (libgnome-shell.so)
#45 0x00007f706ac9e5d4 clutter_actor_set_animatable_property (libmutter-clutter-1.so)
#46 0x00007f706aca2850 _clutter_actor_create_transition (libmutter-clutter-1.so)
#47 0x00007f706aca3435 clutter_actor_allocate (libmutter-clutter-1.so)
#48 0x00007f706aca3b03 clutter_actor_allocate_preferred_size (libmutter-clutter-1.so)
#49 0x00007f706acc22ca clutter_fixed_layout_allocate (libmutter-clutter-1.so)
#50 0x00007f706ac919c3 clutter_actor_set_allocation (libmutter-clutter-1.so)
#51 0x00007f706aced4fb clutter_stage_allocate (libmutter-clutter-1.so)
#52 0x00007f706ac9e5d4 clutter_actor_set_animatable_property (libmutter-clutter-1.so)
#53 0x00007f706aca2850 _clutter_actor_create_transition (libmutter-clutter-1.so)
#54 0x00007f706aca3435 clutter_actor_allocate (libmutter-clutter-1.so)
#55 0x00007f706aceac69 _clutter_stage_maybe_relayout (libmutter-clutter-1.so)
#56 0x00007f706ac91735 clutter_actor_get_allocation_box (libmutter-clutter-1.so)
#57 0x00007f70669b9d1e ffi_call_unix64 (libffi.so.6)
#58 0x00007f70669b968f ffi_call (libffi.so.6)
#59 0x00007f706afd1ed8 n/a (libgjs.so.0)
#60 0x00007f706afd37b4 n/a (libgjs.so.0)
#61 0x00007f7062894f9c _ZN2js23InternalCallOrConstructEP9JSContextRKN2JS8CallArgsENS_14MaybeConstructE (libmozjs-52.so.0)
#62 0x00007f706288f478 _ZL9InterpretP9JSContextRN2js8RunStateE (libmozjs-52.so.0)
#63 0x00007f7062894806 _ZN2js9RunScriptEP9JSContextRNS_8RunStateE (libmozjs-52.so.0)

Stack trace of thread 1103:
#0  0x00007f7069f8ec2b __GI___poll (libc.so.6)
#1  0x00007f706c00bed9 g_main_context_iterate.isra.25 (libglib-2.0.so.0)
#2  0x00007f706c00c272 g_main_loop_run (libglib-2.0.so.0)
#3  0x00007f706c5f4b36 gdbus_shared_thread_func (libgio-2.0.so.0)
#4  0x00007f706c0334c6 g_thread_proxy (libglib-2.0.so.0)
#5  0x00007f706a26c619 start_thread (libpthread.so.0)
#6  0x00007f7069f9ae7f __clone (libc.so.6)

Stack trace of thread 1106:
#0  0x00007f7069f8ec2b __GI___poll (libc.so.6)
#1  0x00007f706c00bed9 g_main_context_iterate.isra.25 (libglib-2.0.so.0)
#2  0x00007f706c00bfec g_main_context_iteration (libglib-2.0.so.0)
#3  0x00007f705567342d dconf_gdbus_worker_thread (libdconfsettings.so)
#4  0x00007f706c0334c6 g_thread_proxy (libglib-2.0.so.0)
#5  0x00007f706a26c619 start_thread (libpthread.so.0)
#6  0x00007f7069f9ae7f __clone (libc.so.6)

Stack trace of thread 1321:
#0  0x00007f7069f8ec2b __GI___poll (libc.so.6)
#1  0x00007f703af47661 poll_func (libpulse.so.0)
#2  0x00007f703af39020 pa_mainloop_poll (libpulse.so.0)
#3  0x00007f703af396b0 pa_mainloop_iterate (libpulse.so.0)
#4  0x00007f703af39740 pa_mainloop_run (libpulse.so.0)
#5  0x00007f703af475a9 thread (libpulse.so.0)
#6  0x00007f703ace6ac8 internal_thread_func (libpulsecommon-11.1.so)
#7  0x00007f706a26c619 start_thread (libpthread.so.0)
#8  0x00007f7069f9ae7f __clone (libc.so.6)

Stack trace of thread 1322:
#0  0x00007f706a272c4b futex_wait_cancelable (libpthread.so.0)
#1  0x00007f70624819c4 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so.0)
#2  0x00007f7062481c35 _ZN2js17ConditionVariable8wait_forERNS_9LockGuardINS_5MutexEEERKN7mozilla16BaseTimeDurationINS5_27TimeDurationValueCalculatorEEE (libmozjs-52.so.0)
#3  0x00007f706287a1e3 _ZN2js12HelperThread10threadLoopEv (libmozjs-52.so.0)
#4  0x00007f706289b802 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-52.so.0)
#5  0x00007f706a26c619 start_thread (libpthread.so.0)
#6  0x00007f7069f9ae7f __clone (libc.so.6)

Stack trace of thread 1323:
#0  0x00007f706a272c4b futex_wait_cancelable (libpthread.so.0)
#1  0x00007f70624819c4 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so.0)
#2  0x00007f7062481c35 _ZN2js17ConditionVariable8wait_forERNS_9LockGuardINS_5MutexEEERKN7mozilla16BaseTimeDurationINS5_27TimeDurationValueCalculatorEEE (libmozjs-52.so.0)
#3  0x00007f706287a1e3 _ZN2js12HelperThread10threadLoopEv (libmozjs-52.so.0)
#4  0x00007f706289b802 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-52.so.0)
#5  0x00007f706a26c619 start_thread (libpthread.so.0)
#6  0x00007f7069f9ae7f __clone (libc.so.6)

Stack trace of thread 1324:
#0  0x00007f706a272c4b futex_wait_cancelable (libpthread.so.0)
#1  0x00007f70624819c4 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so.0)
#2  0x00007f7062481c35 _ZN2js17ConditionVariable8wait_forERNS_9LockGuardINS_5MutexEEERKN7mozilla16BaseTimeDurationINS5_27TimeDurationValueCalculatorEEE (libmozjs-52.so.0)
#3  0x00007f706287a1e3 _ZN2js12HelperThread10threadLoopEv (libmozjs-52.so.0)
#4  0x00007f706289b802 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-52.so.0)
#5  0x00007f706a26c619 start_thread (libpthread.so.0)
#6  0x00007f7069f9ae7f __clone (libc.so.6)

Stack trace of thread 1325:
#0  0x00007f706a272c4b futex_wait_cancelable (libpthread.so.0)
#1  0x00007f70624819c4 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so.0)
#2  0x00007f7062481c35 _ZN2js17ConditionVariable8wait_forERNS_9LockGuardINS_5MutexEEERKN7mozilla16BaseTimeDurationINS5_27TimeDurationValueCalculatorEEE (libmozjs-52.so.0)
#3  0x00007f706287a1e3 _ZN2js12HelperThread10threadLoopEv (libmozjs-52.so.0)
#4  0x00007f706289b802 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-52.so.0)
#5  0x00007f706a26c619 start_thread (libpthread.so.0)
#6  0x00007f7069f9ae7f __clone (libc.so.6)

Stack trace of thread 1326:
#0  0x00007f706a272c4b futex_wait_cancelable (libpthread.so.0)
#1  0x00007f70624819c4 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so.0)
#2  0x00007f7062481c35 _ZN2js17ConditionVariable8wait_forERNS_9LockGuardINS_5MutexEEERKN7mozilla16BaseTimeDurationINS5_27TimeDurationValueCalculatorEEE (libmozjs-52.so.0)
#3  0x00007f706287a1e3 _ZN2js12HelperThread10threadLoopEv (libmozjs-52.so.0)
#4  0x00007f706289b802 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-52.so.0)
#5  0x00007f706a26c619 start_thread (libpthread.so.0)
#6  0x00007f7069f9ae7f __clone (libc.so.6)

Stack trace of thread 1327:
#0  0x00007f706a272c4b futex_wait_cancelable (libpthread.so.0)
#1  0x00007f70624819c4 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so.0)
#2  0x00007f7062481c35 _ZN2js17ConditionVariable8wait_forERNS_9LockGuardINS_5MutexEEERKN7mozilla16BaseTimeDurationINS5_27TimeDurationValueCalculatorEEE (libmozjs-52.so.0)
#3  0x00007f706287a1e3 _ZN2js12HelperThread10threadLoopEv (libmozjs-52.so.0)
#4  0x00007f706289b802 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-52.so.0)
#5  0x00007f706a26c619 start_thread (libpthread.so.0)
#6  0x00007f7069f9ae7f __clone (libc.so.6)

Stack trace of thread 1328:
#0  0x00007f706a272c4b futex_wait_cancelable (libpthread.so.0)
#1  0x00007f70624819c4 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so.0)
#2  0x00007f7062481c35 _ZN2js17ConditionVariable8wait_forERNS_9LockGuardINS_5MutexEEERKN7mozilla16BaseTimeDurationINS5_27TimeDurationValueCalculatorEEE (libmozjs-52.so.0)
#3  0x00007f706287a1e3 _ZN2js12HelperThread10threadLoopEv (libmozjs-52.so.0)
#4  0x00007f706289b802 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-52.so.0)
#5  0x00007f706a26c619 start_thread (libpthread.so.0)
#6  0x00007f7069f9ae7f __clone (libc.so.6)

Stack trace of thread 1329:
#0  0x00007f706a272c4b futex_wait_cancelable (libpthread.so.0)
#1  0x00007f70624819c4 _ZN2js17ConditionVariable4waitERNS_9LockGuardINS_5MutexEEE (libmozjs-52.so.0)
#2  0x00007f7062481c35 _ZN2js17ConditionVariable8wait_forERNS_9LockGuardINS_5MutexEEERKN7mozilla16BaseTimeDurationINS5_27TimeDurationValueCalculatorEEE (libmozjs-52.so.0)
#3  0x00007f706287a1e3 _ZN2js12HelperThread10threadLoopEv (libmozjs-52.so.0)
#4  0x00007f706289b802 _ZN2js6detail16ThreadTrampolineIRFvPvEJPNS_12HelperThreadEEE5StartES2_ (libmozjs-52.so.0)
#5  0x00007f706a26c619 start_thread (libpthread.so.0)
#6  0x00007f7069f9ae7f __clone (libc.so.6)

Stack trace of thread 1102:
#0  0x00007f7069f8ec2b __GI___poll (libc.so.6)
#1  0x00007f706c00bed9 g_main_context_iterate.isra.25 (libglib-2.0.so.0)
#2  0x00007f706c00bfec g_main_context_iteration (libglib-2.0.so.0)
#3  0x00007f706c00c031 glib_worker_main (libglib-2.0.so.0)
#4  0x00007f706c0334c6 g_thread_proxy (libglib-2.0.so.0)
#5  0x00007f706a26c619 start_thread (libpthread.so.0)
#6  0x00007f7069f9ae7f __clone (libc.so.6)
Comment 21 Jonas Ådahl 2017-10-16 09:18:35 UTC
Fixing of that backtrace was done in bug 788860.
Comment 22 Daniel Playfair Cal 2017-10-25 23:12:20 UTC
I have the same issue, but the backtrace is different.

For me, Gnome 3.26.1 on wayland on Arch Linux. I had 3 monitors plugged in and I unplugged an external one connected via USB-C --> displayport. Both gnome-shell processes crashed.

Trace of GDM gnome-shell:

#0  0x00007f4c69c5db0c init_output (libmutter-1.so.0)
                #1  0x00007f4c69bd132c meta_monitor_manager_read_current_state (libmutter-1.so.0)
                #2  0x00007f4c69c5be48 handle_hotplug_event (libmutter-1.so.0)
                #3  0x00007f4c6608a17e ffi_call_unix64 (libffi.so.6)
                #4  0x00007f4c66089aef ffi_call (libffi.so.6)
                #5  0x00007f4c6b9f084b g_cclosure_marshal_generic (libgobject-2.0.so.0)
                #6  0x00007f4c6b9e76f5 g_closure_invoke (libgobject-2.0.so.0)
                #7  0x00007f4c6b9fb0b0 n/a (libgobject-2.0.so.0)
                #8  0x00007f4c6b9ff696 g_signal_emit_valist (libgobject-2.0.so.0)
                #9  0x00007f4c6ba00920 g_signal_emit (libgobject-2.0.so.0)
                #10 0x00007f4c5fdc94c9 n/a (libgudev-1.0.so.0)
                #11 0x00007f4c6b7170be g_main_context_dispatch (libglib-2.0.so.0)
                #12 0x00007f4c6b718f69 n/a (libglib-2.0.so.0)
                #13 0x00007f4c6b719f42 g_main_loop_run (libglib-2.0.so.0)
                #14 0x00007f4c69c04f6c meta_run (libmutter-1.so.0)
                #15 0x00005563dda6de8c n/a (gnome-shell)
                #16 0x00007f4c6c436f6a __libc_start_main (libc.so.6)
                #17 0x00005563dda6dfba n/a (gnome-shell)


Trace of session gnome-shell:

  • #0 init_output
    at backends/native/meta-monitor-manager-kms.c line 750
  • #1 init_outputs
    at backends/native/meta-monitor-manager-kms.c line 1094
  • #2 meta_monitor_manager_kms_read_current
    at backends/native/meta-monitor-manager-kms.c line 1131
  • #3 meta_monitor_manager_read_current_state
    at backends/meta-monitor-manager.c line 2569
  • #4 handle_hotplug_event
    at backends/native/meta-monitor-manager-kms.c line 1500
  • #5 on_uevent
    at backends/native/meta-monitor-manager-kms.c line 1516
  • #6 ffi_call_unix64
    at ../src/x86/unix64.S line 76
  • #7 ffi_call
    at ../src/x86/ffi64.c line 525
  • #8 g_cclosure_marshal_generic
  • #9 g_closure_invoke
  • #10 0x00007f6ff48080b0 in
  • #11 g_signal_emit_valist
  • #12 g_signal_emit
  • #13 0x00007f6fe8bd64c9 in
  • #14 g_main_context_dispatch
  • #15 0x00007f6ff4525f69 in
  • #16 g_main_loop_run
  • #17 meta_run
    at core/main.c line 648
  • #18 0x0000562442ea4e8c in
  • #19 __libc_start_main
  • #20 0x0000562442ea4fba in

Comment 23 Bastien Nocera 2017-10-25 23:16:42 UTC
(In reply to Daniel Playfair Cal from comment #22)
> I have the same issue, but the backtrace is different.

That's a good enough reason to file a separate bug :)
Comment 24 Daniel Playfair Cal 2017-10-25 23:35:52 UTC
Ok, here's a seperate bug report: https://bugzilla.gnome.org/show_bug.cgi?id=789501
Comment 25 GNOME Infrastructure Team 2021-07-05 13:44:24 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/mutter/-/issues/

Thank you for your understanding and your help.