Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-22-2025, 05:12 PM   #1
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
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 don't know how 'thaiopensource' came into the equation. I never had anything to do with thai nor any other asian language.

I checked that java is up to date - version 8 build 461.

Anyone got any ideas how I can sort this?
philja is offline   Reply With Quote
Old 07-22-2025, 05:38 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,775
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.
KevinH is offline   Reply With Quote
Advert
Old 07-22-2025, 07:33 PM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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.
DNSB is offline   Reply With Quote
Old Yesterday, 02:27 AM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,730
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by philja View Post
Anyone got any ideas how I can sort this?
If you don't want to install a 64bit Java version, locate EpubCheck.json and insert the following entry between the first and second entries:

Code:
  "is32bit": true,
or change the value to true, if the entry already exists.
Doitsu is offline   Reply With Quote
Old Yesterday, 04:38 AM   #5
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
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?
philja is offline   Reply With Quote
Advert
Old Yesterday, 08:29 AM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,577
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.
DiapDealer is offline   Reply With Quote
Old Yesterday, 09:03 AM   #7
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
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:
Originally posted by DiapDealer: 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.
I guess that's what happened. After the W11 upgrade, Java announced it needed to update and I suppose, having found a 32-bit version, it fetched me the latest 32-bit version.

Thankyou Microsoft
philja is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 08:59 PM.


MobileRead.com is a privately owned, operated and funded community.