11-22-2023, 09:28 AM | #496 |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Typically, the plugin itself downloads the java epubcheck jar file. Perhaps it is attempting to do that and failing. Possibly due to permissions?
Last edited by KevinH; 11-22-2023 at 09:59 AM. |
11-22-2023, 09:59 AM | #497 |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Most likely, you've made a mistake when editing the .json file. For example, you might have missed a comma at the end of the first line or added one at the end of the last line.
(In .json files, the last line mustn't be terminated with a comma, but all other lines must be terminated with a comma.) As work-around, paste the following code into the .json file and save it: Code:
{ "locale": "fr", "update_check": false, "github": false } |
11-22-2023, 09:43 PM | #498 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
There was no mistake in my previous json file. I used your reduced text above for the json file to no avail. Same results as before: It's working with the empty Sigil epub, not working for all others epubs with the same error message.
|
11-23-2023, 07:21 PM | #499 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Checking with Doitsu's help, it's clear that the plugin must be working on my Linux install.
Some other signs pinpoint that something still unidentified is corrupt. I shall follow on this search and inform here later on as soon as the culprit will be found and summarily shot. |
12-05-2023, 08:10 AM | #500 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
After a thorough inquiry, Doitsu managed to ascertain that these failures were due to a kind of incompatibility between several Archlinux java installs and epubcheck.jar due to some addtionnal and exclusive Arch features.
It's nevertheless possible to use the plugin with Archlinux-and derivatives- using java jdk8-openjdk which is for this reason warmly recommended. |
01-10-2024, 08:57 AM | #501 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jan 2024
Device: sigil, calibre, thorium reader, dolphin reader
|
java.lang.StackOverflowError
Hello, and thank you Doistu for your plugins !
I've self-solved my problem, but I'll leave my question below in case it helps someone else get his answer quicker I did read you post, but I hadn't caught the link between the "is32bit" flag and the JVM StackOverflow error. I just assumed a 32bit flag doesn't concern my configuration and could even bring other problems/limitations if I had used it, and so I went to modify your code instead, to implement exactly your logic about the overflow prevention . If that flag doesn't change anything important about 32/64 architecture but is more (or only?) targeted at the JVM overflow problem, could it be maybe renamed to reflect this in a future release ? My original question : I'm all good with every requirements (java, python, sigil) and the epubcheck update, but I got the following java.lang.StackOverflowError error : Spoiler:
I found the following advice to augment the JVM stack size with phind.com : Spoiler:
So I've tried the following mod of your plugin (line 447) : Code:
#---------------------------------------------------------------------- # define epubcheck command line parameters #---------------------------------------------------------------------- if is32bit: args = [java_path, '-Dfile.encoding=UTF8', '-Xss1024k', '-jar', epc_path, epub_path, '-q', '--json', '-'] else: # !!! debug java.lang.StackOverflowError with -Xss1024k flag... # args = [java_path, '-Dfile.encoding=UTF8', '-jar', epc_path, epub_path, '-q', '--json', '-'] args = [java_path, '-Dfile.encoding=UTF8', '-Xss1024k', '-jar', epc_path, epub_path, '-q', '--json', '-'] Is there anything else I could have done ? If no, maybe that could be an option to add via gui or via the json file ? ... Oh, I see : it is already implemented, through the "is32bit": true flag Last edited by sjallard; 01-10-2024 at 08:59 AM. Reason: clarification |
02-20-2024, 06:27 AM | #502 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jul 2022
Device: none
|
EpubCheck 0.4.6.3
I tried to update to the latest version of the plugin, though it did work fine.
Starting EpubCheck from within Sigil it loads EpubCheck 5.1.0 and falls to pieces with a stack overflow. I reverted to 0.4.6.2 which was still present on my old laptop and now it works fine. My lesson: If it ain't broke, don't fix it. |
02-20-2024, 06:58 AM | #503 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jul 2022
Device: none
|
After installing 0.4.6.2 I reinstalled 0.4.6.3 and it is working OK. Don't know why.
|
05-21-2024, 05:39 AM | #504 |
Connoisseur
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
|
I'm using EpubCheck 0.4.6.3 plugin with epubcheck 5.1.0 on Sigil 2.1.0.
When I run the plugin on Sigil, I don't receive any error messages. When I check the same ebook with epubcheck 5.1.0 on command prompt, I receive the following error: Code:
Validating using EPUB version 2.0.1 rules. INFO(RSC-004): ebook.epub/OEBPS/font/NotoEmoji-Regular.ttf(-1,-1): File "OEBPS/font/NotoEmoji-Regular.ttf" is encrypted, its content will not be checked. ERROR(PKG-026): ebook.epub/META-INF/encryption.xml(6,68): Obfuscated resource must be a Font Core Media Type (was declared as "application/x-font-ttf" in "OEBPS/content.opf"). |
05-21-2024, 08:03 AM | #505 |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
FWIW, inside Sigil all fonts are unobfuscated so that they can actually be used (ie. you are not looking at garbage in Preview). Only when saved are the fonts obfuscated and the encryption.xml added.
So the epbcheck plugin run on the epub when open in Sigil would not see any encryption.xml but epubcheck should have still warned you about the out of date mimetypes being used on your fonts (ie. non core media type). I guess epubcheck does not bother to run that check if you are not obfuscating that font. |
05-21-2024, 12:35 PM | #506 |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
I'll investigate this and update the plugin, if necessary. In order to reproduce the problem I need to know which encryption method you used: Adobe or IDPF and whether this was an epub2 or epub3 book.
Last edited by Doitsu; 05-21-2024 at 12:37 PM. |
05-21-2024, 09:21 PM | #507 | |
Connoisseur
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
|
Quote:
Code:
<?xml version="1.0" encoding="UTF-8"?> <encryption xmlns="urn:oasis:names:tc:opendocument:xmlns:container" xmlns:enc="http://www.w3.org/2001/04/xmlenc#"> <enc:EncryptedData> <enc:EncryptionMethod Algorithm="http://www.idpf.org/2008/embedding"/> <enc:CipherData> <enc:CipherReference URI="OEBPS/font/NotoEmoji-Regular.ttf"/> </enc:CipherData> </enc:EncryptedData> </encryption> |
|
05-22-2024, 01:49 PM | #508 |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
|
05-26-2024, 12:05 PM | #509 | |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
05-26-2024, 02:59 PM | #510 |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
I've updated the plugin again and attached the latest version.
Last edited by Doitsu; 05-27-2024 at 03:38 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] PunctuationSmarten Sigil plugin | DiapDealer | Plugins | 138 | 07-11-2023 11:22 AM |
[Plugin] KindleImport Sigil plugin | DiapDealer | Plugins | 187 | 07-04-2022 10:11 AM |
Sigil Plugin Index | Thasaidon | Plugins | 0 | 10-04-2014 07:41 AM |
FC and Sigil 0.5.3 ePUBcheck failure | Hitch | Sigil | 32 | 04-17-2012 02:56 AM |
Web-based epubcheck upgraded to epubcheck 1.0.5 | kjk | ePub | 4 | 02-09-2010 09:53 PM |