Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-22-2025, 05:13 PM   #1
MikesBooks
Junior Member
MikesBooks began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2025
Device: Kindle
Exclamation AttributeError and Lots of crashes...

Calibre 8.4 keeps crashing when adding books, sometimes it just won't open.

Here are some of the different errors:
Spoiler:

ERROR: Unhandled exception: <b>AttributeError</b>:'int' object has no attribute 'get'
----
Traceback (most recent call last):
File "calibre\gui2\add.py", line 516, in process_duplicate
StopIteration
---
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\gui2\tag_browser\view.py", line 1548, in recount_with_position_based_index
File "calibre\gui2\tag_browser\view.py", line 1569, in recount
File "calibre\gui2\tag_browser\model.py", line 594, in rebuild_node_tree
File "calibre\gui2\tag_browser\model.py", line 607, in _run_rebuild
File "calibre\gui2\tag_browser\model.py", line 682, in _rebuild_node_tree
File "calibre\gui2\tag_browser\model.py", line 963, in _create_node_tree
File "calibre\gui2\tag_browser\model.py", line 951, in process_one_node
AttributeError: 'int' object has no attribute 'get'


--------------
Added Those Who Stayed: A Vietnam Diary to db in: 1.1
send() failed in worker, terminating worker
Traceback (most recent call last):
File "calibre\utils\ipc\pool.py", line 378, in worker_main
File "calibre\utils\ipc\__init__.py", line 20, in eintr_retry_call
File "multiprocessing\connection.py", line 200, in send_bytes
File "multiprocessing\connection.py", line 289, in _send_bytes
BrokenPipeError: [WinError 232] The pipe is being closed
send() failed in worker, terminating worker
Traceback (most recent call last):
File "calibre\utils\ipc\pool.py", line 378, in worker_main
File "calibre\utils\ipc\__init__.py", line 20, in eintr_retry_call
File "multiprocessing\connection.py", line 200, in send_bytes
File "multiprocessing\connection.py", line 289, in _send_bytes
BrokenPipeError: [WinError 232] The pipe is being closed
----------------
File "calibre\db\fields.py", line 604, in book_value_map
File "calibre\db\fields.py", line 604, in <dictcomp>
TypeError: 'tuple_iterator' object does not support the context manager protocol
-----------------
File "calibre\utils\icu.py", line 188, in change_case
TypeError: 'type' object cannot be interpreted as an integer
----------------
File "calibre\gui2\tag_browser\model.py", line 947, in process_one_node
UnboundLocalError: cannot access local variable 'ct' where it is not associated with a value
-----------------
File "calibre\gui2\tag_browser\model.py", line 951, in process_one_node
TypeError: 'dict' object is not callable
-----------------
File "calibre\gui2\tag_browser\model.py", line 951, in process_one_node
TypeError: 'bool' object does not support the context manager protocol
------------------
File "calibre\gui2\tag_browser\model.py", line 909, in <dictcomp>
AttributeError: 'list_iterator' object has no attribute 'tag'
-------------------
File "calibre\gui2\tag_browser\model.py", line 951, in process_one_node
AttributeError: 'int' object has no attribute 'get'
-----------------
File "calibre\db\tables.py", line 654, in <dictcomp>
TypeError: unhashable type: 'dict'


Things I've tried:
-Full text - Disabiled and Deleted the full text search db files

-Metadata - Deleted and spent 17 hrs rebuilding the metadata.db file

-Maintenance - Check library showed no errors

-Uninstalled & Reinstalled - 8.4 and even downgraded to a version of 7 I still had

-Windows - SFC /scan now and dism /online /cleanup-image /scanhealth and restorehealth show no problems

-Locations - Database is on an internal D drive, and I have tried moving calibre program from C drive to D drive and back again with no change.

- Debug & No 3rd Party Plugins: still crashes in debug mode and debug w/no 3rd party plugins

There are 27,173 books in the database

I've gone through the threads trying a bunch of different things and I am stumped

Last edited by theducks; 05-22-2025 at 07:31 PM. Reason: SPOILER LOG files
MikesBooks is offline   Reply With Quote
Old 05-22-2025, 06:44 PM   #2
MikesBooks
Junior Member
MikesBooks began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2025
Device: Kindle
On a random thought, I created a new library and loaded 8.4.1000 and so far no crashes or issues.

Going back to the other library and still all the crashes in the world.
MikesBooks is offline   Reply With Quote
Advert
Old 05-22-2025, 07:14 PM   #3
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: 21,640
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Just to make sure it is not interference from a third party program, try Windows Safe mode.

You might have to rebuild the library, see ==>> https://www.mobileread.com/forums/sh...93&postcount=4

