xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Argirakis <andreas.argira...@maindialog.se>
Subject bug: fop crashes when using float and span="all"
Date Thu, 19 Mar 2015 16:01:09 GMT
Hi.

Using fop nightly 20150319 on Windows 7.

Attached are three .fo files showing that a combination of using 
fo:float and fo:block span="all" will sometimes crash fop.

The file two-columns-with-float-and-two-blocks-and-span.fo will crash 
fop with the following stack trace:

SEVERE: Exception
org.apache.fop.apps.FOPException
java.lang.NullPointerException
         at 
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:288)
         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
         at org.apache.fop.cli.Main.startFOP(Main.java:186)
         at org.apache.fop.cli.Main.main(Main.java:217)
Caused by: java.lang.NullPointerException
         at 
org.apache.fop.layoutmgr.PageBreaker.redoLayout(PageBreaker.java:420)
         at 
org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:329)
         at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:427)
         at 
org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:112)
         at
<snip>

If one block is removed as in the file 
two-columns-with-float-and-one-block-and-span.fo a pdf can be produced, 
however one block will not show up and the two-column block will be cut.

If the fo:float is removed as in two-columns-with-span.fo the resulting 
outcome is as expected.

Attached are minimal .fo files and pdfs.

Best regards,
Andreas Argirakis

Andreas Argirakis
Tel +46 31 15 04 90
Mob +46 733 41 44 26
Fax +46 31 15 04 09
andreas.argirakis@maindialog.se

Main Dialog AB
Västra Hamngatan 12
SE-411 17 Göteborg
www.maindialog.s

Mime
View raw message