I ran into a problem with fig2dev printing multi-page figures that had embedded
windows. It seems some versions of ghostscript have a problem with the output.
There is a very dirty patch that will work around it.
It works by in-lining the figure in each page. Notclean or efficient, but it does solve to problem.
Typical error looks like
Error: /syntaxerror in --%ztokenexec_continue--
Operand stack:
--nostringval-- o215 --nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --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-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1063/1123(ro)(G)-- --dict:0/20(G)-- --dict:88/200(L)-- --dict:67/100(L)-- --dict:250/302(L)--
Current allocation mode is local
Last OS error: 2
GNU Ghostscript 7.07: Unrecoverable error, exit code 1