11-22-2023, 09:28 AM | #496 |
Sigil Developer
Posts: 7,469
Karma: 5432724
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,582
Karma: 22735033
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,607
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,607
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,607
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.
|
Thread Tools | Search this Thread |
|
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 |