When running a remote desktop kde session to a Fedora 18 (beta) system using the Nomachine nx server and clients, several programs gives errors like:
(emacs:7292): Gdk-ERROR **: The program 'emacs' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
(Details: serial 130 error_code 2 request_code 25 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
The nx remote desktop works fine on Fedora 16.
Some analysis was done in this mailing list thread:
which suggests that cairo is not checking for xrender extensions before using them, leading to the errors.
I can confirm that by setting LD_PRELOAD to preload the cairo libraries from Fedora 17 before running eg emacs in the nx session, these errors do dont happen.
I'm happy to run more tests if needed.
This is probably a better link to the description of the problem:
To quote that email:
> The main problem seems to be the function _render_operator() in
> cairo-xlib-render.c, which just translates any cairo operator to the
> corresponding XRender code without any checks. This function is used in
> various calls to XRender functions.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/50.