|  09-24-2019, 04:56 AM | #1 | 
| Guru            Posts: 878 Karma: 2457540 Join Date: Nov 2011 Device: none | 
				
				Epubcheck misses error
			 
			
			How is this possible?   (I'd just run Epubcheck). Flightcrew detects the error. Moderator Notice Removed oversized inline image. The attachment is fine Last edited by theducks; 09-24-2019 at 04:59 AM. | 
|   |   | 
|  09-24-2019, 06:22 AM | #2 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | 
			
			How is it possible we'd be able to investigate with the info given? In general, I'd say it's NOT possible. EpubCheck isn't going to miss a tag mismatch. So something else must be going on. A flush to disk not happening, a stale file, etc... . Without a reproducible sample, there's no way to diagnose. Last edited by DiapDealer; 09-24-2019 at 07:27 AM. | 
|   |   | 
|  09-24-2019, 07:10 AM | #3 | 
| Guru            Posts: 878 Karma: 2457540 Join Date: Nov 2011 Device: none | 
			
			New epub file.   I enter this code.   I save the file, refusing the offer to fix it.  Preview catches the error.  FlightCrew catches the error.  EpubCheck returns 'No problem found'. Windows 10. Sigil 0.9.18. EpubCheck 4.22. Code: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <p>Test</p> <p>Test</div> </body> </html> | 
|   |   | 
|  09-24-2019, 07:21 AM | #4 | 
| Guru            Posts: 878 Karma: 2457540 Join Date: Nov 2011 Device: none | 
			
			Solved by re-installing EpubCheck.   Still shows as EpubCheck 4.22 when running, but the wrapper version in Manage Plugins has updated to 0.4.2.
		 | 
|   |   | 
|  09-24-2019, 07:35 AM | #5 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | 
			
			I'm running an older version of the epubcheck plugin (0.4.1.2) and can't duplicate the issue. EpubCheck flags the mismatch every time.
		 | 
|   |   | 
|  09-24-2019, 07:49 AM | #6 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | 
			
			What version Sigil is being used where epubcueck failed?
		 | 
|   |   | 
|  09-24-2019, 08:14 AM | #7 | 
| Guru            Posts: 878 Karma: 2457540 Join Date: Nov 2011 Device: none | |
|   |   | 
|  09-24-2019, 11:52 AM | #8 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | |
|   |   | 
|  09-24-2019, 01:19 PM | #9 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			Yes, if epubcheck fails to run due to java issues or throws an exception, it will come back with "no problems found". If you enable the epubcheck json preference to copy the output to the clipboard, you can paste it into any text editor to see the exact exception thrown. Perhaps we can work with Doitsu to return a -1 from his plugin if any exceptions are thrown. | 
|   |   | 
|  09-24-2019, 01:30 PM | #10 | |
| Grand Sorcerer            Posts: 5,763 Karma: 24088559 Join Date: Dec 2010 Device: Kindle PW2 | Quote: 
 Code:     # check for StackOverflowError error
    if stderr.find('java.lang.StackOverflowError') != -1:
        print('EPUBCheck Java error.\n', stderr)
        return -1 | |
|   |   | 
|  09-24-2019, 03:54 PM | #11 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			I had too old a version of java installed (1.6) and epubcheck threw an exception.  I will try to recreate that and get you a copy.
		 | 
|   |   | 
|  09-24-2019, 03:56 PM | #12 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			How hard would it be to search stderr for the words exception or error and report back all it finds to be safe?
		 | 
|   |   | 
|  09-24-2019, 04:02 PM | #13 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			Here is a report that looks identical to what I found in the clipboard after running epubcheck: https://stackoverflow.com/questions/...r-version-51-0 | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| EPUB 3 Error in EPUBCheck version 4.1.1. | Bjorn G | ePub | 2 | 04-25-2019 03:16 AM | 
| Epubcheck: New Error under upgrade to Validator 4.0.2 | Phaedrus Wolfe | Conversion | 21 | 08-21-2017 10:04 AM | 
| Error epubcheck | Buble | ePub | 43 | 08-15-2014 01:53 AM | 
| ePubCheck error deciphering | thiefwriter | Calibre | 5 | 09-15-2011 07:37 PM | 
| Error on epubcheck | Brazz | ePub | 5 | 09-01-2011 03:17 AM |