[gl2ps] File error in ps output
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Wed May 21 19:35:01 CEST 2008
Fergus Ray Murray wrote:
> Sure, try this.
>
It looks like for some reason we get "quiet not a number" errors when
computing the colors: there are lines like these in your .ps file
522.222 50 -1.#QNAN -1.#QNAN -1.#QNAN 527.778 50 -1.#QNAN -1.#QNAN
-1.#QNAN 527.778 55.5557 -1.#QNAN -1.#QNAN -1.#QNAN ST
I don't understand why this happens. I've added a couple of guards for
potential "divide by zero" cases in the code. Could you try tomorrow's
nightly snapshot and tell us if it makes any difference?
Thanks,
Ch.
> Cheers!
>
> - f.
> www.oolong.co.uk <http://www.oolong.co.uk>
>
> 2008/5/21 Christophe Geuzaine <cgeuzaine at ulg.ac.be
> <mailto:cgeuzaine at ulg.ac.be>>:
>
> Fergus Ray Murray wrote:
>
> My program using gl2ps has just started giving me errors in some
> output files, and I have no idea why - it seems to be a recent
> thing, but I haven't edited that part of the program, and other
> output files still seem to work fine.
>
> I don't know if this helps at all, but here's part of the error
> dialog that gsview spews:
>
> Error: /undefined in -1.#QNAN
> Operand stack:
> --dict:1132/1686(ro)(G)-- --nostringval-- 89.7729 524.432
> Execution stack:
> %interp_exit .runexec2 --nostringval-- --nostringval--
> --nostringval-- 2 %stopped_push --nostringval--
> --nostringval-- false 1 %stopped_push 1 3
> %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1
> 3 %oparray_pop .runexec2 --nostringval-- --nostringval--
> --nostringval-- 2 %stopped_push --nostringval--
> Dictionary stack:
> --dict:1132/1686(ro)(G)-- --dict:0/20(G)--
> --dict:75/200(L)-- --dict:39/64(L)--
> Current allocation mode is local
> Last OS error: No such file or directory
>
> --- Begin offending input ---
> 3 T
>
>
> This line looks suspicious. Could you send the complete .ps file?
>
>
> 50 524.432 55.6816 524.432 55.6816 527.273 T
>
>
>
> Cheers!
>
> - f.
> www.oolong.co.uk <http://www.oolong.co.uk> <http://www.oolong.co.uk>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gl2ps mailing list
> gl2ps at geuz.org <mailto:gl2ps at geuz.org>
> http://www.geuz.org/mailman/listinfo/gl2ps
>
>
>
> --
> Prof. Christophe Geuzaine
> University of Liege, Electrical Engineering and Computer Science
> http://www.montefiore.ulg.ac.be/~geuzaine
> <http://www.montefiore.ulg.ac.be/%7Egeuzaine>
>
>
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine