This document used to work with dvipng. It is exported from LyX, so I suppose a new version of LyX could have changed something... Whatever it is, seems to happen many times per page.
If nothing else, this needs a better error message. It shouldn't complain about Ghostscript if it's just something dvipng doesn't support. (And, of course, it needs to reap its zombies. Or not spawn them in the first place.) It seems that turning on hyperref support in LyX causes this. I am attaching a fairly minimal testcase.
#LyX 1.6.7 created this file. For more info see http://www.lyx.org/ \lyxformat 345 \begin_document \begin_header \textclass article \use_default_options true \language american \inputencoding auto \font_roman default \font_sans default \font_typewriter default \font_default_family default \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 \graphics default \paperfontsize default \spacing single \use_hyperref true \pdf_bookmarks true \pdf_bookmarksnumbered false \pdf_bookmarksopen false \pdf_bookmarksopenlevel 1 \pdf_breaklinks false \pdf_pdfborder false \pdf_colorlinks false \pdf_backref false \pdf_pdfusetitle true \papersize default \use_geometry false \use_amsmath 1 \use_esint 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \author "" \author "" \end_header \begin_body \begin_layout Section \begin_inset CommandInset label LatexCommand label name "sec:Hello" \end_inset Hello \end_layout \begin_layout Standard Hello, world. \end_layout \begin_layout Section Goodbye \end_layout \begin_layout Standard Goodbye, cruel world. (Goto \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand prettyref reference "sec:Hello" \end_inset ). \end_layout \end_body \end_document
%% LyX 1.6.7 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[american]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{babel} \usepackage{prettyref} \usepackage[unicode=true, pdfusetitle, bookmarks=true,bookmarksnumbered=false,bookmarksopen=false, breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false] {hyperref} \begin{document} \section{\label{sec:Hello}Hello} Hello, world. \section{Goodbye} Goodbye, cruel world. (Goto~\prettyref{sec:Hello}). \end{document}
hello.dvi
Description: TeX dvi file