-
-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R doctest starts X11 on OSX #12172
Comments
comment:3
When I run "dtruss -f R", it exits immediately — it doesn't enter an interactive mode where I can give it commands. Meanwhile, we could unconditionally disable X11 on Darwin in spkg-install. I can produce a new spkg if people think this is a reasonable solution. |
comment:4
Yes, we should only need Aqua on Darwin for R graphics. We'd need to test this on a few systems - in particular yours! - but I don't see why this should cause trouble. |
comment:5
New spkg up, and I've also posted the patch applied to the spkg (for review purposes). |
Author: John Palmieri |
This comment has been minimized.
This comment has been minimized.
comment:7
Just to be clear; the R package can still pop up a window with graphics, right? It'd just be an "aqua" window, rather than an X window, right? |
comment:8
If you can tell me commands to pop open a window with graphics, I'll try it out on my OS X box with this new spkg. (It should work in theory, using "aqua" as you say.) |
comment:9
do |
comment:10
Yup, it works (for me, anyway). |
comment:11
Please rebase to #12131... |
comment:12
Okay, rebased spkg is up, and I've also updated the patch. |
This comment has been minimized.
This comment has been minimized.
Attachment: trac_12172-r-spkg.patch.gz for review only |
comment:13
The patch looks ok, modulo my usual having to look up shell syntax. (Trifle annoying that someone forgot to update the version number in the GPL listing, but I'm not going to mess with that since it wasn't done on the upgrade.) The problem is that I can't test whether it fixes the problem, really. With Sage 4.8:
Even though I have the offending file!
So the best I can do is to say that it doesn't seem to break anything... Well, I'm going to see if I can break graphics by changing to this spkg. I'll report back momentarily. |
Reviewer: Karl-Dieter Crisman |
comment:14
Okay, graphics still work fine, as far as I can tell, in all places they should. We should have disabled this anyway, and I don't know why we didn't figure out that the logic for disabling on Darwin was incorrect. I'm going to give this positive review. |
Merged: sage-5.0.beta2 |
John Palmieri reports that, with the R package from #12057, this doctest is problematic (line 352):
On his Mac OS X 10.6.8 box, doctesting this starts up the X server but does not display any actual graphics. This is new: it didn't do this in Sage 4.8.alpha3.
This does not happen on all OSX machines. The intented R configuration on OSX is without X11 support, and only Aqua capabilities.
It might be a bug or misconfiguration in the X installation that it opens up even though nobody is draw a window.
This can be avoided by unsetting
DISPLAY
in the R session, but then R does no longer report png output capabilities:Its unclear whether that would really be an issue in Sage.
Somebody with a Mac might want to trace where exactly R starts up the X server. The equivalent of strace on Linux seems to be http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/dtruss.1m.html
New spkg: http://sage.math.washington.edu/home/palmieri/SPKG/r-2.14.0.p2.spkg
CC: @kcrisman @jasongrout @jhpalmieri
Component: doctest coverage
Keywords: R r-project graphics OSX X11
Author: John Palmieri
Reviewer: Karl-Dieter Crisman
Merged: sage-5.0.beta2
Issue created by migration from https://trac.sagemath.org/ticket/12172
The text was updated successfully, but these errors were encountered: