Stackoverflow while loading

For a given document, a StackOverflowError occurs in the constructor of the Document class.

String fileName = "/tmp/textreader/tr-work/obj 1775.rtf";
try (InputStream istream = new FileInputStream(fileName)) {
    Document doc = new Document(istream);
}
Exception in thread "main" java.lang.StackOverflowError
at com.aspose.words.zzZ63.zzYUM(Unknown Source)
at com.aspose.words.internal.zzXZQ.get(Unknown Source)
at com.aspose.words.zzZ63.zzYyk(Unknown Source)
at com.aspose.words.Style.zzZdp(Unknown Source)
at com.aspose.words.Style.zzZJ2(Unknown Source)
at com.aspose.words.Style.zzZdp(Unknown Source)
at com.aspose.words.Style.zzZJ2(Unknown Source)
at com.aspose.words.Style.zzZdp(Unknown Source)
at com.aspose.words.Style.zzZJ2(Unknown Source)
at com.aspose.words.Style.zzZdp(Unknown Source)

I can provide the document per mail if required.

@wimix Please attach the problematic document here for testing. We will check the issue and provide you more information.
Please note, it is safe to attach document in the forum, only you as a topic starter and Aspose staff can see the attachments.

obj 1775.zip (138.8 KB)

aspose-words-23.10-jdk17.jar

@wimix
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-26219

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as WORDSNET-26219) have been fixed in this Aspose.Words for Java 23.12 update.

Soved. Many thanks!

1 Like