|
|
#1 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 59820
Join Date: Jul 2009
Device: Kobo
|
Bug in New Page Counting - All books listed as Error
Every single book in my library has "Error" listed as the page count, based on the new built-in pages column. I have tried regenerating them for single books and it still fails. If I go to the bookshelf view and look at the page count log, I get the following log:
[2026-02-22 18:31:21.940476+00:00] Failed to count pages for book 22460 EPUB 'The Hobbit: Or There and Back Again', with error: Traceback (most recent call last): File "multiprocessing\connection.py", line 338, 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\db\page_count.py", line 163, in count_book File "calibre\library\page_count.py", line 244, in count_pages File "calibre\utils\ipc\__init__.py", line 20, in eintr_retry_call File "multiprocessing\connection.py", line 256, in recv File "multiprocessing\connection.py", line 353, in _recv_bytes EOFError It is the identical error for every book. I have the latest version, 9.3.1, Windows portable install. |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,022
Karma: 29579868
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
THat indicates something on your system is killing the worker process that does the counting, typically antivirus/security software. Try rebooting in safe mode and see if it works to confirm.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 59820
Join Date: Jul 2009
Device: Kobo
|
As someone else has already reported, rebooting into safe mode does not fix the problem. The same error message is generated in safe mode as normal mode. The only antivirus/security software I am running is the standard Windows security (MS Defender, etc), no third party AV.
I had a suspicion so I tried something. I did a normal install rather than the portable. It works for the normal install, but does not work for the portable install. The problem is explicitly with the portable version. |
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,022
Karma: 29579868
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Does not reproduce for me with calibre portable (the version from the official calibre website not portableapps or similar). And I dont see why running portable versus normal should make any difference.
|
|
|
|
|
|
#5 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 59820
Join Date: Jul 2009
Device: Kobo
|
All my installs are from the official website. I cannot explain why the portable version does not work but the regular one does.
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,022
Karma: 29579868
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Try restarting calibre in debug mode and see if there is anythinguseful in the debug log when a failure occurs.
|
|
|
|
|
|
#7 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 59820
Join Date: Jul 2009
Device: Kobo
|
Here is something fascinating: When I restarted Calibre in debug mode the page counting started working (using the "Re-count the pages in this book" option from the popup menu in the book details panel).
When I shut it down and restarted it in normal mode, it went back to not working. |
|
|
|
|
|
#8 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,397
Karma: 31000056
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Do you have any calibre related Environment Variables set ?
https://manual.calibre-ebook.com/cus...ment-variables BR |
|
|
|
|
|
#9 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 59820
Join Date: Jul 2009
Device: Kobo
|
No, but in confirming this I have inadvertently fixed the problem, even though I really do not remotely understand what was causing it in the first place.
I have Calibre pinned to my taskbar, which is how I launch it 99.99% of the time. I tried running the executable directly and discovered page counting worked. I closed it and ran it from the "taskbar pin" and it did not work. So I unpinned, re-ran the executable directly, then re-pinned it. Now when I run it from the fresh "pin" it works correctly. It's the same exact version of Calibre (I only have the portable, as I had uninstalled the regular version after my earlier test), but somehow the pinned shortcut must have had something odd associated with it that was blocking the threads from running. I do not recall that there were any environmental variables or customized settings for that particular shortcut, but as I already remove it I have no obvious way to recover it and check. On the other hand, I wonder if maybe there was... the one environmental variable that jumped out at me as possibly customized was the calibre_cache_directory. Ever since the Calibre book viewer was completely updated a few years ago (I don't recall the timeline), I've had a lot of problems with books opening very slowly as the "preparing books for first view" took a surprisingly long time to run (frequently 10-20 seconds). At one point I think there was a suggestion the cache needed to be repointed to fix this and I may have set that variable at that time (although what I set it to is a mystery at this stage). I just noticed that books are now opening almost instantaneously when they had never done so previously (at least not since that major rewrite of the book viewer). Clearly something else was "fixed" or otherwise cleared up when the shortcut was recreated. |
|
|
|
|
|
#10 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 25
Karma: 6256
Join Date: Nov 2014
Location: Byford, Western Australia
Device: IPad Pro 12.9, 10.5, IPhone 16
|
I had the same problem, but I had page counts working in the portable version and not the installed version.
I copied the books from portable with their page counts and after that any new books counted ok. I never did find out what the problem was, but page counts work on both now. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cover page getting duplicated in spine - user error or bug? | ownedbycats | Conversion | 8 | 09-30-2023 05:51 AM |
| Question about counting books | Arrow | Library Management | 13 | 03-19-2014 07:46 PM |
| # of kindle e-book licenses NOT listed on product page | med007 | Amazon Kindle | 15 | 11-04-2011 09:30 AM |
| 'Page Error' on some books | deadgloves | Sony Reader | 8 | 05-21-2011 04:00 PM |
| Page numbering and counting | PKFFW | OpenInkpot | 5 | 10-31-2009 07:34 AM |