You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "PAX (Jira)" <ji...@apache.org> on 2020/07/20 07:24:00 UTC

[jira] [Commented] (FOP-2569) [PATCH] Exception in thread "main" java.lang.StackOverflowError at org.apache.fop.hyphenation.TernaryTree.insert(TernaryTree.java:244)

    [ https://issues.apache.org/jira/browse/FOP-2569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17160975#comment-17160975 ] 

PAX commented on FOP-2569:
--------------------------

I believe that there's still an issue. If I invoke the following with my attached resources (de-DE):

 
{code:java}
org.apache.fop.hyphenation.HyphenationTree.hyphenate("Polizeiwachtmeister", 2, 2);
{code}
I get following Exception:

 
{noformat}
de.icongmbh.dopix.language.hyphenation.api.exceptions.HyphenationException: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 103894
	at de.icongmbh.dopix.language.hyphenation.openoffice.OpenOfficeHyphenation.hyphenateBefore(OpenOfficeHyphenation.java:154)
	at de.icongmbh.dopix.language.hyphenation.openoffice.OpenOfficeHyphenation_Test.should_Break_At_Hyphenation_Offset_Limit(OpenOfficeHyphenation_Test.java:83)
	...
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:210)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 103894
	at org.apache.fop.hyphenation.ByteVector.get(ByteVector.java:139)
	at org.apache.fop.hyphenation.HyphenationTree.getValues(HyphenationTree.java:211)
	at org.apache.fop.hyphenation.HyphenationTree.searchPatterns(HyphenationTree.java:292)
	at org.apache.fop.hyphenation.HyphenationTree.hyphenate(HyphenationTree.java:534)
	at org.apache.fop.hyphenation.HyphenationTree.hyphenate(HyphenationTree.java:335)
	at de.icongmbh.dopix.language.hyphenation.openoffice.OpenOfficeHyphenationDictionary.hyphenate(OpenOfficeHyphenationDictionary.java:275)
	... 28 more{noformat}

> [PATCH] 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: FOP-2569.patch, hyph_de_DE.fop, hyph_de_DE.hyp
>
>
> 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)