[
https://issues.apache.org/jira/browse/FOP-2481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17450722#comment-17450722
]
TLX commented on FOP-2481:
--------------------------
Okay, I found the answer myself: A block-container that contains only
absolutely positioned children counts as empty to the algorithm. That way it
will crash everything by leading to that AssertionError.
Solution: Assing span="all" to that block-container. By doing so it won't
trigger the column-distribution algorithm.
It would be great if this could throw a regular exception that explains what's
wrong. AssertionErrors shouldn't be used to catch invalid user input.
> AssertionError at BalancingColumnBreakingAlgorithm.getInitialBreaks
> -------------------------------------------------------------------
>
> Key: FOP-2481
> URL: https://issues.apache.org/jira/browse/FOP-2481
> Project: FOP
> Issue Type: Bug
> Reporter: Simon Steiner
> Priority: Major
> Attachments: exception.fo
>
>
> AssertionError
> at
> org.apache.fop.layoutmgr.BalancingColumnBreakingAlgorithm.getInitialBreaks(BalancingColumnBreakingAlgorithm.java:171)
> export FOP_OPTS=-ea
> fop exception.fo out.pdf
--
This message was sent by Atlassian Jira
(v8.20.1#820001)