![]() |
#1 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 817
Karma: 577114
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2
|
Error during updating metadata
Hi Kovid, everytime I update the metadata of an ebook, of which multiple files are present I get an error concerning the impossibility of updating the PDF-file, while the other files are correctly ignored. Can the PDF-file somehow be marked to be ignored too?
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,302
Karma: 21696336
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The other files are not ignored there is just no error setting their metadata. Click the copy to clipboard button and paste the full error
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 817
Karma: 577114
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2
|
Running on Windows 11, this is the full message:
Code:
calibre, version 6.27.0 WARNING: Failed for some files: Failed to embed metadata into some book files. Click "Show details" for details. The PDF format of xxxxx: Traceback (most recent call last): File "calibre\utils\podofo\__init__.py", line 36, in set_metadata File "calibre\utils\ipc\simple_worker.py", line 255, in fork_job File "calibre\utils\ipc\simple_worker.py", line 180, in run_job File "calibre\utils\ipc\simple_worker.py", line 115, in communicate calibre.utils.ipc.simple_worker.WorkerError: Failed to communicate with worker process During handling of the above exception, another exception occurred: Traceback (most recent call last): File "calibre\customize\ui.py", line 488, in set_file_type_metadata File "calibre\customize\builtins.py", line 525, in set_metadata File "calibre\ebooks\metadata\pdf.py", line 185, in set_metadata File "calibre\utils\podofo\__init__.py", line 40, in set_metadata Exception: Failed to set PDF metadata in (xxxxxx): Traceback (most recent call last): File "multiprocessing\connection.py", line 317, in _recv_bytes BrokenPipeError: [WinError 109] The pipe has been ended During handling of the above exception, another exception occurred: Traceback (most recent call last): File "calibre\utils\ipc\simple_worker.py", line 53, in run File "calibre\utils\ipc\__init__.py", line 24, in eintr_retry_call File "multiprocessing\connection.py", line 255, in recv File "multiprocessing\connection.py", line 326, in _recv_bytes EOFError Last edited by DrChiper; 09-27-2023 at 09:02 AM. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,302
Karma: 21696336
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That looks like something on your computer is interfering with calibre, most likley an antivirus, try rebooting in safe mode and see if the errors stop
|
![]() |
![]() |
![]() |
#5 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 817
Karma: 577114
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2
|
I get the same error in "Safe Mode". The PDF itself seems ok. Strangely enough not all ebooks with additional PDFs show errors. Those ebooks were added with calibre 6.25 or earlier.
I try to see whether I can find file property differences. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 817
Karma: 577114
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2
|
It narrows down to the PDF-file: the file itself is perfectly genuine (PDF version 1.5), but somehow still not appreciated by calibre for updating the metadata. I'll investigate further.
|
![]() |
![]() |
![]() |
#7 | |
null operator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,027
Karma: 25139362
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
#8 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,927
Karma: 55947249
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I'd also check whether there might be a read-only flag on it.
|
![]() |
![]() |
![]() |
#9 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 817
Karma: 577114
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2
|
@BetterRed & @ownedbycats: That were the first things I checked: negative.
I found the cause: its in the PDF file handling. A working PDF-file has the following ending: Code:
<</ID[<B43E3B0286664B420FA6AC3FE4CBFF8B><B43E3B0286664B420FA6AC3FE4CBFF8B>] /Info 1935 0 R /Root 1937 0 R /Size 1945>> startxref 55999427 %%EOF Code:
<</Size 1127 /ID [(Vؘr„g‘X%ÃVCÙÂ) (Vؘr„g‘X%ÃVCÙÂ) ] /Root 1625 0 R >> startxref 37312594 %%EOF As can be seen, my PDF-file is missing the (optional) entry "/info xxxx x R", so I manually added that and now calibre does not complain anymore. My PDF-file was generated by using the well-known Poppler tool "pdfunite" (I tried multiple versions and the most recent 23.08.0 one for windows) , which never seems to include the "/info" entry. First conclusion therefor is that the calibre parsing-tool is expecting something which not necessary needs to be present. PDF-files are (and will be) a pain in the xxx ![]() |
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,302
Karma: 21696336
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre uses podofo to parse PDF. I doubt that requires the /Info dictionary but opena bug report and attach your PDF and I will take a look, podofo recently underwent a rewrite which broke quite a few things, maybe it broke this.
|
![]() |
![]() |
![]() |
#11 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 817
Karma: 577114
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2
|
Ah, that figures.
Please find my 2 test PDF-files attached. |
![]() |
![]() |
![]() |
#12 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,302
Karma: 21696336
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
OK I'll look into it when I have a moment
|
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,302
Karma: 21696336
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#14 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 817
Karma: 577114
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2
|
Thanks Kovid, will give it a try on the next release.
|
![]() |
![]() |
![]() |
#15 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 817
Karma: 577114
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2
|
The PDF-files seem to pass-on fine now using calibre 6.28.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error message when updating metadata - changing title or author | Rayha | Server | 5 | 07-13-2018 09:44 PM |
Error when updating cache metadata on the connected device | sylvain62 | Devices | 5 | 03-19-2015 03:49 PM |
Why is my metadata not updating? | rhino79 | Library Management | 25 | 09-23-2014 02:34 AM |
Error received after updating metadata | Vidfamne | Library Management | 4 | 06-08-2012 03:07 AM |
Error on updating metadata in 0.6.44 | jomaweb | Calibre | 3 | 03-06-2010 01:05 PM |