Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-31-2026, 07:26 PM   #1
MCBastos
Enthusiast
MCBastos is on a distinguished road
 
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?
MCBastos is offline   Reply With Quote
Old 01-31-2026, 08:09 PM   #2
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: 22,286
Karma: 30317806
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by MCBastos View Post
. . .

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?
You can't 'fix it', but you can choose to pretend the pages/Pages column doesn't exist. You can also set a fixed width:

Click image for larger version

Name:	shelf width.jpg
Views:	74
Size:	157.7 KB
ID:	220647

BR
BetterRed is online now   Reply With Quote
Old 01-31-2026, 09:08 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,489
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?
theducks is offline   Reply With Quote
Old 01-31-2026, 09:21 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 82,021
Karma: 150831497
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by theducks View Post
Is it possible that this -2 is actually an value overflow for a really LARGE book?
One thing to try is after all the books have the pages counted, sort by pages, select all the books with -2 and have calibre count again for those books.
JSWolf is offline   Reply With Quote
Old 01-31-2026, 10:35 PM   #5
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: 22,286
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
Attached Thumbnails
Click image for larger version

Name:	book-pages updates.jpg
Views:	84
Size:	499.6 KB
ID:	220650  

Last edited by BetterRed; 02-01-2026 at 04:51 PM.
BetterRed is online now   Reply With Quote
Old 01-31-2026, 10:40 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,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.
kovidgoyal is offline   Reply With Quote
Old 02-03-2026, 01:17 AM   #7
MCBastos
Enthusiast
MCBastos is on a distinguished road
 
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
MCBastos is offline   Reply With Quote
Old 02-03-2026, 01:18 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,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.
kovidgoyal is offline   Reply With Quote
Reply

Tags
bookshelf view, calibre 9, database, page count


Forum Jump

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


All times are GMT -4. The time now is 02:19 AM.


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