Hej, When exporting a image from rgl, the following error is encountered:> rgl.postscript('testing.pdf', fmt="pdf")RGL: ERROR: can't bind glx context to window RGL: ERROR: can't bind glx context to window Warning messages: 1: X11 protocol error: GLXBadContextState 2: X11 protocol error: GLXBadContextState The pdf file is created and is readable, but all the labels are gone. Taking a snapshot (to png) gives 'failed' and no file is created. Version of rgl used: 0.67-2 (2006-07-11) Version of R used: R 2.3.1; i486-pc-linux-gnu; 2006-07-13 01:31:16; Running Debian GNU/Linux testing (Etch). /Gaspard
Please contact the package maintainer. -- Bert Gunter Genentech Non-Clinical Statistics South San Francisco, CA "The business of the statistician is to catalyze the scientific learning process." - George E. P. Box> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Gaspard Lequeux > Sent: Wednesday, August 23, 2006 2:15 PM > To: r-help at stat.math.ethz.ch > Subject: [R] rgl: exporting to pdf or png does not work > > > Hej, > > When exporting a image from rgl, the following error is encountered: > > > rgl.postscript('testing.pdf', fmt="pdf") > RGL: ERROR: can't bind glx context to window > RGL: ERROR: can't bind glx context to window > Warning messages: > 1: X11 protocol error: GLXBadContextState > 2: X11 protocol error: GLXBadContextState > > The pdf file is created and is readable, but all the labels are gone. > > Taking a snapshot (to png) gives 'failed' and no file is created. > > Version of rgl used: 0.67-2 (2006-07-11) > Version of R used: R 2.3.1; i486-pc-linux-gnu; 2006-07-13 01:31:16; > Running Debian GNU/Linux testing (Etch). > > /Gaspard > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
On 8/23/2006 5:15 PM, Gaspard Lequeux wrote:> Hej, > > When exporting a image from rgl, the following error is encountered: > >> rgl.postscript('testing.pdf', fmt="pdf") > RGL: ERROR: can't bind glx context to window > RGL: ERROR: can't bind glx context to window > Warning messages: > 1: X11 protocol error: GLXBadContextState > 2: X11 protocol error: GLXBadContextState > > The pdf file is created and is readable, but all the labels are gone. > > Taking a snapshot (to png) gives 'failed' and no file is created. > > Version of rgl used: 0.67-2 (2006-07-11) > Version of R used: R 2.3.1; i486-pc-linux-gnu; 2006-07-13 01:31:16; > Running Debian GNU/Linux testing (Etch).That looks like an X11 error to me, not something that I'm very likely to be able to fix. If you can debug the error, it would be helpful. Duncan Murdoch
[This is a follow-up to the recent discussion on R-help] Hi all, I can reproduce both problems on gentoo (2006.0 profile), but not on OpenSuSE-10.1. bash> cat rgl.postscript.r library(rgl) example(spheres3d) rgl.postscript("spheres.eps", fmt="eps") R> source("rgl.postscript.r") X Error of failed request: GLXBadContextState Major opcode of failed request: 142 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 102 Current serial number in output stream: 102 bash> cat rgl.snapshot.r library(rgl) example(spheres3d) rgl.postscript("spheres.png", fmt="png") R> source("rgl.snapshot.r") [1] "failed" Installed libraries: * Gentoo: R-2.2.1, rgl-0.67.2, OpenSuSE: R-2.3.1, rgl-0.67.2 * Gentoo: libpng-1.2.12, OpenSuSE: libpng-1.2.8 * Gentoo: Xorg-6.8.2 (mga), OpenSuSE: 6.9.0 (nvidia) * Gentoo: freeglut-2.4.0, OpenSuSE: freeglut-051110 * OpenSuse: mesa-6.4.2 Please let me know if there is anything I can do to help to solve this issue. Regards Daniel P.S. Please CC me in your replies, I am not subscribed to the list.