![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 268
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Java error
Epubcheck is failing on any epub I try on my Windows box - epubs known to be good on my other machines. And using Sigil 2.6.0.
I bit the bullet yesterday and upgraded my W10 box to W11 since we're getting close to the end of support for W10. All seemed to upgrade without problems but it looks like something fouled up java. Epubcheck fails with about 1000 lines of error message like this: Code:
Running EPUBCheck 5.2.1... please wait. EPUBCheck Java error. java.lang.StackOverflowError at com.thaiopensource.relaxng.pattern.InterleavePattern.checkRestrictions(InterleavePattern.java:35) at com.thaiopensource.relaxng.pattern.InterleavePattern.checkRestrictions(InterleavePattern.java:35) at com.thaiopensource.relaxng.pattern.InterleavePattern.checkRestrictions(InterleavePattern.java:35) at com.thaiopensource.relaxng.pattern.InterleavePattern.checkRestrictions(InterleavePattern.java:35) at com.thaiopensource.relaxng.pattern.InterleavePattern.checkRestrictions(InterleavePattern.java:37) at com.thaiopensource.relaxng.pattern.BinaryPattern.checkRestrictions(BinaryPattern.java:22) at com.thaiopensource.relaxng.pattern.GroupPattern.checkRestrictions(GroupPattern.java:27) at com.thaiopensource.relaxng.pattern.ElementPattern.checkRestrictions(ElementPattern.java:42) I checked that java is up to date - version 8 build 461. Anyone got any ideas how I can sort this? |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,777
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Yes a java stack overflow failures often happen when you use a 32 bit java virtual machine and do not grow the default stack size. There are two solutions:
Using Doitsu's epubcheck plugin you can grow the stack by setting options in his preferences. Or simply upgrade to use a 64 bit java virtual machine. I recommend the latter if your machine supports 64 bit. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,288
Karma: 169098402
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I would agree with @KevinH. Since your Windows 11 on X64 install must be 64bit, you should upgrade your Java install to 64bit.
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,730
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#5 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 268
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Hi all, thanks for the responses. I'll check that this afternoon when I'm back.
Sigil and its epubchek plugin had been working perfectly well on that machine under Windows 10 since I replaced the hardware 2 years ago. I thought everything had been 64-bit for years. Why would an upgrade to W11 introduce anything 32-bit? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,579
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
My guess is that an older 32-bit version of Java was not causing the issue (that particular limitation of the relaxNG engine was introduced with a particular version of the 32-bit java if I recall correctly). That's why increasing the stack or installing the 64-bit version was recommended back then. Your upgrade to Windows 11 more than likely included an upgrade to the pre-existing (and likely non-problematic) 32-bit java, and that's what caused your problem.
Nothing nefarious or unusual in the "com.thaiopensource" message. That's a normal part of EPubCheck. The issue had nothing to do with your particular epub including (or not including) Asian languages. |
![]() |
![]() |
![]() |
#7 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 268
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
All fixed - thanks.
First of all, I checked the epubcheck.json file and found 'is32bit' set to 'false'. This seemed entirely normal to me because I hadn't knowingly used any 32-bit stuff for years. Then I set it to 'true' and tested an epub file. Epubcheck worked fine - no errors. Reset it to 'false'. I then deleted java from the PC and reloaded 64-bit java from java.com. Retested Sigil and epubcheck. All ok. Quote:
Thankyou Microsoft ![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CC has downloaded fine to OTG SD card but will not open files (java.lang.error) | bazookajoe | Calibre Companion | 4 | 06-19-2022 02:50 PM |
PRS-T1 Welcome Back Java | DoctorM | Sony Reader | 0 | 04-20-2017 11:26 PM |
calibre, version 0.8.8 ERROR: Error: Error communicating with device no such column: | e-bookuser | Devices | 1 | 07-03-2011 04:09 PM |
java.lang.arrayindexoutofboundsexception 1625 error | maxcat | Kindle Formats | 4 | 11-23-2008 09:41 AM |
[Apple]Java Embedding Plugin 0.9.2: Force java to run in browsers other than Safari | Zire | Lounge | 4 | 05-24-2005 09:12 PM |