(after resume) segfault crash when trying to show display options
I have a laptop connected via HDMI to an external monitor with no issue: it works flawlessly.
When I resume the laptop from suspend, external monitor is not working anymore:
- if it was in External monitor only (laptop panel down), now it switch to Internal only (but external is on**[*]** with a grey background, but not in extended mode);
- trying to change settings from Function Key, changes has no effect;
Furthermore, if you try to change settings from gnome-control-center it will crash (but only if you reach the Display panel)
[*]: see first three lines in output: monitor is detected
Steps to reproduce:
- Suspend your machine
- Resume it (you can notice external monitor is not working anymore as configured)
- Right-click on desktop -> Display Settings
- Window appears for a moment then disappears (open GNOME Settings and navigate to e.g. WiFi options does not led to crash)
Oct 19 13:53:03 arch-xps /usr/lib/gdm-x-session[1235]: (II) modeset(0): EDID vendor "SHP", prod id 5152
Oct 19 13:53:03 arch-xps /usr/lib/gdm-x-session[1235]: (II) modeset(0): Printing DDC gathered Modelines:
Oct 19 13:53:03 arch-xps /usr/lib/gdm-x-session[1235]: (II) modeset(0): Modeline "1920x1080"x0.0 138.50 1920 1968 2000 2080 1080 1083 1088 1111 -hsync -vsync (66.6 kHz eP)
Oct 19 13:53:03 arch-xps dbus-daemon[681]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.392' (uid=1000 pid=2741 comm="gnome-control-center display ")
Oct 19 13:53:03 arch-xps systemd[1]: Starting Hostname Service...
Oct 19 13:53:04 arch-xps dbus-daemon[681]: [system] Successfully activated service 'org.freedesktop.hostname1'
Oct 19 13:53:04 arch-xps systemd[1]: Started Hostname Service.
Oct 19 13:53:04 arch-xps gnome-control-c[2741]: gtk_widget_draw: assertion '!widget->priv->alloc_needed' failed
Oct 19 13:53:04 arch-xps kernel: gnome-control-c[2741]: segfault at 38 ip 000055abf4b73e0f sp 00007ffea43aa7d0 error 4 in gnome-control-center[55abf4a9c000+103000]
Oct 19 13:53:04 arch-xps kernel: Code: 5d 8b 40 40 c1 e8 02 83 e0 01 c3 55 48 89 fd 48 83 ec 10 f2 0f 11 44 24 08 e8 bd e9 ff ff 48 89 ef 48 89 c6 ff 15 49 fe 30 00 <48> 8b 40 38 8b 50 08 85 d2 74 36 48 8b 00 83 ea 01 f2 0f 10 44 24
Oct 19 13:53:04 arch-xps systemd[1]: Created slice system-systemd\x2dcoredump.slice.
Oct 19 13:53:04 arch-xps systemd[1]: Started Process Core Dump (PID 2755/UID 0).
Oct 19 13:53:05 arch-xps systemd-coredump[2756]: Process 2741 (gnome-control-c) of user 1000 dumped core.
Stack trace of thread 2741:
#0 0x000055abf4b73e0f n/a (gnome-control-center)
#1 0x000055abf4b73e96 n/a (gnome-control-center)
#2 0x000055abf4b73f97 n/a (gnome-control-center)
#3 0x000055abf4b7469d n/a (gnome-control-center)
#4 0x000055abf4b74db3 cc_display_settings_set_selected_output (gnome-control-center)
#5 0x000055abf4b76952 n/a (gnome-control-center)
#6 0x000055abf4b778e0 n/a (gnome-control-center)
#7 0x000055abf4b77e99 n/a (gnome-control-center)
#8 0x00007f54977c5d3a g_closure_invoke (libgobject-2.0.so.0)
#9 0x00007f54977b388e n/a (libgobject-2.0.so.0)
#10 0x00007f54977b798a g_signal_emit_valist (libgobject-2.0.so.0)
#11 0x00007f54977b87f0 g_signal_emit (libgobject-2.0.so.0)
#12 0x000055abf4b6f4ec n/a (gnome-control-center)
#13 0x00007f54978a9c24 n/a (libgio-2.0.so.0)
#14 0x00007f54978af447 n/a (libgio-2.0.so.0)
#15 0x00007f549785ec60 n/a (libgio-2.0.so.0)
#16 0x00007f54978a9c24 n/a (libgio-2.0.so.0)
#17 0x00007f54978a9c59 n/a (libgio-2.0.so.0)
#18 0x00007f54976d92cf g_main_context_dispatch (libglib-2.0.so.0)
#19 0x00007f54976db211 n/a (libglib-2.0.so.0)
#20 0x00007f54976db251 g_main_context_iteration (libglib-2.0.so.0)
#21 0x00007f549788c9de g_application_run (libgio-2.0.so.0)
#22 0x000055abf4a9c3fe main (gnome-control-center)
#23 0x00007f54979c7153 __libc_start_main (libc.so.6)
#24 0x000055abf4a9c44e _start (gnome-control-center)
Stack trace of thread 2747:
#0 0x00007f5497a949ef __poll (libc.so.6)
#1 0x00007f54976db180 n/a (libglib-2.0.so.0)
#2 0x00007f54976db251 g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007f5488004e5e n/a (libdconfsettings.so)
#4 0x00007f54976b7c11 n/a (libglib-2.0.so.0)
#5 0x00007f5495c814cf start_thread (libpthread.so.0)
#6 0x00007f5497a9f2d3 __clone (libc.so.6)
Stack trace of thread 2745:
#0 0x00007f5495c87c45 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f548384c4fc n/a (i965_dri.so)
#2 0x00007f548384c0f8 n/a (i965_dri.so)
#3 0x00007f5495c814cf start_thread (libpthread.so.0)
#4 0x00007f5497a9f2d3 __clone (libc.so.6)
Stack trace of thread 2743:
#0 0x00007f5497a949ef __poll (libc.so.6)
#1 0x00007f54976db180 n/a (libglib-2.0.so.0)
#2 0x00007f54976db251 g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007f54976db2a2 n/a (libglib-2.0.so.0)
#4 0x00007f54976b7c11 n/a (libglib-2.0.so.0)
#5 0x00007f5495c814cf start_thread (libpthread.so.0)
#6 0x00007f5497a9f2d3 __clone (libc.so.6)
Stack trace of thread 2752:
#0 0x00007f5497a99e9d syscall (libc.so.6)
#1 0x00007f549768c11b g_cond_wait_until (libglib-2.0.so.0)
#2 0x00007f5497709f63 n/a (libglib-2.0.so.0)
#3 0x00007f54976b113b n/a (libglib-2.0.so.0)
#4 0x00007f54976b7c11 n/a (libglib-2.0.so.0)
#5 0x00007f5495c814cf start_thread (libpthread.so.0)
#6 0x00007f5497a9f2d3 __clone (libc.so.6)
Stack trace of thread 2744:
#0 0x00007f5497a949ef __poll (libc.so.6)
#1 0x00007f54976db180 n/a (libglib-2.0.so.0)
#2 0x00007f54976dc123 g_main_loop_run (libglib-2.0.so.0)
#3 0x00007f5497849b48 n/a (libgio-2.0.so.0)
#4 0x00007f54976b7c11 n/a (libglib-2.0.so.0)
#5 0x00007f5495c814cf start_thread (libpthread.so.0)
#6 0x00007f5497a9f2d3 __clone (libc.so.6)
Stack trace of thread 2754:
#0 0x00007f5497a99e9d syscall (libc.so.6)
#1 0x00007f549768c11b g_cond_wait_until (libglib-2.0.so.0)
#2 0x00007f5497709f63 n/a (libglib-2.0.so.0)
#3 0x00007f54976b113b n/a (libglib-2.0.so.0)
#4 0x00007f54976b7c11 n/a (libglib-2.0.so.0)
#5 0x00007f5495c814cf start_thread (libpthread.so.0)
#6 0x00007f5497a9f2d3 __clone (libc.so.6)
Stack trace of thread 2753:
#0 0x00007f5497a99e9d syscall (libc.so.6)
#1 0x00007f549768c11b g_cond_wait_until (libglib-2.0.so.0)
#2 0x00007f5497709f63 n/a (libglib-2.0.so.0)
#3 0x00007f54976b113b n/a (libglib-2.0.so.0)
#4 0x00007f54976b7c11 n/a (libglib-2.0.so.0)
#5 0x00007f5495c814cf start_thread (libpthread.so.0)
#6 0x00007f5497a9f2d3 __clone (libc.so.6)
Oct 19 13:53:05 arch-xps systemd[1]: systemd-coredump@0-2755-0.service: Succeeded.
I am on Arch Linux x86_64 w/ gnome-control-center 3.34.1
NB: this issue is not always present: sometime suspend/resume goes fine