|
From: Philipp K. J. <ja...@ie...> - 2007-11-20 22:23:54
|
I just seem to have come across a strange
interaction between wxt and epslatex.
Basically, if I have plotted a graph to wxt, then
the files written later (in the same session)
using epslatex seem to be incomplete.
This does not occur if I have never used wxt,
because I was plotting to X11, for instance, or
because everything was run as a batch job
(from file).
This does also not occur if I plot to wxt, then
plot to epslatex, then plot AGAIN to wxt.
Apparently, resetting the terminal and/or
the output flushes everything to file...?
And I have not noticed this kind of problem
with any other terminal (PNG, Postscript, ...).
There is a similar bug (but much less annoying)
on my installation: whenever I have used wxt
in a gnuplot session, and I close the session,
the message "Segmentation fault" is written
to screen. This does not happen if I haven't used
wxt in that session.
Just FYI. Some details below.
Best,
Ph.
=============================
Broken Session (using wxt)
Terminal type set to 'wxt'
gnuplot> plot sin(x)
gnuplot> set t epslatex standalone
Terminal type set to 'epslatex'
Options are ' leveldefault monochrome blacktext \
dashed dashlength 1.0 linewidth 1.0 butt \
palfuncparam 2000,0.003 \
noheader "" 11 '
gnuplot> set o 'broken.tex'
gnuplot>
CLEAN> latex broken.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./broken.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman,
b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto,
e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk,
polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish,
tur
kish, ukrainian, nohyphenation, loaded.
)
*! Interruption.
<*>
? x
No pages of output.
====================================
Working Session (using only X11, not wxt)
G N U P L O T
Version 4.2 patchlevel 2
last modified 31 Aug 2007
System: Linux 2.6.18.2-34-default
Copyright (C) 1986 - 1993, 1998, 2004, 2007
Thomas Williams, Colin Kelley and many others
Type `help` to access the on-line reference manual.
The gnuplot FAQ is available from http://www.gnuplot.info/faq/
Send bug reports and suggestions to
<http://sourceforge.net/projects/gnuplot>
Terminal type set to 'wxt'
gnuplot> set t x11
Terminal type set to 'x11'
Options are '0'
gnuplot> plot sin(x)
gnuplot> set terminal epslatex standalone
Terminal type set to 'epslatex'
Options are ' leveldefault monochrome blacktext \
dashed dashlength 1.0 linewidth 1.0 butt \
palfuncparam 2000,0.003 \
noheader "" 11 '
gnuplot> set o 'good.tex'
gnuplot> replot
gnuplot>
CLEAN> latex good.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./good.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman,
b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto,
e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk,
polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish,
tur
kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/minimal.cls
Document Class: minimal 2001/05/25 Standard LaTeX minimal class
) (/usr/share/texmf/tex/latex/base/size11.clo)
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/graphics/graphics.cfg)
(/usr/share/texmf/tex/latex/graphics/dvips.def)))
(/usr/share/texmf/tex/latex/graphics/color.sty
(/usr/share/texmf/tex/latex/graphics/color.cfg)
(/usr/share/texmf/tex/latex/graphics/dvipsnam.def))
(/usr/share/texmf/tex/latex/geometry/geometry.sty
(/usr/share/texmf/tex/latex/geometry/geometry.cfg))
No configuration file gnuplot.cfg found.
No file good.aux.
<good-inc.eps> [1] (./good.aux) )
Output written on good.dvi (1 page, 692 bytes).
Transcript written on good.log.
=====================================
Log file of broken latex session:
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) (format=latex
2006.11.27) 20 NOV 2007 14:04
entering extended mode
**broken.tex
(./broken.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman,
b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto,
e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk,
polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish,
tur
kish, ukrainian, nohyphenation, loaded.
)
*
! Interruption.
<*>
? x
Here is how much of TeX's memory you used:
5 strings out of 94500
118 string characters out of 1172832
48348 words of memory out of 3500000
3273 multiletter control sequences out of 10000+50000
3640 words of font info for 14 fonts, out of 500000 for 2000
580 hyphenation exceptions out of 1000
5i,0n,1p,4b,8s stack positions out of 1500i,500n,5000p,200000b,5000s
No pages of output.
====================================
Gnuplot version info:
G N U P L O T
Version 4.2 patchlevel 2
last modified 31 Aug 2007
System: Linux 2.6.18.2-34-default
Copyright (C) 1986 - 1993, 1998, 2004, 2007
Thomas Williams, Colin Kelley and many others
Type `help` to access the on-line reference manual.
The gnuplot FAQ is available from http://www.gnuplot.info/faq/
Send bug reports and suggestions to
<http://sourceforge.net/projects/gnuplot>
Compile options:
-READLINE +LIBREADLINE +HISTORY +BACKWARDS_COMPATIBILITY +BINARY_DATA
+GD_PNG +GD_JPEG +GD_TTF +GD_GIF +ANIMATION
-NOCWDRC +X11 +X11_POLYGON +MULTIBYTE +USE_MOUSE +HIDDEN3D_QUADTREE
+DATASTRINGS +HISTOGRAMS +OBJECTS +STRINGVARS +MACROS +IMAGE
DRIVER_DIR
= "/home/janert/Gnuplot/Build/Release-4.2.2/build/libexec/gnuplot/4.2"
GNUPLOT_PS_DIR
= "/home/janert/Gnuplot/Build/Release-4.2.2/build/share/gnuplot/4.2/PostScript"
HELPFILE
= "/home/janert/Gnuplot/Build/Release-4.2.2/build/share/gnuplot/4.2/gnuplot.gih"
|
|
From: Ethan M. <merritt@u.washington.edu> - 2007-11-20 23:24:13
|
On Tuesday 20 November 2007 14:23, Philipp K. Janert wrote:
>
> Basically, if I have plotted a graph to wxt, then
> the files written later (in the same session)
> using epslatex seem to be incomplete.
It is not a question of what terminal came before,
but rather a question of what happened after.
(unless, of course, there is indeed a bug we don't know about)
> This does also not occur if I plot to wxt, then
> plot to epslatex, then plot AGAIN to wxt.
> Apparently, resetting the terminal and/or
> the output flushes everything to file...?
Yes. This is known, well-documented, and basically could
not work any other way. But it doesn't have anything to
do with wxt.
> And I have not noticed this kind of problem
> with any other terminal (PNG, Postscript, ...).
It is the same with PostScript, and with any terminal
type that can produce an output document containing
more than one plot. PNG is not an example, but this
would also hit I think SVG, MIF, PDF, etc.
> Terminal type set to 'wxt'
> gnuplot> set t x11
> Terminal type set to 'x11'
> Options are '0'
> gnuplot> plot sin(x)
> gnuplot> set terminal epslatex standalone
> Terminal type set to 'epslatex'
> Options are ' leveldefault monochrome blacktext \
> dashed dashlength 1.0 linewidth 1.0 butt \
> palfuncparam 2000,0.003 \
> noheader "" 11 '
> gnuplot> set o 'good.tex'
> gnuplot> replot
OK. At this point you have opened an latex file and written
one plot to it. The program does not know if you are going
to add any additional plots, so it still has the file open and
has not yet written the close document statements.
At this point the end of the *.tex file looks like this:
\gplgaddtomacro\gplfronttext{%
\csname LTb\endcsname%
\put(5971,4603){\makebox(0,0)[r]{\strut{}sin(x)}}%
}%
If you now do
> gnuplot> set term ... anything
or
> gnuplot> set output ... anything
The program now knows no more plots will be written to the
previous output file. So it finishes off the previous output
file and closes it. At this point the end of the *.tex file
looks like this:
\gplgaddtomacro\gplfronttext{%
\csname LTb\endcsname%
\put(5971,4603){\makebox(0,0)[r]{\strut{}sin(x)}}%
}%
\gplbacktext
\put(0,0){\includegraphics{good-inc}}%
\gplfronttext
\end{picture}%
\endgroup
\end{document}
--
Ethan A Merritt
|
|
From: Philipp K. J. <ja...@ie...> - 2007-11-20 23:39:08
|
I made a mistake when pasting the gnuplot
session in the previous email. The problem is
NOT a missing "replot" command. Let me try
again - as you can see the problem is specific
to a plot to wxt preceding the plot to epslatex.
It does not happen when plotting to X11 first.
===================================
Bad Session:
Terminal type set to 'wxt'
gnuplot> plot sin(x)
gnuplot> set t epslatex standalone
Terminal type set to 'epslatex'
Options are ' leveldefault monochrome blacktext \
dashed dashlength 1.0 linewidth 1.0 butt \
palfuncparam 2000,0.003 \
noheader "" 11 '
gnuplot> set o "broken.tex"
gnuplot> replot
gnuplot> exit
Segmentation fault
janert/FOO> latex broken.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./broken.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman,
b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto,
e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk,
polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish,
tur
kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/minimal.cls
Document Class: minimal 2001/05/25 Standard LaTeX minimal class
) (/usr/share/texmf/tex/latex/base/size11.clo)
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/graphics/graphics.cfg)
(/usr/share/texmf/tex/latex/graphics/dvips.def)))
(/usr/share/texmf/tex/latex/graphics/color.sty
(/usr/share/texmf/tex/latex/graphics/color.cfg)
(/usr/share/texmf/tex/latex/graphics/dvipsnam.def))
(/usr/share/texmf/tex/latex/geometry/geometry.sty
(/usr/share/texmf/tex/latex/geometry/geometry.cfg))
No configuration file gnuplot.cfg found.
No file broken.aux.
)
*! Interruption.
<*>
? x
No pages of output.
Transcript written on broken.log.
=================================
Good Session
Terminal type set to 'wxt'
gnuplot> set t x11
Terminal type set to 'x11'
Options are '0'
gnuplot> plot sin(x)
gnuplot> set t epslatex standalone
Terminal type set to 'epslatex'
Options are ' leveldefault monochrome blacktext \
dashed dashlength 1.0 linewidth 1.0 butt \
palfuncparam 2000,0.003 \
noheader "" 11 '
gnuplot> set o "good.tex"
gnuplot> replot
gnuplot>
janert/FOO> latex good.tex
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./good.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman,
b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto,
e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk,
polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish,
tur
kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/minimal.cls
Document Class: minimal 2001/05/25 Standard LaTeX minimal class
) (/usr/share/texmf/tex/latex/base/size11.clo)
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/graphics/graphics.cfg)
(/usr/share/texmf/tex/latex/graphics/dvips.def)))
(/usr/share/texmf/tex/latex/graphics/color.sty
(/usr/share/texmf/tex/latex/graphics/color.cfg)
(/usr/share/texmf/tex/latex/graphics/dvipsnam.def))
(/usr/share/texmf/tex/latex/geometry/geometry.sty
(/usr/share/texmf/tex/latex/geometry/geometry.cfg))
No configuration file gnuplot.cfg found.
No file good.aux.
<good-inc.eps> [1] (./good.aux) )
Output written on good.dvi (1 page, 692 bytes).
Transcript written on good.log.
On Tuesday 20 November 2007 15:24, Ethan Merritt wrote:
> On Tuesday 20 November 2007 14:23, Philipp K. Janert wrote:
> > Basically, if I have plotted a graph to wxt, then
> > the files written later (in the same session)
> > using epslatex seem to be incomplete.
>
> It is not a question of what terminal came before,
> but rather a question of what happened after.
> (unless, of course, there is indeed a bug we don't know about)
>
> > This does also not occur if I plot to wxt, then
> > plot to epslatex, then plot AGAIN to wxt.
> > Apparently, resetting the terminal and/or
> > the output flushes everything to file...?
>
> Yes. This is known, well-documented, and basically could
> not work any other way. But it doesn't have anything to
> do with wxt.
>
> > And I have not noticed this kind of problem
> > with any other terminal (PNG, Postscript, ...).
>
> It is the same with PostScript, and with any terminal
> type that can produce an output document containing
> more than one plot. PNG is not an example, but this
> would also hit I think SVG, MIF, PDF, etc.
>
> > Terminal type set to 'wxt'
> > gnuplot> set t x11
> > Terminal type set to 'x11'
> > Options are '0'
> > gnuplot> plot sin(x)
> > gnuplot> set terminal epslatex standalone
> > Terminal type set to 'epslatex'
> > Options are ' leveldefault monochrome blacktext \
> > dashed dashlength 1.0 linewidth 1.0 butt \
> > palfuncparam 2000,0.003 \
> > noheader "" 11 '
> > gnuplot> set o 'good.tex'
> > gnuplot> replot
>
> OK. At this point you have opened an latex file and written
> one plot to it. The program does not know if you are going
> to add any additional plots, so it still has the file open and
> has not yet written the close document statements.
> At this point the end of the *.tex file looks like this:
> \gplgaddtomacro\gplfronttext{%
> \csname LTb\endcsname%
> \put(5971,4603){\makebox(0,0)[r]{\strut{}sin(x)}}%
> }%
>
> If you now do
>
> > gnuplot> set term ... anything
>
> or
>
> > gnuplot> set output ... anything
>
> The program now knows no more plots will be written to the
> previous output file. So it finishes off the previous output
> file and closes it. At this point the end of the *.tex file
> looks like this:
> \gplgaddtomacro\gplfronttext{%
> \csname LTb\endcsname%
> \put(5971,4603){\makebox(0,0)[r]{\strut{}sin(x)}}%
> }%
> \gplbacktext
> \put(0,0){\includegraphics{good-inc}}%
> \gplfronttext
> \end{picture}%
> \endgroup
> \end{document}
|
|
From: Ethan M. <merritt@u.washington.edu> - 2007-11-21 00:52:44
|
On Tuesday 20 November 2007 15:39, Philipp K. Janert wrote:
>
> Let me try again - as you can see the problem is specific
> to a plot to wxt preceding the plot to epslatex.
> It does not happen when plotting to X11 first.
>
> ===================================
> Bad Session:
>
> Terminal type set to 'wxt'
> gnuplot> plot sin(x)
> gnuplot> set t epslatex standalone
> Terminal type set to 'epslatex'
> Options are ' leveldefault monochrome blacktext \
> dashed dashlength 1.0 linewidth 1.0 butt \
> palfuncparam 2000,0.003 \
> noheader "" 11 '
> gnuplot> set o "broken.tex"
> gnuplot> replot
> gnuplot> exit
> Segmentation fault
> janert/FOO> latex broken.tex
I don't know what to say.
When I use these commands here, I don't get a segfault and I
get a perfectly usable TeX file.
Tested both with 4.2.2 and with current CVS.
Could you run this under a debugger, or via strace, or even
valgrind, so that we can find out where the segfault happens?
Also the versions of cairo/pango/etc might be relevant.
What is the output of ldd `which gnuplot` ?
> This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
> entering extended mode
> (./broken.tex
> LaTeX2e <2003/12/01>
> (/usr/share/texmf/tex/latex/base/minimal.cls
> Document Class: minimal 2001/05/25 Standard LaTeX minimal class
> ) (/usr/share/texmf/tex/latex/base/size11.clo)
> (/usr/share/texmf/tex/latex/graphics/graphicx.sty
> (/usr/share/texmf/tex/latex/graphics/keyval.sty)
> (/usr/share/texmf/tex/latex/graphics/graphics.sty
> (/usr/share/texmf/tex/latex/graphics/trig.sty)
> (/usr/share/texmf/tex/latex/graphics/graphics.cfg)
> (/usr/share/texmf/tex/latex/graphics/dvips.def)))
> (/usr/share/texmf/tex/latex/graphics/color.sty
> (/usr/share/texmf/tex/latex/graphics/color.cfg)
> (/usr/share/texmf/tex/latex/graphics/dvipsnam.def))
> (/usr/share/texmf/tex/latex/geometry/geometry.sty
> (/usr/share/texmf/tex/latex/geometry/geometry.cfg))
> No configuration file gnuplot.cfg found.
That looks like a legitimate error message, though.
Do you in fact have gnuplot.cfg installed somewhere that
LaTeX knows about?
Ethan
> No file broken.aux.
> )
> *! Interruption.
> <*>
>
> ? x
> No pages of output.
> Transcript written on broken.log.
>
> =================================
> Good Session
>
> Terminal type set to 'wxt'
> gnuplot> set t x11
> Terminal type set to 'x11'
> Options are '0'
> gnuplot> plot sin(x)
> gnuplot> set t epslatex standalone
> Terminal type set to 'epslatex'
> Options are ' leveldefault monochrome blacktext \
> dashed dashlength 1.0 linewidth 1.0 butt \
> palfuncparam 2000,0.003 \
> noheader "" 11 '
> gnuplot> set o "good.tex"
> gnuplot> replot
> gnuplot>
> janert/FOO> latex good.tex
> This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
> entering extended mode
> (./good.tex
> LaTeX2e <2003/12/01>
> Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman,
> b
> ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto,
> e
> stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk,
> polis
> h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish,
> tur
> kish, ukrainian, nohyphenation, loaded.
> (/usr/share/texmf/tex/latex/base/minimal.cls
> Document Class: minimal 2001/05/25 Standard LaTeX minimal class
> ) (/usr/share/texmf/tex/latex/base/size11.clo)
> (/usr/share/texmf/tex/latex/graphics/graphicx.sty
> (/usr/share/texmf/tex/latex/graphics/keyval.sty)
> (/usr/share/texmf/tex/latex/graphics/graphics.sty
> (/usr/share/texmf/tex/latex/graphics/trig.sty)
> (/usr/share/texmf/tex/latex/graphics/graphics.cfg)
> (/usr/share/texmf/tex/latex/graphics/dvips.def)))
> (/usr/share/texmf/tex/latex/graphics/color.sty
> (/usr/share/texmf/tex/latex/graphics/color.cfg)
> (/usr/share/texmf/tex/latex/graphics/dvipsnam.def))
> (/usr/share/texmf/tex/latex/geometry/geometry.sty
> (/usr/share/texmf/tex/latex/geometry/geometry.cfg))
> No configuration file gnuplot.cfg found.
> No file good.aux.
> <good-inc.eps> [1] (./good.aux) )
> Output written on good.dvi (1 page, 692 bytes).
> Transcript written on good.log.
>
>
>
>
> On Tuesday 20 November 2007 15:24, Ethan Merritt wrote:
> > On Tuesday 20 November 2007 14:23, Philipp K. Janert wrote:
> > > Basically, if I have plotted a graph to wxt, then
> > > the files written later (in the same session)
> > > using epslatex seem to be incomplete.
> >
> > It is not a question of what terminal came before,
> > but rather a question of what happened after.
> > (unless, of course, there is indeed a bug we don't know about)
> >
> > > This does also not occur if I plot to wxt, then
> > > plot to epslatex, then plot AGAIN to wxt.
> > > Apparently, resetting the terminal and/or
> > > the output flushes everything to file...?
> >
> > Yes. This is known, well-documented, and basically could
> > not work any other way. But it doesn't have anything to
> > do with wxt.
> >
> > > And I have not noticed this kind of problem
> > > with any other terminal (PNG, Postscript, ...).
> >
> > It is the same with PostScript, and with any terminal
> > type that can produce an output document containing
> > more than one plot. PNG is not an example, but this
> > would also hit I think SVG, MIF, PDF, etc.
> >
> > > Terminal type set to 'wxt'
> > > gnuplot> set t x11
> > > Terminal type set to 'x11'
> > > Options are '0'
> > > gnuplot> plot sin(x)
> > > gnuplot> set terminal epslatex standalone
> > > Terminal type set to 'epslatex'
> > > Options are ' leveldefault monochrome blacktext \
> > > dashed dashlength 1.0 linewidth 1.0 butt \
> > > palfuncparam 2000,0.003 \
> > > noheader "" 11 '
> > > gnuplot> set o 'good.tex'
> > > gnuplot> replot
> >
> > OK. At this point you have opened an latex file and written
> > one plot to it. The program does not know if you are going
> > to add any additional plots, so it still has the file open and
> > has not yet written the close document statements.
> > At this point the end of the *.tex file looks like this:
> > \gplgaddtomacro\gplfronttext{%
> > \csname LTb\endcsname%
> > \put(5971,4603){\makebox(0,0)[r]{\strut{}sin(x)}}%
> > }%
> >
> > If you now do
> >
> > > gnuplot> set term ... anything
> >
> > or
> >
> > > gnuplot> set output ... anything
> >
> > The program now knows no more plots will be written to the
> > previous output file. So it finishes off the previous output
> > file and closes it. At this point the end of the *.tex file
> > looks like this:
> > \gplgaddtomacro\gplfronttext{%
> > \csname LTb\endcsname%
> > \put(5971,4603){\makebox(0,0)[r]{\strut{}sin(x)}}%
> > }%
> > \gplbacktext
> > \put(0,0){\includegraphics{good-inc}}%
> > \gplfronttext
> > \end{picture}%
> > \endgroup
> > \end{document}
>
--
Ethan A Merritt Courier Deliveries: 1959 NE Pacific
Dept of Biochemistry
Health Sciences Building
University of Washington - Seattle WA 98195-7742
|
|
From: Philipp K. J. <ja...@ie...> - 2007-11-21 01:17:30
|
Right. I think you mentioned to me once that the
segfaulting problem might have something to do
with the version of libc or another system library,
rather than with wxt itself. (I am running OpenSuse
10.3 on Intel Duo 64 bit. And I am compiling
gnuplot from CVS.)
Below is the ldd output. Hope that helps.
libreadline.so.5 => /lib64/libreadline.so.5 (0x00002b4565875000)
libncurses.so.5 => /lib64/libncurses.so.5 (0x00002b4565ab3000)
libz.so.1 => /lib64/libz.so.1 (0x00002b4565d17000)
libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002b4565f2d000)
libXpm.so.4 => /usr/lib64/libXpm.so.4 (0x00002b4566181000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00002b4566392000)
libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002b45666cd000)
libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1
(0x00002b45668ef000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002b4566b23000)
libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002b4566d9f000)
libwx_gtk2u-2.8.so.0 => /usr/lib64/libwx_gtk2u-2.8.so.0
(0x00002b4566fc4000)
libpangocairo-1.0.so.0 => /opt/gnome/lib64/libpangocairo-1.0.so.0
(0x00002b4567aaa000)
libpango-1.0.so.0 => /opt/gnome/lib64/libpango-1.0.so.0
(0x00002b4567cb5000)
libcairo.so.2 => /usr/lib64/libcairo.so.2 (0x00002b4567ef5000)
libgobject-2.0.so.0 => /opt/gnome/lib64/libgobject-2.0.so.0
(0x00002b4568163000)
libgmodule-2.0.so.0 => /opt/gnome/lib64/libgmodule-2.0.so.0
(0x00002b45683a6000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002b45685aa000)
libglib-2.0.so.0 => /opt/gnome/lib64/libglib-2.0.so.0
(0x00002b45687ae000)
libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00002b4568a51000)
libglitz.so.1 => /usr/lib64/libglitz.so.1 (0x00002b4568c75000)
libm.so.6 => /lib64/libm.so.6 (0x00002b4568e9f000)
libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00002b45690f6000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b4569300000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00002b456951b000)
libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00002b456971f000)
libgtk-x11-2.0.so.0 => /opt/gnome/lib64/libgtk-x11-2.0.so.0
(0x00002b4569925000)
libgdk-x11-2.0.so.0 => /opt/gnome/lib64/libgdk-x11-2.0.so.0
(0x00002b4569eaa000)
libatk-1.0.so.0 => /opt/gnome/lib64/libatk-1.0.so.0
(0x00002b456a140000)
libgdk_pixbuf-2.0.so.0 => /opt/gnome/lib64/libgdk_pixbuf-2.0.so.0
(0x00002b456a360000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002b456a578000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b456a877000)
libc.so.6 => /lib64/libc.so.6 (0x00002b456aa85000)
libgthread-2.0.so.0 => /opt/gnome/lib64/libgthread-2.0.so.0
(0x00002b456adc8000)
libXinerama.so.1 => /usr/lib64/libXinerama.so.1 (0x00002b456afcd000)
libSM.so.6 => /usr/lib64/libSM.so.6 (0x00002b456b1d0000)
libtiff.so.3 => /usr/lib64/libtiff.so.3 (0x00002b456b3dc000)
libSDL-1.2.so.0 => /usr/lib64/libSDL-1.2.so.0 (0x00002b456b636000)
libpangoft2-1.0.so.0 => /opt/gnome/lib64/libpangoft2-1.0.so.0
(0x00002b456b8cd000)
librt.so.1 => /lib64/librt.so.1 (0x00002b456bafc000)
/lib64/ld-linux-x86-64.so.2 (0x00002b4565657000)
libXi.so.6 => /usr/lib64/libXi.so.6 (0x00002b456bd06000)
libXrandr.so.2 => /usr/lib64/libXrandr.so.2 (0x00002b456bf0f000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00002b456c114000)
libXcursor.so.1 => /usr/lib64/libXcursor.so.1 (0x00002b456c325000)
libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00002b456c530000)
libICE.so.6 => /usr/lib64/libICE.so.6 (0x00002b456c737000)
libasound.so.2 => /usr/lib64/libasound.so.2 (0x00002b456c953000)
libaa.so.1 => /usr/lib64/libaa.so.1 (0x00002b456cc1e000)
libgpm.so.1 => /usr/lib64/libgpm.so.1 (0x00002b456ce3c000)
On Tuesday 20 November 2007 16:52, Ethan Merritt wrote:
> On Tuesday 20 November 2007 15:39, Philipp K. Janert wrote:
> > Let me try again - as you can see the problem is specific
> > to a plot to wxt preceding the plot to epslatex.
> > It does not happen when plotting to X11 first.
> >
> > ===================================
> > Bad Session:
> >
> > Terminal type set to 'wxt'
> > gnuplot> plot sin(x)
> > gnuplot> set t epslatex standalone
> > Terminal type set to 'epslatex'
> > Options are ' leveldefault monochrome blacktext \
> > dashed dashlength 1.0 linewidth 1.0 butt \
> > palfuncparam 2000,0.003 \
> > noheader "" 11 '
> > gnuplot> set o "broken.tex"
> > gnuplot> replot
> > gnuplot> exit
> > Segmentation fault
> > janert/FOO> latex broken.tex
>
> I don't know what to say.
> When I use these commands here, I don't get a segfault and I
> get a perfectly usable TeX file.
>
> Tested both with 4.2.2 and with current CVS.
>
> Could you run this under a debugger, or via strace, or even
> valgrind, so that we can find out where the segfault happens?
>
> Also the versions of cairo/pango/etc might be relevant.
> What is the output of ldd `which gnuplot` ?
>
> > This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
> > entering extended mode
> > (./broken.tex
> > LaTeX2e <2003/12/01>
> > (/usr/share/texmf/tex/latex/base/minimal.cls
> > Document Class: minimal 2001/05/25 Standard LaTeX minimal class
> > ) (/usr/share/texmf/tex/latex/base/size11.clo)
> > (/usr/share/texmf/tex/latex/graphics/graphicx.sty
> > (/usr/share/texmf/tex/latex/graphics/keyval.sty)
> > (/usr/share/texmf/tex/latex/graphics/graphics.sty
> > (/usr/share/texmf/tex/latex/graphics/trig.sty)
> > (/usr/share/texmf/tex/latex/graphics/graphics.cfg)
> > (/usr/share/texmf/tex/latex/graphics/dvips.def)))
> > (/usr/share/texmf/tex/latex/graphics/color.sty
> > (/usr/share/texmf/tex/latex/graphics/color.cfg)
> > (/usr/share/texmf/tex/latex/graphics/dvipsnam.def))
> > (/usr/share/texmf/tex/latex/geometry/geometry.sty
> > (/usr/share/texmf/tex/latex/geometry/geometry.cfg))
> > No configuration file gnuplot.cfg found.
>
> That looks like a legitimate error message, though.
> Do you in fact have gnuplot.cfg installed somewhere that
> LaTeX knows about?
>
>
> Ethan
>
> > No file broken.aux.
> > )
> > *! Interruption.
> > <*>
> >
> > ? x
> > No pages of output.
> > Transcript written on broken.log.
> >
> > =================================
> > Good Session
> >
> > Terminal type set to 'wxt'
> > gnuplot> set t x11
> > Terminal type set to 'x11'
> > Options are '0'
> > gnuplot> plot sin(x)
> > gnuplot> set t epslatex standalone
> > Terminal type set to 'epslatex'
> > Options are ' leveldefault monochrome blacktext \
> > dashed dashlength 1.0 linewidth 1.0 butt \
> > palfuncparam 2000,0.003 \
> > noheader "" 11 '
> > gnuplot> set o "good.tex"
> > gnuplot> replot
> > gnuplot>
> > janert/FOO> latex good.tex
> > This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
> > entering extended mode
> > (./good.tex
> > LaTeX2e <2003/12/01>
> > Babel <v3.8d> and hyphenation patterns for american, french, german,
> > ngerman, b
> > ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch,
> > esperanto, e
> > stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk,
> > polis
> > h, portuges, romanian, russian, serbian, slovak, slovene, spanish,
> > swedish, tur
> > kish, ukrainian, nohyphenation, loaded.
> > (/usr/share/texmf/tex/latex/base/minimal.cls
> > Document Class: minimal 2001/05/25 Standard LaTeX minimal class
> > ) (/usr/share/texmf/tex/latex/base/size11.clo)
> > (/usr/share/texmf/tex/latex/graphics/graphicx.sty
> > (/usr/share/texmf/tex/latex/graphics/keyval.sty)
> > (/usr/share/texmf/tex/latex/graphics/graphics.sty
> > (/usr/share/texmf/tex/latex/graphics/trig.sty)
> > (/usr/share/texmf/tex/latex/graphics/graphics.cfg)
> > (/usr/share/texmf/tex/latex/graphics/dvips.def)))
> > (/usr/share/texmf/tex/latex/graphics/color.sty
> > (/usr/share/texmf/tex/latex/graphics/color.cfg)
> > (/usr/share/texmf/tex/latex/graphics/dvipsnam.def))
> > (/usr/share/texmf/tex/latex/geometry/geometry.sty
> > (/usr/share/texmf/tex/latex/geometry/geometry.cfg))
> > No configuration file gnuplot.cfg found.
> > No file good.aux.
> > <good-inc.eps> [1] (./good.aux) )
> > Output written on good.dvi (1 page, 692 bytes).
> > Transcript written on good.log.
> >
> > On Tuesday 20 November 2007 15:24, Ethan Merritt wrote:
> > > On Tuesday 20 November 2007 14:23, Philipp K. Janert wrote:
> > > > Basically, if I have plotted a graph to wxt, then
> > > > the files written later (in the same session)
> > > > using epslatex seem to be incomplete.
> > >
> > > It is not a question of what terminal came before,
> > > but rather a question of what happened after.
> > > (unless, of course, there is indeed a bug we don't know about)
> > >
> > > > This does also not occur if I plot to wxt, then
> > > > plot to epslatex, then plot AGAIN to wxt.
> > > > Apparently, resetting the terminal and/or
> > > > the output flushes everything to file...?
> > >
> > > Yes. This is known, well-documented, and basically could
> > > not work any other way. But it doesn't have anything to
> > > do with wxt.
> > >
> > > > And I have not noticed this kind of problem
> > > > with any other terminal (PNG, Postscript, ...).
> > >
> > > It is the same with PostScript, and with any terminal
> > > type that can produce an output document containing
> > > more than one plot. PNG is not an example, but this
> > > would also hit I think SVG, MIF, PDF, etc.
> > >
> > > > Terminal type set to 'wxt'
> > > > gnuplot> set t x11
> > > > Terminal type set to 'x11'
> > > > Options are '0'
> > > > gnuplot> plot sin(x)
> > > > gnuplot> set terminal epslatex standalone
> > > > Terminal type set to 'epslatex'
> > > > Options are ' leveldefault monochrome blacktext \
> > > > dashed dashlength 1.0 linewidth 1.0 butt \
> > > > palfuncparam 2000,0.003 \
> > > > noheader "" 11 '
> > > > gnuplot> set o 'good.tex'
> > > > gnuplot> replot
> > >
> > > OK. At this point you have opened an latex file and written
> > > one plot to it. The program does not know if you are going
> > > to add any additional plots, so it still has the file open and
> > > has not yet written the close document statements.
> > > At this point the end of the *.tex file looks like this:
> > > \gplgaddtomacro\gplfronttext{%
> > > \csname LTb\endcsname%
> > > \put(5971,4603){\makebox(0,0)[r]{\strut{}sin(x)}}%
> > > }%
> > >
> > > If you now do
> > >
> > > > gnuplot> set term ... anything
> > >
> > > or
> > >
> > > > gnuplot> set output ... anything
> > >
> > > The program now knows no more plots will be written to the
> > > previous output file. So it finishes off the previous output
> > > file and closes it. At this point the end of the *.tex file
> > > looks like this:
> > > \gplgaddtomacro\gplfronttext{%
> > > \csname LTb\endcsname%
> > > \put(5971,4603){\makebox(0,0)[r]{\strut{}sin(x)}}%
> > > }%
> > > \gplbacktext
> > > \put(0,0){\includegraphics{good-inc}}%
> > > \gplfronttext
> > > \end{picture}%
> > > \endgroup
> > > \end{document}
|
|
From: Richard H. <r.h...@rl...> - 2007-11-21 09:12:34
|
Philipp K. Janert wrote: > > I made a mistake when pasting the gnuplot > session in the previous email. The problem is > NOT a missing "replot" command. Let me try > again - as you can see the problem is specific > to a plot to wxt preceding the plot to epslatex. > It does not happen when plotting to X11 first. > > =================================== > Bad Session: > > Terminal type set to 'wxt' > gnuplot> plot sin(x) > gnuplot> set t epslatex standalone > Terminal type set to 'epslatex' > Options are ' leveldefault monochrome blacktext \ > dashed dashlength 1.0 linewidth 1.0 butt \ > palfuncparam 2000,0.003 \ > noheader "" 11 ' > gnuplot> set o "broken.tex" > gnuplot> replot at this point, maybe you could try: gnuplot> set output which will tell gnuplot to finalise all the open file(s). r, |
|
From: Philipp K. J. <ja...@ie...> - 2007-11-22 02:41:54
|
Yes, you are right. That does work and flushes the remainders to file. Still, this is only necessary when I had used wxt before - which seems to be undesirable behaviour. (Certainly not the highest priority bug in the world, although it took me quite a while to figure out exactly WHAT went wrong for me with epslatex. Now at least it is documented...) Best, Ph. On Wednesday 21 November 2007 01:12, Richard Henwood wrote: > Philipp K. Janert wrote: > > I made a mistake when pasting the gnuplot > > session in the previous email. The problem is > > NOT a missing "replot" command. Let me try > > again - as you can see the problem is specific > > to a plot to wxt preceding the plot to epslatex. > > It does not happen when plotting to X11 first. > > > > =================================== > > Bad Session: > > > > Terminal type set to 'wxt' > > gnuplot> plot sin(x) > > gnuplot> set t epslatex standalone > > Terminal type set to 'epslatex' > > Options are ' leveldefault monochrome blacktext \ > > dashed dashlength 1.0 linewidth 1.0 butt \ > > palfuncparam 2000,0.003 \ > > noheader "" 11 ' > > gnuplot> set o "broken.tex" > > gnuplot> replot > > at this point, maybe you could try: > gnuplot> set output > which will tell gnuplot to finalise all the open file(s). > > r, > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |