Strange Ghostscript errors

I am trying to put the final versions of the FHSST books together and I've run into a snag, and its proving to be quite elusive. It might be that my brain knows it should at a braai and not trying to debug software but appreciating that isn't helping me solve it. I hope that making of note of the weird behaviour will help me solve it.

Simply, the conversion of the the Grade 10 Physics material from dvi format to pdf dies when I use dvipdf to do it. The error is (from my laptop but the error on the server is very similar):

Error: /undefined in CBarX18
Operand stack:

Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1889 1 3 %oparray_pop 1888 1 3 %oparray_pop 1872 1 3 %oparray_pop 1755 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:1151/1684(ro)(G)-- --dict:0/20(G)-- --dict:104/200(L)-- --dict:221/300(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript SVN PRE-RELEASE 8.61: Unrecoverable error, exit code 1

That is what I get after running:

latex fhsstadmin7219-incsub.tex ; dvipdf fhsstadmin7219-incsub.dvi

and if I run it again immediately nothing changes, same error, BUT if I

touch fhsstadmin7219-incsub.tex

then the error doesn't occur. So I thought I had it figured out but

latex fhsstadmin7219-incsub.tex ; dvipdf fhsstadmin7219-incsub.dvi ; touch fhsstadmin7219-incsub.tex ; latex fhsstadmin7219-incsub.tex ; dvipdf fhsstadmin7219-incsub.dvi
still gives the error :-/

But

latex fhsstadmin7219-incsub.tex ; dvipdf fhsstadmin7219-incsub.dvi ; latex fhsstadmin7219-incsub.tex ; dvipdf fhsstadmin7219-incsub.dvi ; touch fhsstadmin7219-incsub.tex ; latex fhsstadmin7219-incsub.tex ; dvipdf fhsstadmin7219-incsub.dvi

doesn't give the error. So run latex twice, touch the file, run it again and it will work :-/ Sounds like I should be sacrificing a chicken while hopping on one leg round the computer.

But if the error goes away how do I get it back? I just delete some of the auxilary files:

rm fhsstadmin7219-incsub.aux fhsstadmin7219-incsub.toc fhsstadmin7219-incsub.log fhsstadmin7219-incsub.cb

So the answer lies in those files somewhere :) but I don't want to have to go and figure it out!


latex fhsstadmin7219-incsub.tex ; latex fhsstadmin7219-incsub.tex ; latex fhsstadmin7219-incsub.tex ; dvipdf fhsstadmin7219-incsub.dvi
Works

latex fhsstadmin7219-incsub.tex ; latex fhsstadmin7219-incsub.tex ; dvipdf fhsstadmin7219-incsub.dvi
Fails

So the bottom line is: it is all about running latex an extra time.

latex fhsstadmin7219-incsub.tex ; mkdir once; cp fhsstadmin7219-incsub.* once/. ; latex fhsstadmin7219-incsub.tex ; mkdir twice; cp fhsstadmin7219-incsub.* twice/. ; latex fhsstadmin7219-incsub.tex ; mkdir thrice; cp fhsstadmin7219-incsub.* thrice/. ; dvipdf fhsstadmin7219-incsub.dvi

The difference between once and twice is expected to be large but the difference between twice and thrice should be small:

diff twice thrice
diff twice/fhsstadmin7219-incsub.cb thrice/fhsstadmin7219-incsub.cb
1,96c1,96
< 1n13p8.0ptl
< 4n13p8.0ptl
< 5n15p8.0ptl
< 8n15p8.0ptl
< 9n23p8.0ptl
< 12n23p8.0ptl
< 13n23p8.0ptl
< 16n23p8.0ptl
< 17n43p8.0ptl
< 20n45p8.0ptl
< 21n45p8.0ptl
< 24n51p8.0ptl
< 25n57p8.0ptl
< 28n57p8.0ptl
< 29n79p8.0ptl
< 32n81p8.0ptl
< 33n83p8.0ptl
< 36n85p8.0ptl
< 37n85p8.0ptl
< 40n85p8.0ptl
< 41n87p8.0ptl
< 44n87p8.0ptl
< 45n93p8.0ptl
< 48n93p8.0ptl
< 49n95p8.0ptl
< 52n97p8.0ptl
< 53n97p8.0ptl
< 56n99p8.0ptl
< 57n113p8.0ptl
< 60n113p8.0ptl
< 61n123p8.0ptl
< 64n123p8.0ptl
< 65n127p8.0ptl
< 68n127p8.0ptl
< 69n131p8.0ptl
< 72n131p8.0ptl
< 73n133p8.0ptl
< 76n133p8.0ptl
< 77n139p8.0ptl
< 80n139p8.0ptl
< 1n141p8.0ptl
< 4n141p8.0ptl
< 5n153p8.0ptl
< 8n153p8.0ptl
< 9n159p8.0ptl
< 13n159p8.0ptl
< 16n159p8.0ptl
< 12n161p8.0ptl
< 17n173p8.0ptl
< 20n173p8.0ptl
< 21n183p8.0ptl
< 24n183p8.0ptl
< 25n185p8.0ptl
< 28n187p8.0ptl
< 29n189p8.0ptl
< 32n191p8.0ptl
< 33n191p8.0ptl
< 36n191p8.0ptl
< 37n193p8.0ptl
< 40n193p8.0ptl
< 41n199p8.0ptl
< 44n201p8.0ptl
< 45n231p8.0ptl
< 48n231p8.0ptl
< 49n241p8.0ptl
< 52n243p8.0ptl
< 53n243p8.0ptl
< 56n245p8.0ptl
< 57n249p8.0ptl
< 60n249p8.0ptl
< 61n249p8.0ptl
< 64n249p8.0ptl
< 65n267p8.0ptl
< 68n269p8.0ptl
< 69n275p8.0ptl
< 72n277p8.0ptl
< 73n277p8.0ptl
< 76n279p8.0ptl
< 77n293p8.0ptl
< 80n293p8.0ptl
< 1n293p8.0ptl
< 4n293p8.0ptl
< 5n321p8.0ptl
< 8n321p8.0ptl
< 9n331p8.0ptl
< 12n333p8.0ptl
< 13n333p8.0ptl
< 16n333p8.0ptl
< 17n333p8.0ptl
< 20n333p8.0ptl
< 21n333p8.0ptl
< 24n333p8.0ptl
< 25n337p8.0ptl
< 28n337p8.0ptl
< 29n337p8.0ptl
< 32n337p8.0ptl
---
> 1n17p8.0ptl
> 4n17p8.0ptl
> 5n19p8.0ptl
> 8n19p8.0ptl
> 9n27p8.0ptl
> 12n27p8.0ptl
> 13n27p8.0ptl
> 16n27p8.0ptl
> 17n47p8.0ptl
> 20n49p8.0ptl
> 21n49p8.0ptl
> 24n55p8.0ptl
> 25n61p8.0ptl
> 28n61p8.0ptl
> 29n83p8.0ptl
> 32n85p8.0ptl
> 33n87p8.0ptl
> 36n89p8.0ptl
> 37n89p8.0ptl
> 40n89p8.0ptl
> 41n91p8.0ptl
> 44n91p8.0ptl
> 45n97p8.0ptl
> 48n97p8.0ptl
> 49n99p8.0ptl
> 52n101p8.0ptl
> 53n101p8.0ptl
> 56n103p8.0ptl
> 57n117p8.0ptl
> 60n117p8.0ptl
> 61n127p8.0ptl
> 64n127p8.0ptl
> 65n131p8.0ptl
> 68n131p8.0ptl
> 69n135p8.0ptl
> 72n135p8.0ptl
> 73n137p8.0ptl
> 76n137p8.0ptl
> 77n143p8.0ptl
> 80n143p8.0ptl
> 1n145p8.0ptl
> 4n145p8.0ptl
> 5n157p8.0ptl
> 8n157p8.0ptl
> 9n163p8.0ptl
> 13n163p8.0ptl
> 16n163p8.0ptl
> 12n165p8.0ptl
> 17n177p8.0ptl
> 20n177p8.0ptl
> 21n187p8.0ptl
> 24n187p8.0ptl
> 25n189p8.0ptl
> 28n191p8.0ptl
> 29n193p8.0ptl
> 32n195p8.0ptl
> 33n195p8.0ptl
> 36n195p8.0ptl
> 37n197p8.0ptl
> 40n197p8.0ptl
> 41n203p8.0ptl
> 44n205p8.0ptl
> 45n235p8.0ptl
> 48n235p8.0ptl
> 49n245p8.0ptl
> 52n247p8.0ptl
> 53n247p8.0ptl
> 56n249p8.0ptl
> 57n253p8.0ptl
> 60n253p8.0ptl
> 61n253p8.0ptl
> 64n253p8.0ptl
> 65n271p8.0ptl
> 68n273p8.0ptl
> 69n279p8.0ptl
> 72n281p8.0ptl
> 73n281p8.0ptl
> 76n283p8.0ptl
> 77n297p8.0ptl
> 80n297p8.0ptl
> 1n297p8.0ptl
> 4n297p8.0ptl
> 5n325p8.0ptl
> 8n325p8.0ptl
> 9n335p8.0ptl
> 12n337p8.0ptl
> 13n337p8.0ptl
> 16n337p8.0ptl
> 17n337p8.0ptl
> 20n337p8.0ptl
> 21n337p8.0ptl
> 24n337p8.0ptl
> 25n341p8.0ptl
> 28n341p8.0ptl
> 29n341p8.0ptl
> 32n341p8.0ptl
Binary files twice/fhsstadmin7219-incsub.dvi and thrice/fhsstadmin7219-incsub.dvi differ
diff twice/fhsstadmin7219-incsub.log thrice/fhsstadmin7219-incsub.log
890,895c890
< [181] [182] (./fhsstadmin7219-incsub.aux
<
< Package Changebar Warning: Changebar info has changed.
< (Changebar) Rerun to get the bars right on input line 22.
<
< )
---
> [181] [182] (./fhsstadmin7219-incsub.aux)
909c904
< 341577 words of memory out of 1500000
---
> 341105 words of memory out of 1500000
915c910
< Output written on fhsstadmin7219-incsub.dvi (187 pages, 2363404 bytes).
---
> Output written on fhsstadmin7219-incsub.dvi (187 pages, 1985300 bytes).

So it looks like it is all about the Changebar information, which is fine but I have no idea why is only shows up in this once chapter, the others seem fine. It must be that the information in the references and table of contents affects the bar extents in this one case but not in the others.

It is probably in a manual somewhere, wish I had RTFM rather than wasting a day.

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Tables will be rendered with different styles for even and odd rows if supported.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
q
F
E
2
B
d
Enter the code without spaces and pay attention to upper/lower case.