[
https://issues.apache.org/jira/browse/FOP-2569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17134250#comment-17134250
]
Chris Bowditch commented on FOP-2569:
-------------------------------------
Thanks for sharing the XML. Looking at the code I think its designed for a
maximum number of hyphenation patterns of around 65535. This is backed up by
the comments at the top of the class:
Using java's char type as pointer (yes, I know pointer
* it is a forbidden word in java) we can keep the size of the node
* to be just 8 bytes (3 pointers and the data char). This gives
* room for about 65000 nodes. In my tests the english patterns
* took 7694 nodes and the german patterns 10055 nodes,
* so I think we are safe.
I'll have a go at changing the char[] to int[] to see if that resolves the issue
> Exception in thread "main" java.lang.StackOverflowError at
> org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: FOP-2569
> URL: https://issues.apache.org/jira/browse/FOP-2569
> Project: FOP
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Mathieu Malaterre
> Priority: Major
> Fix For: 1.1
>
> Attachments: hyph_de_DE.fop
>
>
> fop + offo is broken since release 2.0 (and 2.1). It used to be possible to
> build fop-hyph.jar using fop 1.1. Please resurrect a working hyph building
> mechanism.
> Here is what it states:
> $ /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java -Xss512k -classpath
> /home/mathieu/debian/fop/fop-2.1/build/classes
> org.apache.fop.hyphenation.SerializeHyphPattern
> /home/mathieu/debian/fop/fop-2.1/hyph
> /home/mathieu/debian/fop/fop-2.1/build/classes/hyph
> Processing /home/mathieu/debian/fop/fop-2.1/hyph/sa.xml
> Exception in thread "main" java.lang.StackOverflowError
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> [...]
> at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)
> See thread:
> http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/201602.mbox/%3CCA%2B7wUszWN2PdZY_t_Kgn0E4eatL7CUQswOWj9XC%3Dg9GDdgsyXw%40mail.gmail.com%3E
--
This message was sent by Atlassian Jira
(v8.3.4#803005)