You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Christian Loock <c....@db-central.com> on 2007/02/05 13:08:32 UTC

Infinite Loop when using SVG Image

 <<NACS_17_tentcard.svg>> He 
<<f0b6414e9676a3afb5bdc5f7cf8bf6d9_2355.fo>> llo everyone,

on friday i wrote an email about an exception that appeart while i was
trying to use an svg image in FOP 0.25.. Now i have encountered another
Problem which i cannot really explain by myself. I attached an fo file
and a svg image used in the fo. When i try to render this fo as an PDF
Fop seems to be running into an infinite Loop.
The PDF which should be about 8 pages long is looped over 100000 pages
>_>. Killing the process after about 100k pages showed me a PDF File
which was about 300MB big and could not be opened in Adobe Acrobat
Reader.

Here is a slice of the output FOP generates...it rendered about 5
seconds...then i killed the process.

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP @version@
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] [2]
[INFO] [3]
[INFO] [4]
[INFO] [5]
[INFO] [6]
.
.
.
[INFO] [6064]
[INFO] [6065]
[INFO] [6066]
[INFO] [6067]
[INFO] [6068]

Do you have any ideas about what is wrong with that svg?

Best regards,

Christian

Re: Infinite Loop when using SVG Image

Posted by Chris Bowditch <bo...@hotmail.com>.
Christian Loock wrote:

>  <<NACS_17_tentcard.svg>> He 
> <<f0b6414e9676a3afb5bdc5f7cf8bf6d9_2355.fo>> llo everyone,
> 
> on friday i wrote an email about an exception that appeart while i was
> trying to use an svg image in FOP 0.25.. Now i have encountered another
> Problem which i cannot really explain by myself. I attached an fo file
> and a svg image used in the fo. When i try to render this fo as an PDF
> Fop seems to be running into an infinite Loop.
> The PDF which should be about 8 pages long is looped over 100000 pages

The SVG is probably too big to fit on the page. FOP creates a new page 
because it may fit on that page if there is less content or the page 
dimensions are bigger. However, in your case no pages are found which 
are big enough to contain the SVG. Try specifying an explicit size on 
fo:external-graphic or fo:instream-foreign-object tag.

<snip/>

Chris




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org