[pstricks] apparent postscript-induced crash
Zbigniew Nitecki
zbigniew.nitecki at tufts.edu
Mon Jan 4 19:51:48 CET 2010
I don't understand what is going on here. The following code...
*****************************************************************
%!TEX TS-program = latex
\listfiles
\documentclass[11pt]{article}
\usepackage{pst-plot, pst-math, pst-3dplot}
\usepackage{pst-grad, pst-func, pst-text}
\usepackage{pstricks-add}
\begin{document}
\begin{figure}[htbp]
\begin{center}
\begin{pspicture}(-1.5,-1.5)(1.5,3)
\psset{Alpha=-70}
\pstThreeDCoor[xMin=0, xMax=2.5, yMin=0, yMax=2.5, zMin=0, zMax=3]
\multido{\rt=0+5}{19}{%
\parametricplotThreeD(0.1,2){%
\rt\space cos t mul %
\rt\space sin t mul %
4 t dup mul sub 0.5 exp%
}
\parametricplotThreeD(0.1,1){%
\rt\space cos t mul %
\rt\space sin t mul %
1 t dup mul sub 0.5 exp%
}
}
\end{pspicture}
\caption{Shell in first octant}
\label{fig:sphereshell}
\end{center}
\end{figure}
\end{document}
**************************************************************************
...crashes:
*****************************************
### This is /usr/texbin/simpdftex, Version 20070809
### /usr/texbin/latex picturetestx.tex
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
entering extended mode
(./picturetestx.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax,
dumylang, noh
yphenation, german-x-2009-06-19, ngerman-x-2009-06-19, ancientgreek,
ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech,
danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german,
ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish,
italian, ku
rmanji, latin, latvian, lithuanian, mongolian, mongolian2a, bokmal,
nynorsk, po
lish, portuguese, romanian, russian, sanskrit, serbian, slovak,
slovenian, span
ish, swedish, turkish, ukenglish, ukrainian, uppersorbian, welsh,
loaded.
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/size11.clo))
(/usr/local/texlive/2009/texmf-dist/tex/latex/pstricks/pst-plot.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/pstricks/pstricks.sty
(/usr/local/texlive/2009/texmf-dist/tex/generic/pstricks/pstricks.tex
`PSTricks' v1.29 <2009/05/19> (tvz)
(/usr/local/texlive/2009/texmf-dist/tex/generic/pstricks/pstricks.con))
(/usr/local/texlive/2009/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/dvips.def)))
(/usr/local/texlive/2009/texmf-dist/tex/generic/pstricks/pst-plot.tex
(/usr/local/texlive/2009/texmf-dist/tex/generic/multido/multido.tex
v1.41, 2004/05/18 <tvz>) v1.04, 2009/06/08))
(/usr/local/texlive/2009/texmf-dist/tex/latex/pst-math/pst-math.sty
(/usr/local/texlive/2009/texmf-dist/tex/generic/pst-math/pst-math.tex
`pst-math' v0.23 , (CJ,hv)))
(/usr/local/texlive/2009/texmf-dist/tex/latex/pst-3dplot/pst-3dplot.sty
(/usr/local/texlive/2009/texmf-dist/tex/generic/pst-3dplot/
pst-3dplot.tex
(/usr/local/texlive/2009/texmf-dist/tex/generic/pst-3d/pst-3d.tex
(/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/usr/local/texlive/2009/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2009/texmf-dist/tex/generic/xkeyval/keyval.tex))))
`PST-3d' v1.00, 2005/09/03 (tvz))
(/usr/local/texlive/2009/texmf-dist/tex/generic/pstricks-add/pstricks-
add.tex
(/usr/local/texlive/2009/texmf-dist/tex/generic/pstricks/pst-node.tex
v1.01, 2008/11/26)
(/usr/local/texlive/2009/texmf-dist/tex/generic/pstricks-add/pst-fp.tex
`pst-fp' v0.02, 2009/04/02 (hv)) `pstricks-add' v3.35, 2009/10/12
(dr,hv))
(/usr/local/texlive/2009/texmf-dist/tex/generic/multido/multido.tex
v1.41, 2004/05/18 <tvz>) `PST-3dplot' v1.86, 2009/10/06 (HV,DL)))
(/usr/local/texlive/2009/texmf-dist/tex/latex/pst-grad/pst-grad.sty
(/usr/local/texlive/2009/texmf-dist/tex/generic/pst-grad/pst-grad.tex
`pst-grad' v1.06, 2006/11/27 (tvz,dg,hv)))
(/usr/local/texlive/2009/texmf-dist/tex/latex/pst-func/pst-func.sty
(/usr/local/texlive/2009/texmf-dist/tex/generic/pst-func/pst-func.tex
`PST-func' v0.60, 2009/10/08 (hv)))
(/usr/local/texlive/2009/texmf-dist/tex/latex/pst-text/pst-text.sty
(/usr/local/texlive/2009/texmf-dist/tex/generic/pst-text/pst-text.tex
v1.00, 2006/11/05(tvz,hv)))
(/usr/local/texlive/2009/texmf-dist/tex/latex/pstricks-add/pstricks-
add.sty
(/usr/local/texlive/2009/texmf-dist/tex/generic/pstricks-add/pstricks-
add.tex))
(./picturetestx.aux) [1] (./picturetestx.aux)
*File List*
article.cls 2007/10/19 v1.4h Standard LaTeX document class
size11.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
pst-plot.sty 2004/07/15 package wrapper for pst-plot.tex
pstricks.sty 2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2009/05/19 v1.29 `PSTricks' (tvz,hv)
xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)
color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pst-plot.tex 2009/06/08 1.04 `pst-plot' (tvz)
pst-math.sty 2009/01/20 package wrapper for PSTricks pst-math.tex
pst-3dplot.sty 2009/07/28 package wrapper for pst-3dplot.tex (hv)
pst-3dplot.tex 2009/10/06 v1.86 `PST-3dplot' (hv)
pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
xkeyval.sty 2008/08/13 v2.6a package option processing (HA)
xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)
pst-grad.sty 2004/07/15 package wrapper for pst-grad.tex (hv)
pst-grad.tex 2006/11/27 1.06 `pst-grad' (tvz)
pst-func.sty 2008/03/21 package wrapper for pst-func.tex (hv)
pst-func.tex 2009/10/08 v0.60 `PST-func' (hv)
pst-text.sty 2006/01/01 package wrapper for pst-text.tex (hv)
pst-text.tex 2006/11/05 1.00 `pst-text' (tvz)
pstricks-add.sty 2009/03/17 v. 0.13 package wrapper for pstricks-
add.tex (hv
)
pstricks-add.tex 2006/11/05 v1.00 `PSTricks-add' (hv)
***********
)
Output written on picturetestx.dvi (1 page, 83400 bytes).
Transcript written on picturetestx.log.
### /usr/texbin/dvips -R -Poutline -o /tmp/altpdflatex.
12351-1262630704/picturetestx.ps picturetestx.dvi
This is dvips(k) 5.98 Copyright 2009 Radical Eye Software (www.radicaleye.com
)
' TeX output 2010.01.04:1345' -> /tmp/altpdflatex.12351-1262630704/
picturetestx.ps
</usr/local/texlive/2009/texmf/dvips/base/tex.pro>
</usr/local/texlive/2009/texmf-dist/dvips/pstricks/pstricks.pro>
</usr/local/texlive/2009/texmf-dist/dvips/pstricks/pst-algparser.pro>
</usr/local/texlive/2009/texmf-dist/dvips/pstricks/pst-dots.pro>
</usr/local/texlive/2009/texmf-dist/dvips/pst-math/pst-math.pro>
</usr/local/texlive/2009/texmf-dist/dvips/pstricks/pst-node.pro>
</usr/local/texlive/2009/texmf-dist/dvips/pstricks-add/pstricks-add.pro>
</usr/local/texlive/2009/texmf-dist/dvips/pst-3dplot/pst-3dplot.pro>
</usr/local/texlive/2009/texmf-dist/dvips/pst-grad/pst-grad.pro>
</usr/local/texlive/2009/texmf-dist/dvips/pst-func/pst-func.pro>
</usr/local/texlive/2009/texmf-dist/dvips/pst-text/pst-text.pro>
</usr/local/texlive/2009/texmf/dvips/base/texps.pro>
</usr/local/texlive/2009/texmf/dvips/base/special.pro>
</usr/local/texlive/2009/texmf/dvips/base/color.pro>.
</usr/local/texlive/2009/texmf-dist/fonts/type1/public/amsfonts/cm/
cmr10.pfb>
</usr/local/texlive/2009/texmf-dist/fonts/type1/public/amsfonts/cm/
cmmi10.pfb>
[1]
### ps2pdf13 /tmp/altpdflatex.12351-1262630704/picturetestx.ps /tmp/
altpdflatex.12351-1262630704/picturetestx.pdf
Error: /undefinedresult in --exp--
Operand stack:
1.0 0.0 -4.76837e-07 0.5
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --
nostringval-- 2 %stopped_push --nostringval-- --
nostringval-- --nostringval-- false 1 %stopped_push 1862
1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3
%oparray_pop 1739 1 3 %oparray_pop --nostringval--
%errorexec_pop .runexec2 --nostringval-- --nostringval-- --
nostringval-- 2 %stopped_push --nostringval-- 0 --
nostringval-- %repeat_continue --nostringval-- 0 --
nostringval-- %repeat_continue --nostringval-- --nostringval--
Dictionary stack:
--dict:1150/1684(ro)(G)-- --dict:0/20(G)-- --dict:116/200
(L)-- --dict:176/300(L)-- --dict:38/200(L)-- --dict:144/200(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 205883
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
### FAILED to generate /tmp/altpdflatex.12351-1262630704/
picturetestx.pdf ()
**************************************************************************************
But when I comment out the second parametricplotThreeD:
********************************************************************
%!TEX TS-program = latex
\listfiles
\documentclass[11pt]{article}
\usepackage{pst-plot, pst-math, pst-3dplot}
\usepackage{pst-grad, pst-func, pst-text}
\usepackage{pstricks-add}
\begin{document}
\begin{figure}[htbp]
\begin{center}
\begin{pspicture}(-1.5,-1.5)(1.5,3)
\psset{Alpha=-70}
\pstThreeDCoor[xMin=0, xMax=2.5, yMin=0, yMax=2.5, zMin=0, zMax=3]
\multido{\rt=0+5}{19}{%
\parametricplotThreeD(0.1,2){%
\rt\space cos t mul %
\rt\space sin t mul %
4 t dup mul sub 0.5 exp%
}
% \parametricplotThreeD(0.1,1){%
% \rt\space cos t mul %
% \rt\space sin t mul %
% 1 t dup mul sub 0.5 exp%
% }
}
\end{pspicture}
\caption{Shell in first octant}
\label{fig:sphereshell}
\end{center}
\end{figure}
\end{document}
***************************************************************************************
it works fine:
Finally, if I change the initial value of t in the
parametricplotThreeD to zero
\multido{\rt=0+5}{19}{%
\parametricplotThreeD(0,2){%
\rt\space cos t mul %
\rt\space sin t mul %
4 t dup mul sub 0.5 exp%
}
it crashes again.
I don't see any significant difference between the two
parametricplotThreeD commands, so
why does one of them work while the other doesn't?
Also, why would t=0 crash?
Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155
telephones:
Office (617)627-3843
Dept. (617)627-3234
Dept. fax (617)627-3966
http://www.tufts.edu/~znitecki/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100104/b70ffe21/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: picturetestx.pdf
Type: application/pdf
Size: 9141 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20100104/b70ffe21/attachment-0001.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100104/b70ffe21/attachment-0003.html>
More information about the PSTricks
mailing list