BR

Last edited by BetterRed; 05-22-2025 at 07:22 PM. Reason: grammar
BetterRed is offline   Reply With Quote
Old 05-22-2025, 07:39 PM   #4
MikesBooks
Junior Member
MikesBooks began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2025
Device: Kindle
Quote:
Originally Posted by BetterRed View Post
Just to make sure it is not interference from a third party program, try Windows Safe mode.

You might have to rebuild the library, see ==>> https://www.mobileread.com/forums/sh...93&postcount=4

BR
Thanks for the suggestion!

I had tried it in windows safe mode, and I doubly checked to make sure even windows security and defender were set to off.

I have a feeling I might just have to rebuild the library though ... I tried rebuilding the metadata.db and that didn't solve it either.

It's a pretty new computer, less than a year old, and the only things installed at Calibre, Office 2017, and Adobe Digital Editions, Kindle 4 PC, and Firefox.

I really hope I don't have to re-add all 27k books... but I might just have to at this point. Oof!
MikesBooks is offline   Reply With Quote
Old 05-22-2025, 10:55 PM   #5
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,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Those definitely look like corruption issues in your library. You say you tried rebuild library database? What happened when you did?
kovidgoyal is online now   Reply With Quote
Advert
Old 05-22-2025, 11:07 PM   #6
MikesBooks
Junior Member
MikesBooks began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2025
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
Those definitely look like corruption issues in your library. You say you tried rebuild library database? What happened when you did?
Moderator Notice
Changed to attachment. Please follow MR image guidelines


I did, and after over 12 hrs or so it showed it as done. So I added another book and it immediately crashed and gave me more of those errors.

I did both of the delete metadata and restore, and then I tried the starting from a blank and add books from the old folder.

With the delete metadata and restore, I still get crashes. With the add books it added only 900 of the 27k and then crashed.

I also checked both hard drives (internal C and D) for errors (chkdsk and windows error checking) and defrag and found no problems. Even downloaded a hard drive S.M.A.R.T program and it found no issues with either drive.

see attachment

But it's still crashing constantly and I can't figure it out.
Attached Thumbnails
Click image for larger version

Name:	6dd70aba0884bafaed447e4524ac843ddb83cfd2.jpg
Views:	13
Size:	49.3 KB
ID:	215813   Click image for larger version

Name:	97463972a4f4b5299075bf094342438d63c02458.png
Views:	13
Size:	85.2 KB
ID:	215814  

Last edited by theducks; Yesterday at 12:13 AM.
MikesBooks is offline   Reply With Quote
Old Yesterday, 01:44 AM   #7
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: 21,640
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by MikesBooks View Post

I did both of the delete metadata and restore, and then I tried the starting from a blank and add books from the old folder.

With the delete metadata and restore, I still get crashes. With the add books it added only 900 of the 27k and then crashed.
The first screen shot you posted is from the Restore database feature, if you add books from an existing library folder, as per the link to Kovid's recommendation in my previous post, you will see something like this:

Click image for larger version

Name:	Screenshot 2025-05-23 153939.jpg
Views:	16
Size:	17.6 KB
ID:	215817

BR
BetterRed is offline   Reply With Quote
Old Yesterday, 01:51 AM   #8
MikesBooks
Junior Member
MikesBooks began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2025
Device: Kindle
Quote:
Originally Posted by BetterRed View Post
The first screen shot you posted is from the Restore database feature, if you add books from an existing library folder, as per the link to Kovid's recommendation in my previous post, you will see something like this:

Attachment 215817

BR
Yeah I tried that and it got to 900 books and then just crashed out. No screen shot because it was going good and then... was gone!
MikesBooks is offline   Reply With Quote
Old Yesterday, 03:30 AM   #9
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,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Reboot in safe mode and run

calibredb restore_database -r

in a windows command prompt

After that finishes try starting calibre while still in safe mode as

calibre --ignore-plugins

and see if it is working.
kovidgoyal is online now   Reply With Quote
Reply

Tags
calibre 8.4.0, crashing, techsupport


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CBZ to PDF AttributeError Pannette Conversion 7 09-26-2021 07:20 PM
[iOS] CC crashes with lots of books nimapourkarimi Calibre Companion 2 10-12-2018 07:51 PM
Lots of Crashes with 7.4.0 jonalbert Sigil 6 03-20-2014 05:34 PM
Lots of Crashes: MySQL Database! emax Calibre 1 08-25-2011 06:51 AM
Unhandled exception: AttributeError? unboggling Calibre 2 08-17-2011 02:08 AM


All times are GMT -4. The time now is 01:06 AM.


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