Crashes on DP hotplug (wl_registry@2: error 0: invalid global wl_output (29))

Bug #1747910 reported by Marius Gedminas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
New
Undecided
Unassigned

Bug Description

I switched to a new external monitor at work today. I cannot reproduce the exact sequence of events, but it was basically: plug in external monitor (via DisplayPort), suspend laptop, unplug that monitor and plug in another one, resume laptop. At that point I was staring at the GDM login screen because gnome-shell had crashed on me.

(It's hard to understand what happened exactly, from the journal, but it may've been Xwayland that crashed -- I've an Xwayland crash file in /var/crash with a matching timestamp -- but the entire GNOME session died soon afterwards.)

Highlights from journalctl:

    Vas 07 15:04:27 platonas gtimelog[27075]: Error 71 (Protokolo klaida) dispatching to Wayland display.
    Vas 07 15:04:27 platonas gsd-color[3440]: no xrandr-Goldstar Company Ltd-LG ULTRAWIDE-316961 device found: Failed to find output xrandr-Goldstar Company Ltd-LG ULTRAWIDE-316961
    Vas 07 15:04:27 platonas evolution-alarm[4513]: Error 71 (Protokolo klaida) dispatching to Wayland display.
    Vas 07 15:04:27 platonas update-notifier[5165]: Error 71 (Protokolo klaida) dispatching to Wayland display.
    Vas 07 15:04:27 platonas xdg-desktop-por[5317]: Error 71 (Protokolo klaida) dispatching to Wayland display.
    Vas 07 15:04:27 platonas org.gnome.Shell.desktop[4166]: (EE)
    Vas 07 15:04:27 platonas org.gnome.Shell.desktop[4166]: Fatal server error:
    Vas 07 15:04:27 platonas org.gnome.Shell.desktop[4166]: (EE) wl_registry@2: error 0: invalid global wl_output (29)
    Vas 07 15:04:27 platonas org.gnome.Shell.desktop[4166]: (EE)
    Vas 07 15:04:27 platonas systemd[4065]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
    Vas 07 15:04:27 platonas systemd[4065]: xdg-desktop-portal-gtk.service: Unit entered failed state.
    Vas 07 15:04:27 platonas systemd[4065]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'.
    ...
    Vas 07 15:04:34 platonas org.gnome.Shell.desktop[4166]: xcb_connection_has_error() grąžino reikšmę "true"
    ...
    Vas 07 15:04:34 platonas gnome-shell[4166]: Connection to xwayland lost
    Vas 07 15:04:34 platonas org.gnome.Shell.desktop[4166]: == Stack trace for context 0x564a010d2000 ==
    ...
    Vas 07 15:04:35 platonas gnome-session[4081]: gnome-session-binary[4081]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 5
    Vas 07 15:04:35 platonas gnome-session-binary[4081]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 5
    Vas 07 15:04:35 platonas gnome-session-binary[4081]: Unrecoverable failure in required component org.gnome.Shell.desktop

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: gnome-shell 3.26.2-0ubuntu0.1
ProcVersionSignature: Ubuntu 4.13.0-32.35-generic 4.13.13
Uname: Linux 4.13.0-32-generic x86_64
NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: GNOME
Date: Wed Feb 7 15:20:24 2018
DisplayManager: gdm3
InstallationDate: Installed on 2016-09-10 (515 days ago)
InstallationMedia: Ubuntu-GNOME 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160720)
SourcePackage: gnome-shell
UpgradeStatus: Upgraded to artful on 2017-10-19 (110 days ago)

Revision history for this message
Marius Gedminas (mgedmin) wrote :
description: updated
Revision history for this message
Marius Gedminas (mgedmin) wrote :

This is probably a duplicate of 1728588 (which itself is marked as a duplicate of 1731911).

apport-retrace gives me this Xwayland stack trace:

(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007fce6a322f5d in __GI_abort () at abort.c:90
#2 0x0000558934f5713a in OsAbort () at ../../../../os/utils.c:1361
#3 0x0000558934f5cc53 in AbortServer () at ../../../../os/log.c:877
#4 0x0000558934f5da75 in FatalError (f=f@entry=0x558934f66fa6 "%s") at ../../../../os/log.c:1015
#5 0x0000558934de2e6c in xwl_log_handler (format=<optimized out>, args=<optimized out>) at ../../../../../hw/xwayland/xwayland.c:885
#6 0x00007fce6c7728ca in wl_log (fmt=<optimized out>) at ../src/wayland-util.c:406
#7 0x00007fce6c76e2d8 in display_handle_error (data=<optimized out>, display=0x558935d07e30, object=0x558935d0c300, code=0, message=<optimized out>)
    at ../src/wayland-client.c:810
#8 0x00007fce69c60e18 in ffi_call_unix64 () at ../src/x86/unix64.S:76
#9 0x00007fce69c6087a in ffi_call (cif=cif@entry=0x7ffd318ba470, fn=<optimized out>, rvalue=<optimized out>, rvalue@entry=0x0,
    avalue=avalue@entry=0x7ffd318ba540) at ../src/x86/ffi64.c:525
#10 0x00007fce6c771a1b in wl_closure_invoke (closure=<optimized out>, flags=<optimized out>, target=<optimized out>, opcode=0, data=<optimized out>)
    at ../src/connection.c:935
#11 0x00007fce6c76e5b8 in dispatch_event (display=display@entry=0x558935d07e30, queue=<optimized out>) at ../src/wayland-client.c:1310
#12 0x00007fce6c76f847 in dispatch_queue (queue=0x558935d07ef8, display=0x558935d07e30) at ../src/wayland-client.c:1449
#13 wl_display_dispatch_queue_pending (display=0x558935d07e30, queue=0x558935d07ef8) at ../src/wayland-client.c:1698
#14 0x00007fce6c76f8cc in wl_display_dispatch_pending (display=<optimized out>) at ../src/wayland-client.c:1761
#15 0x0000558934de341b in xwl_read_events (xwl_screen=0x558935cffa40) at ../../../../../hw/xwayland/xwayland.c:598
#16 0x0000558934f54cb1 in ospoll_wait (ospoll=0x558935cf4a20, timeout=<optimized out>) at ../../../../os/ospoll.c:412
#17 0x0000558934f4dcbb in WaitForSomething (are_ready=<optimized out>) at ../../../../os/WaitFor.c:226
#18 0x0000558934f199f3 in Dispatch () at ../../../../dix/dispatch.c:422
#19 0x0000558934f1dc90 in dix_main (argc=11, argv=0x7ffd318bb4f8, envp=<optimized out>) at ../../../../dix/main.c:287
#20 0x00007fce6a30b1c1 in __libc_start_main (main=0x558934de2a60 <main>, argc=11, argv=0x7ffd318bb4f8, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7ffd318bb4e8) at ../csu/libc-start.c:308
#21 0x0000558934de2a9a in _start ()

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Actually it's a closely-related bug 1746656

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.