Skip to content

epubcheck 4.2.0 and higher version are throwing StackOverflowError error. #1094

Closed
@apiyush

Description

@apiyush

I have validated my epub file with epubcheck 4.0.2 ,4.1.1 ,4.2.0 and 4.2.1 . It is validating correctly with 4.0.2 and 4.1.1 but for 4.2.0 and higher version it is throwing below errors.

java.lang.StackOverflowError
at java.util.LinkedList.poll(Unknown Source)
at com.adobe.epubcheck.opf.XRefChecker.checkReadingOrder(XRefChecker.java:532)
at com.adobe.epubcheck.opf.XRefChecker.checkReadingOrder(XRefChecker.java:576)
............
I have checked the source code of 4.1.1 and 4.2.0 and found that in 4.2.0 there is a recursive methods which is not available in 4.1.1 and lower version. At this point my epub check throwing errors.
com.adobe.epubcheck.opf.XRefChecker.checkReferences() com.adobe.epubcheck.opf.XRefChecker.checkReadingOrder(Queue<Reference>, int, int)
I am able to access epub in edge browser , calibre.
I cannot share epub file because it has copyright.

Please advise me to solve the problem
Thanks!

Metadata

Metadata

Assignees

Labels

spec: EPUB 3.xImpacting the support of EPUB 3.x specificationsstatus: completedWork completed, can be closedstatus: wontfixThe issue is rejected due to limitations (of scope or dev resources)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions