Skip to content
Prev 9172 / 398502 Next

NOT YET SOLVED: Re: [R] Error in postscript(....)

Marcus Eger <marcus.eger at physik.uni-marburg.de> writes:
I'm still at a loss trying to explain how postscript() triggers an X11
error, but...

You might try to change (in devX11.c)

static int R_X11IOErr(Display *dsp)
{
    error("X11 fatal IO error: please save work and shut down R");
    return 0; /* but should never get here */
}

by inserting code that unregisters the X11 input handler, i.e.

int fd = ConnectionNumber(display);
        removeInputHandler(&R_InputHandlers,
                           getInputHandler(R_InputHandlers,fd));

and similarly in dataentry.c.

(BTW, I forget, did you try running under the debugger and see whether
it is the code in devX11.c or in dataentry.c that tickles this?)