GNOME Bugzilla – Bug 728229
Crash when plugging in external monitor to laptop
Last modified: 2014-04-28 17:14:53 UTC
When I plug in a monitor to my Lenovo Yoga 2, gnome crashes with the following message in the logs: gnome-session[2895]: GnomeDesktop:ERROR:gnome-rr.c:1701:gnome_rr_crtc_get_current_rotation: assertion failed: (crtc != NULL) This causes gnome-settings-daemon to crash and logs me out immediately. My initial guess is that it's trying to get accelerometer status, on the external monitor and it was supposed to check for that at an earlier point. Repro steps: Plug in monitor before or after login
Thanks for taking the time to report this bug. Without a stack trace from the crash it's very hard to determine what caused it. Can you get us a stack trace? Please see http://live.gnome.org/GettingTraces for more information on how to do so. Thanks in advance!
Created attachment 274409 [details] Stacktrace No idea how to write the trace out to a file in gdb. Hope this helps.
As a side note, on my build I removed the assert and simply return GNOME_RR_ROTATION_0 by default if crtc is NULL. I'm not familiar enough with the gnome codebase to find a real fix for the issue.
Created attachment 275367 [details] [review] common: Handle displays with no associated crtc in the device mapper This scenario may happen if a monitor is plugged, but turned off, or if more monitors are plugged than what the graphics card can handle. So, when mapping devices, bypass safely displays in that state. Devices that were going to get originally mapped to it will get currently mapped to the closest monitor in the layout.
Marking as a duplicate of bug 729128, which has a more minimalist patch I made when reproducing this issue. *** This bug has been marked as a duplicate of bug 729128 ***