[ESS] R-2.3.0 crash
Stephen Eglen
S.J.Eglen at damtp.cam.ac.uk
Thu Apr 27 12:29:13 CEST 2006
Thanks Robin; this seems odd. Any other Mac users (David R?)
get the same thing?
I'm a little puzzled how it might be an ESS thing, maybe we are not
setting the environment correctly for R to start. But was this a
problem with R-2.2.x series?
Another way forward is to debug the R process, which may take work.
e.g. you will need to follow the instructions in the R FAQ for
debugging R within ESS: (Sec 6.3 Debugging R from within Emacs)
----------------------------------------------------------------------
If you have ESS, you can do `C-u M-x R <RET> - d <SPC> g d b <RET>'
to start an inferior R process with arguments `-d gdb'.
A third option is to start an inferior R process via ESS (`M-x R')
and then start GUD (`M-x gdb') giving the R binary (using its full path
name) as the program to debug. Use the program `ps' to find the
process number of the currently running R process then use the `attach'
command in gdb to attach it to that process. One advantage of this
method is that you have separate `*R*' and `*gud-gdb*' windows. Within
the `*R*' window you have all the ESS facilities, such as object-name
completion, that we know and love.
----------------------------------------------------------------------
Stephen
Robin Hankin writes:
> Hi Stephen
>
> thanks for this.
>
> X11() does not cause a crash (but then again, doesn't open a window)
>
> after M-x shell I get:
>
> [octopus:~] rksh% echo $DISPLAY
> localhost:0.0
> [octopus:~] rksh%
>
>
> but in an ESS session I get
>
>
> > X11("localhost:0.0")
> Error: Couldn't find per display information
>
> Process R exited abnormally with code 1 at Thu Apr 27 11:09:21 2006
>
>
> so that causes a crash too.
>
> any ideas?
>
>
> best wishes
>
>
> Robin
>
>
> On 27 Apr 2006, at 10:50, Stephen Eglen wrote:
>
> >
> >
> > Robin Hankin writes:
> >> Hi
> >>
> >> [MacOSX 10.4.6, emacs 22.0.50.1, ess 5.3.0, R-2.3.0,
> >> gcc version 4.0.1 (Apple Computer, Inc. build 5247]
> >>
> >> Using R-2.3.0 with ESS, I get a repeatable crash trying to open
> >> an X11
> >> window. Cut-n-paste session follows:
> >>
> >>
> >> Type 'demo()' for some demos, 'help()' for on-line help, or
> >> 'help.start()' for an HTML browser interface to help.
> >> Type 'q()' to quit R.
> >>
> >>> X11("octopus:0.0")
> >> Error: Couldn't find per display information
> >>
> >> Process R exited abnormally with code 1 at Thu Apr 27 09:55:21 2006
> >>
> >>
> >>
> >> what's going on here?
> >>
> >> [I don't get this running R from a terminal, hence ess-help]
> >
> > hi Robin,
> >
> > I wonder if Emacs can get hold of the X11 information; can you try the
> > following within your Emacs:
> >
> > M-x shell
> >
> > Then in *shell* try:
> >
> > % echo $DISPLAY
> >
> > % R
> >> X11("octopus:0.0")
> >
> > which might tell us if it is an ESS issue.
> >
> > Also, does
> >
> >> X11()
> >
> > cause a crash?
> >
> >
> >
> > S
>
> --
> Robin Hankin
> Uncertainty Analyst
> National Oceanography Centre, Southampton
> European Way, Southampton SO14 3ZH, UK
> tel 023-8059-7743
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list