GNOME Bugzilla – Bug 600188
gnome-settings-daemon received an X Window System error.
Last modified: 2010-02-23 03:04:27 UTC
Created attachment 146615 [details] [review] 0001-Trap-X-errors-due-to-unsupported-RANDR-version.patch Reported at https://bugs.edge.launchpad.net/ubuntu/+source/gnome-desktop/+bug/454487: Users running FreeNX are seeing g-s-d crashes at startup, which can be avoided by disabling the xrandr plugin. Here is the backtrace:
+ Trace 218681
This seems to be because XRRGetScreenResources is called in fill_out_screen_info(), without trapping the errors generated from this call. XRRGetScreenResources requires at least RANDR 1.2, and will generate a BadRequest if it is not supported by the server (which seems to be the behaviour here). I've attached a patch which fixes this
Created attachment 146616 [details] [review] 0001-Trap-X-errors-due-to-unsupported-RANDR-version.patch Oops, here is a patch with correct formatting
Created attachment 148036 [details] [review] Check that the extension provides XRandR 1.2 before calling 1.2 functions The Xorg maintainer warned me that the proposed solution is incorrect. The real issue is that the whole code requires XRandR version 1.2 to be available. While there is a version check for 1.3 functions, there is not for 1.2 functions. Some X servers provide the XRANDR extension at a version < 1.2 and calling the functions fail. Hence the BadRequest errors. This patch should do things correctly.
Confirmed by this Mandriva 2010.0 bug report: https://qa.mandriva.com/show_bug.cgi?id=56349
The just-pushed fix for bug #554263 takes care of this problem. *** This bug has been marked as a duplicate of bug 554263 ***