|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Enthusiast
![]() Posts: 45
Karma: 70
Join Date: Jan 2012
Location: Brazil
Device: Galaxy A16 5G
|
Question about the new Bookshelf view in Calibre 9 and the Pages database field
I have noticed a new "Pages" line in the book details. The thing is, it reports the value as "error." Clicking on it suggests that the value actually saved on that database field is "-2". Which means that the "error" displayed appears to make sense, since page numbers shouldn't be negative.
Researching the topic a little bit led to the Calibre 9 release notes, where it's mentioned that this field is used to generate the book thickness in the new Bookshelf View, and that the value is maintained automatically. I checked and noticed that for ALL the books in my bookshelf (and there are A LOT of them, I download a lot of stuff and convert it to epub with calibre) that field has either the value of "calculating" or "error." And Calibre IS scanning the library, the number of "error" is rising steadily with time. Oddly, despite the "pages" field having the same value (-2) for all books, the Bookshelf view appears to be estimating thickness somewhat correctly -- books I know are particularly long are shown as "thicker" than others, although not entirely proportionally (maybe it's inferring length from filesize if the Pages field is not available?) My question, then, is: what might be wrong with my collection since all the books scanned end up with invalid page counts, and how do I fix it? |
|
|
|
|
|
#2 | |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,288
Karma: 30317806
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
|
|
|
|
|
#3 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,491
Karma: 62503914
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Is it possible that this -2 is actually an value overflow for a really LARGE book?
|
|
|
|
|
|
#4 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,023
Karma: 150831497
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
|
|
|
|
#5 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,288
Karma: 30317806
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Version 9 - database update details
When an existing library is first opened , the three unused columns in the 'books' table are removed, the 'books_pages_link' table is created and a row for every book inserted with the pages, algorithm, format, and format_size cells set to 'empty', the needs_scan cells are set to '1'.
When the Shelf View is opened the pages, algorithm, format, format size, are populated and needs_scan is set to '0'. A negative 'pages' value seems to indicates the book has no suitable formats - e.g. audio book files - mp3, m3u files etc BR Last edited by BetterRed; 02-01-2026 at 04:51 PM. |
|
|
|
|
|
#6 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,981
Karma: 29579516
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Go to Preferences->Look & feel->Bookshelf view and click the Show count failure log and you will see what the error is.
|
|
|
|
|
|
#7 |
|
Enthusiast
![]() Posts: 45
Karma: 70
Join Date: Jan 2012
Location: Brazil
Device: Galaxy A16 5G
|
Thanks, @kovidgoyal. I checked where you recommended. Got a lot of similar entries (the error seems to be the same for every book). Posting an example below:
[2026-01-30 19:02:28.486381+00:00] Failed to count pages for book 12338 EPUB 'Justice League: Eidolon', 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 |
|
|
|
|
|
#8 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,981
Karma: 29579516
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That indicates something is killing the worker process used for page counting on your machine. Try rebooting in safe ode and recounting.
|
|
|
|
![]() |
| Tags |
| bookshelf view, calibre 9, database, page count |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is there still a bookshelf view? | Panupat | Calibre | 10 | 07-01-2021 09:03 PM |
| Moon+ Reader bookshelf view question | TPropes | Android Devices | 6 | 08-17-2014 07:23 PM |
| Bookshelf view? | MSWallack | Marvin | 9 | 12-06-2013 08:40 AM |
| Add bookshelf view? | Smalis | Calibre | 29 | 09-29-2010 08:55 AM |
| Bookshelf type view? | foghat | Amazon Kindle | 6 | 09-19-2010 11:20 AM |