|
|
#1 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
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,043
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.
|
|
|
|
|
|
#3 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
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,043
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: 31
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.
|
|
|
|
|
|
#6 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,043
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: 31
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,437
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: 31
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: 28
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. |
|
|
|
|
|
#11 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 59820
Join Date: Jul 2009
Device: Kobo
|
I have an update of sorts. There was a quirk I had run into with Windows/Calibre in the past that I had forgotten about which is probably related to why it wasn't working for me.
If I run the Calibre portable executable directly everything works fine as expected. If I create a shortcut somewhere (e.g., my desktop) and run Calibre that way, everything works fine as expected. HOWEVER, if I run the Calibre portable executable and pin it to the taskbar, without doing anything else special, when I subsequently try to run Calibre using the taskbar shortcut, it does NOT recognize my portable library (nor any of my settings) and creates a default library in my user folder with default settings. I can, of course, tell it to open my actual library in the portable location, but I shouldn't have to do that. The (Windows) problem is that the shortcut created when one pins Calibre to the taskbar is not targeting the portable executable, it's targeting the Calibre.exe inside the Calibre subfolder of the portable installation. I don't remember what my previous solution for this was (perhaps an environmental variable?), but it seems likely that it broke something that was leading to the page counting error, as well as the really slow book viewer issue I'd been annoyed with for the last year or so. This time I edited the path within the taskbar shortcut to point to the correct executable (as well as the "Start in:" directory) and that seems to have fixed the taskbar shortcut without breaking Calibre functionality. Certainly an easier solution. Weirdly, you do have to edit a shortcut you pin, you cannot simply drop a new shortcut into the Taskbar quick start directory... (this was a change at some point (Win11?), probably security related, because there was a time a number of years ago where you could absolutely do this). MS somehow recognizes this as created in a different manner and blocks it from appearing in the taskbar...all of which is still buried under an Internet Explorer user directory path, because why not continue to rely on horribly out of date concepts and directories you cooked into your OS decades ago. |
|
|
|
|
|
#12 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,437
Karma: 31000056
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
It's you that's stuck in the past.
Opportunistic pinning from the taskbar itself, and dropping shortcuts into the taskbar shortcuts folder hasn't been necessary for some time, more recently it hasn't been possible. Firstly you need to pin the portable launcher to the taskbar, not the program it launches. And you do that with File Explorer: IMO calibre-portable.exe should be shipped with a different icon, e.g put ot in a frame. BR |
|
|
|
|
|
#13 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,549
Karma: 62543878
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Add a luggage handle? |
|
|
|
|
|
|
#14 |
|
Belgian Pommes Frites
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 137
Karma: 35038
Join Date: Jan 2012
Device: Pocketbook Touch HD
|
Having read this thread, I looked at my data and could also see the message Pages: error in the window "Book details" with all the data and the comments of the book.
As I have been editing quite a few books lately, I went back through all the books and noticed the following: all the new books I added, had the error. Some of the books that were already in the database had the error, and some didn't. I am running it on windows 11 with all the latest updates (updated last on 11th feb 2026). And I only use windows defender as antivirus. I did not change anything to shortcuts, or to pinning things on the taskbar, or environment variables. I am using the desktop calibre version, not the portable one. On running calibre-debug.exe directly in c:\program files\calibre2, without any options, I got this message: Spoiler:
Removing the job spy plugin solved this problem, but I am not sure what these syntax warnings relate to. I then rebooted in safe mode, but that gave the same results. Using the "Re-count the pages in this book" option from the popup menu in the book details panel, does work, and gives the number of pages. But not for all the books I tried. So I still wonder why I get the pages error. Last edited by theducks; Today at 12:00 PM. Reason: additional info, Added Spoiler for Log files |
|
|
|
![]() |
|
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 |