Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 09-13-2022, 04:13 PM   #1
RobertWK
Junior Member
RobertWK began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2022
Device: none
Editor is saving corrupted/invalid files

Hi! I'm outputting a how-to book that has a bunch of images (over 200), and I've been using calibre to work on the epub version.

I've noticed that at some point (not sure when) calibre has started outputting invalid/damaged/corrupt epub files. This is verified whenever I go to load up my epub on a device with some ereader software.

Sometimes I can load the file up in sigil and fix it, but I'm not sure what fixes are being auto-applied.

Sometimes the calibre files that are outputted are fine. I'm very confused and frustrated by what's going on.

Is there anyone else that has experienced this or knows where I might start to troubleshoot?
RobertWK is offline   Reply With Quote
Old 09-13-2022, 05:16 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,764
Karma: 6000000
Join Date: Nov 2009
Device: many
Just in case ...

If you want to see the fixes that Sigil makes, turn off mend on open in Sigil prefs. Open your problem epub. Do not respond to any prompts to autofix. Hit the Checkpoint icon to make a Checkpoint of it. Exit out of Sigil. Re-enable mend on open, reopen the problem epub, allow Sigil to autofix things. The use Sigil's checkpoint diff tool to see all changes since the checkpoint.

That said, calibre is really robust and and can handle a lot of bad markup, so I doubt anything that Sigil auto fixes would be a challenge for calibre at all.

You might want to try running epubcheck instead or calibre's auto mend. Or even a calibre epub to epub conversion.
KevinH is online now   Reply With Quote
Old 09-13-2022, 05:18 PM   #3
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Are you running a 32-bit version of calibre?

If so it may be running out of memory and switching to a 64-bit version would prevent that.
jhowell is online now   Reply With Quote
Old 09-13-2022, 09:07 PM   #4
RobertWK
Junior Member
RobertWK began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2022
Device: none
Quote:
Originally Posted by KevinH View Post
Just in case ...

If you want to see the fixes that Sigil makes, turn off mend on open in Sigil prefs. Open your problem epub. Do not respond to any prompts to autofix. Hit the Checkpoint icon to make a Checkpoint of it. Exit out of Sigil. Re-enable mend on open, reopen the problem epub, allow Sigil to autofix things. The use Sigil's checkpoint diff tool to see all changes since the checkpoint.

That said, calibre is really robust and and can handle a lot of bad markup, so I doubt anything that Sigil auto fixes would be a challenge for calibre at all.

You might want to try running epubcheck instead or calibre's auto mend. Or even a calibre epub to epub conversion.
Thanks KevinH, I'll try those things the next time I check my file. I'm getting pretty close to the end so that'll be something I definitely explore before my epub gets to the publishing point.
RobertWK is offline   Reply With Quote
Old 09-13-2022, 09:09 PM   #5
RobertWK
Junior Member
RobertWK began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2022
Device: none
Quote:
Originally Posted by jhowell View Post
Are you running a 32-bit version of calibre?

If so it may be running out of memory and switching to a 64-bit version would prevent that.
Definitely not. I only installed the 64 bit version.
RobertWK is offline   Reply With Quote
Old 09-13-2022, 09:33 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I highly doubt the editor is saving corrupted files. As for invalid ones, the editor does not prevent you from makig invalid epubs, that's up to you. Use the Check Book tool to check your epub.
kovidgoyal is offline   Reply With Quote
Old 09-13-2022, 10:00 PM   #7
RobertWK
Junior Member
RobertWK began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2022
Device: none
Quote:
Originally Posted by kovidgoyal View Post
I highly doubt the editor is saving corrupted files. As for invalid ones, the editor does not prevent you from makig invalid epubs, that's up to you. Use the Check Book tool to check your epub.
I actually thought to do that first, and the check tool is totally passing with no errors.
RobertWK is offline   Reply With Quote
Old 09-14-2022, 02:16 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Then why do you say it is corrupted orinvalid?
kovidgoyal is offline   Reply With Quote
Old 09-14-2022, 02:29 AM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,728
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by RobertWK View Post
Hi! I'm outputting a how-to book that has a bunch of images (over 200), and I've been using calibre to work on the epub version.

I've noticed that at some point (not sure when) calibre has started outputting invalid/damaged/corrupt epub files. This is verified whenever I go to load up my epub on a device with some ereader software.
Which device, what ereader software?

Are there some device/ereader combinations that 'work' and others that 'fail'?

BR
BetterRed is online now   Reply With Quote
Reply

Tags
calibre, corrupt files, damaged files, epub


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Corrupted files ThanosNaranja Calibre 4 11-22-2021 05:12 AM
Losing files when saving saving to disk theaccountant Library Management 4 03-10-2011 02:38 PM
Corrupted files speakingtohe Calibre 2 08-20-2010 04:31 PM
Has anyone else had problems with corrupted files? Purple Lady Onyx Boox 4 03-27-2010 03:46 AM


All times are GMT -4. The time now is 07:10 PM.


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