Discussion:
[tex-k] Bug or clarification? "/undefined in uageLevel"
Komarov, Oleg
2014-10-21 10:58:54 UTC
Permalink
Hi,

I am simply calling "epstopdf a.eps" and I get the following output:


Error: /undefined in uageLevel:
Operand stack:

Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- --nostringval-- --nostringval-- false 1
%stopped_push 1926 1 3
%oparray_pop 1925 1 3
%oparray_pop --nostringval-- 1909 1 3
%oparray_pop 1803 1 3
%oparray_pop --nostringval--
%errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval--
Dictionary stack:
--dict:1169/1684(ro)(G)-- --dict:0/20(G)-- --dict:81/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
MiKTeX GPL Ghostscript 9.05: Unrecoverable error, exit code 1
epstopdf.exe: Invalid argument


I also posted on http://tex.stackexchange.com/questions/208179/epstopdf-error-undefined-in-uagelevel.

I read that:
The case of "%%BoundingBox: (atend)" when input is not seekable (e.g., from a pipe) is not supported
is that what is happening? I am not sure I understand the meaning of input not seekable (tried to google but still don't get it since I am not using "cmd | cmd" as would be on Linux).

Can you please advise on how to solve this issue?


Thanks for your time


Oleg Komarov
Finance Group - Doctoral Programme Student

Imperial College Business School
Tanaka Building
South Kensington Campus
London SW7 2AZ
E: ***@imperial.ac.uk<mailto:***@imperial.ac.uk>

P please consider the environment - do you really need to print this email?
Arthur Reutenauer
2014-10-21 14:09:15 UTC
Permalink
I am not able to reproduce your problem with the file you attached and
TeX Live 2014; I get a correct PDF file. Do you think your file could
be corrupted? The error message you're getting hints that it could be
truncated somehow: "uageLevel" clearly comes from "LanguageLevel: 3" on
line 7 of your EPS file, but it shouldn't be interpreted by Ghostscript.

Arthur
Komarov, Oleg
2014-10-21 15:19:43 UTC
Permalink
I use the binary in C:\Program Files\MiKTeX 2.9\miktex\bin\x64\epstopdf.exe

Calling:

epstopdf.exe a.esp --nogs

produces the truncated a2.esp (also attached) which ghostscript cannt open. Therefore, it might actually be that Miktex ships with a not compatible binary.

Would you be able to test it with a Miktek distribution (I will try Tex live)?

Best
Oleg
________________________________________
From: Arthur Reutenauer [***@normalesup.org]
Sent: 21 October 2014 15:09
To: Komarov, Oleg
Cc: tex-***@tug.org
Subject: Re: [tex-k] Bug or clarification? "/undefined in uageLevel"

I am not able to reproduce your problem with the file you attached and
TeX Live 2014; I get a correct PDF file. Do you think your file could
be corrupted? The error message you're getting hints that it could be
truncated somehow: "uageLevel" clearly comes from "LanguageLevel: 3" on
line 7 of your EPS file, but it shouldn't be interpreted by Ghostscript.

Arthur
Komarov, Oleg
2014-10-21 15:34:55 UTC
Permalink
Attachment was missing.

Btw, Tex Live 2014 in Win7 64bit?
O
________________________________________
From: Komarov, Oleg
Sent: 21 October 2014 16:19
To: tex-***@tug.org
Subject: RE: [tex-k] Bug or clarification? "/undefined in uageLevel"

I use the binary in C:\Program Files\MiKTeX 2.9\miktex\bin\x64\epstopdf.exe

Calling:

epstopdf.exe a.esp --nogs

produces the truncated a2.esp (also attached) which ghostscript cannt open. Therefore, it might actually be that Miktex ships with a not compatible binary.

Would you be able to test it with a Miktek distribution (I will try Tex live)?

Best
Oleg
________________________________________
From: Arthur Reutenauer [***@normalesup.org]
Sent: 21 October 2014 15:09
To: Komarov, Oleg
Cc: tex-***@tug.org
Subject: Re: [tex-k] Bug or clarification? "/undefined in uageLevel"

I am not able to reproduce your problem with the file you attached and
TeX Live 2014; I get a correct PDF file. Do you think your file could
be corrupted? The error message you're getting hints that it could be
truncated somehow: "uageLevel" clearly comes from "LanguageLevel: 3" on
line 7 of your EPS file, but it shouldn't be interpreted by Ghostscript.

Arthur
Arthur Reutenauer
2014-10-21 17:10:21 UTC
Permalink
Yes indeed, good catch. I don't have access to a PC running MiKTeX
just now, but it would make sense to report the bug to MiKTeX.

TeX Live does run on 64-bits Windows, yes, as well as a number of
other platforms.

Arthur
Christian Zietz
2014-10-21 15:57:17 UTC
Permalink
Oleg,

Komarov, Oleg schrieb:
> I use the binary in C:\Program Files\MiKTeX 2.9\miktex\bin\x64\epstopdf.exe
>
> Calling:
>
> epstopdf.exe a.esp --nogs
>
> produces the truncated a2.esp (also attached) which ghostscript cannt open. Therefore, it might actually be that Miktex ships with a not compatible binary.
>
> Would you be able to test it with a Miktek distribution (I will try Tex live)?

Using MikTeX, I can confirm the error message that you're getting. It
looks like MikTeX's epstopdf.exe garbles your EPS file while processing
it. MikTeX ships its own version of epstopdf, so I think it would be
best if you reported this probable bug there.

Regards,
Christian
--
Christian Zietz - CHZ-Soft - ***@gmx.net
WWW: http://www.chzsoft.de/
PGP/GnuPG-Key-ID: 0x6DA025CA
Christian Zietz
2014-10-21 20:03:04 UTC
Permalink
Oleg,

Komarov, Oleg schrieb:

> I am simply calling "epstopdf a.eps" and I get the following output:
>
> |Error: /undefined in uageLevel:
> Operand stack:

I investigated a little further: It seems that the problem occurs only
with MikTeX epstopdf and only if two things come together:
"%%BoundingBox: (atend)" in the header of the EPS file and Unix-style
line endings, meaning only LF and not CR+LF as it is customary in Windows.

My little example b.eps -- see attachment -- also shows this problem.
You're free to use this file if you choose to file a bug for MikTeX,
which I would recommend.

However, a quick workaround would be to reencode your EPS files to have
Windows-style line endings.

Regards,
Christian
--
Christian Zietz - CHZ-Soft - ***@gmx.net
WWW: http://www.chzsoft.de/
PGP/GnuPG-Key-ID: 0x6DA025CA
Loading...