Bug 692472 - Unrecoverable Error Exit Code 1 - Latex (TeXMaker)
Summary: Unrecoverable Error Exit Code 1 - Latex (TeXMaker)
Status: RESOLVED INVALID
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: master
Hardware: PC Windows 7
: P4 normal
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-29 07:00 UTC by Z
Modified: 2011-08-29 07:40 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
TeX file that isn't producing the correct PDF. (2.61 KB, application/octet-stream)
2011-08-29 07:00 UTC, Z
Details
Incorrect PDF (20.56 KB, application/pdf)
2011-08-29 07:01 UTC, Z
Details
TeX with faulty line commented out (2.68 KB, application/octet-stream)
2011-08-29 07:01 UTC, Z
Details
Correct PDF without Plot 1 (28.34 KB, application/pdf)
2011-08-29 07:02 UTC, Z
Details
Plot1 (86 bytes, application/octet-stream)
2011-08-29 07:02 UTC, Z
Details
Plot 2 (159 bytes, application/octet-stream)
2011-08-29 07:02 UTC, Z
Details
Post Script File notworking case (262.72 KB, application/postscript)
2011-08-29 07:19 UTC, Z
Details
Post Script File working case (273.11 KB, application/postscript)
2011-08-29 07:21 UTC, Z
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Z 2011-08-29 07:00:16 UTC
Created attachment 7844 [details]
TeX file that isn't producing the correct PDF.

OK.

I know a little about computers but I'm not savvy enough to sort this one out myself, so it seems. I have tried a few things and I'll outline that here.

Basically, I'm producing a report using LaTeX (MiKTeX 2.9 & TeXMaker). I'm new and loving it, but I've been learning as I go along.

I'm trying to plot some dot graphs using the postscript package graphics and the stuff that comes with it. The issue is that I seem to be able to load one graph, but not the other one. I have attached two (shortened) copies to show the problem. When I run the first graph function, it compiles but with an  error, and then the PDF file only contains the pages before I tried to include that plot. If I exclude the first plot, but include the second one, it runs fine and everything works out.

The attached files have the .tex versions that both work and don't work where I have just commented out the offending line in the version that works.

When I compile I am running LaTeX -> dvips -> ps2pdf
Ghostscript 9.04 & 9.02 (i tried updating gs to see if it helped, it didn't)

I have tried updating ghostscript and using other compilation techniques (such as dvipdfm, pdflatex etc). Only changing one thing at a time to see if it fixed the problem. The other compilation processes produce different results (understandably).

I have also tried other plotting functions within LaTeX (such as data plot) using the same set of numbers and it produces the same error.

I have also attached the relevant PDF files so you can see the output that each comilation produces, as well as the files I am trying to plot from. The first graph should ideally like the second one does in the correct pdf.

I fully realise that it is probably a very simple solution and that I'm likely being quite naive about the situation, but I've spent the last couple of days trying to sort it out myself and I can't find a solution.

EDIT: Apparently I can only add 1 attachment at a time
Comment 1 Z 2011-08-29 07:01:00 UTC
Created attachment 7845 [details]
Incorrect PDF
Comment 2 Z 2011-08-29 07:01:33 UTC
Created attachment 7846 [details]
TeX with faulty line commented out
Comment 3 Z 2011-08-29 07:02:07 UTC
Created attachment 7847 [details]
Correct PDF without Plot 1
Comment 4 Z 2011-08-29 07:02:33 UTC
Created attachment 7848 [details]
Plot1
Comment 5 Z 2011-08-29 07:02:45 UTC
Created attachment 7849 [details]
Plot 2
Comment 6 Ken Sharp 2011-08-29 07:10:58 UTC
(In reply to comment #0)
> Created an attachment (id=7844) [details]
> TeX file that isn't producing the correct PDF.

I'm afraid I cannot use a TeX file. In order to investigate the problem I will need a PostScript or PDF file, and the command line being used to invoke Ghostscript.

I also can't help you get the files, or the command line, I don't use these tools at all.


> I have also attached the relevant PDF files so you can see the output 

I'm afraid that doesn't help, other than illustrating the problem. It is useful to see what the problem is, but it doesn't help in investigating it.


> EDIT: Apparently I can only add 1 attachment at a time

Correct.
Comment 7 Z 2011-08-29 07:18:58 UTC
> I'm afraid I cannot use a TeX file. In order to investigate the problem I will
> need a PostScript or PDF file, and the command line being used to invoke
> Ghostscript.

OK. PS File uploaded for each one.
> 
> I also can't help you get the files, or the command line, I don't use these
> tools at all.

I realise that the tools variable, it was just further information that may/may not be useful.

> > I have also attached the relevant PDF files so you can see the output 
> 
> I'm afraid that doesn't help, other than illustrating the problem. It is useful
> to see what the problem is, but it doesn't help in investigating it.

Understood. The reason to upload them was only for information. I understand that showing only the final file isn't that helpful, I just thought it would be good for context.

> > EDIT: Apparently I can only add 1 attachment at a time
> 
> Correct.

Cheers
Comment 8 Z 2011-08-29 07:19:52 UTC
Created attachment 7850 [details]
Post Script File notworking case
Comment 9 Z 2011-08-29 07:21:22 UTC
Created attachment 7851 [details]
Post Script File working case
Comment 10 Ken Sharp 2011-08-29 07:36:22 UTC
(In reply to comment #7)
> > I'm afraid I cannot use a TeX file. In order to investigate the problem I will
> > need a PostScript or PDF file, and the command line being used to invoke
> > Ghostscript.
> 
> OK. PS File uploaded for each one.

The 'notworking' PostScript file contains a PostScript grammatical error. The file contains:

D 8 D 4.84 D 6 D 3.53 D 4 D 2.21 D 2 D 0.98 D 0 D 0 D -2 D -0.94
D -4 D -2.16 D -6 D =3.41 D -8 D -4.62   D  

the '=' symbol doesn't make any sense there, and Ghostscript throws a syntax error ("/undefined in =3.41") on page 2 while processing it. If I change the'=' to a '-' then the file runs to completion.

I would guess (and it is a guess) that this is a problem with dvips, since that it what is creating the PostScript program. You might like to try a newer version of dvips, if there is one, or reporting the problem to the maintainers.

I'm afraid that this is not a Ghostscript bug.
Comment 11 Z 2011-08-29 07:40:39 UTC
(In reply to comment #10)
> (In reply to comment #7)
> > > I'm afraid I cannot use a TeX file. In order to investigate the problem I will
> > > need a PostScript or PDF file, and the command line being used to invoke
> > > Ghostscript.
> > 
> > OK. PS File uploaded for each one.
> 
> The 'notworking' PostScript file contains a PostScript grammatical error. The
> file contains:
> 
> D 8 D 4.84 D 6 D 3.53 D 4 D 2.21 D 2 D 0.98 D 0 D 0 D -2 D -0.94
> D -4 D -2.16 D -6 D =3.41 D -8 D -4.62   D  
> 
> the '=' symbol doesn't make any sense there, and Ghostscript throws a syntax
> error ("/undefined in =3.41") on page 2 while processing it. If I change the'='
> to a '-' then the file runs to completion.
> 
> I would guess (and it is a guess) that this is a problem with dvips, since that
> it what is creating the PostScript program. You might like to try a newer
> version of dvips, if there is one, or reporting the problem to the maintainers.
> 
> I'm afraid that this is not a Ghostscript bug.

You are absolutely right.

I sincerely apologise for taking up your valuable time.