|
|
#1 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2025
Device: Kindle Voyage
|
Hello! I'm new here. I can't believe I didn't know about this website and forum!
I posted on Reddit because I had a problem with Calibre and was advised to post it here as well. I have found what causes the problem (and a temporary fix for it) but I don't know WHY it happens. Maybe someone here can help me figure it out? If there is anything you want to know about my set-up or if you want me to test anything, please let me know! I will post what I posted on Reddit, because that has all the details: Start of Reddit post I'm experiencing extreme startup times with Calibre (8.13.0, now upgraded to 8.14) on macOS 26.1. Opening my library of 20K+ books takes 30+ minutes, often appearing to hang completely before eventually loading. What works normally:
What I've tested without success:
System:
The fact that --ignore-plugins makes it fast suggests a built-in plugin or initialization routine is the culprit, but I can't identify which one. Has anyone experienced similar issues with large libraries? Any suggestions for further troubleshooting? Thanks in advance! EDIT (of Reddit post): SOLVED! Solved meaning I know what's causing the problem and what to do about it, but I still don't know WHY it is happening. After lots and lots of troubleshooting, I found the following (with a little help from Claude and ChatGPT 😉 :Calibre took 30+ minutes to start with my 20K+ library, using 46GB RAM (!) and pegging CPU at 100%. Root Cause: Corrupt/problematic cache folders created during runtime: ~/Library/Caches/calibre/aa/ ~/Library/Caches/calibre/ev2/ ~/Library/Caches/calibre/gui-thumbnail-cache/ ~/Library/Caches/calibre/qwe/ These remain after quit and cause the next startup to hang with Text Services Manager (TSM) failures and massive memory leaks. TSMSendMessageToUIServer: CFMessagePortSendRequest FAILED(-1) With 20K+ books = 20K+ failed calls = massive delays + memory leak. If it happens again: killall calibre 2>/dev/null rm -rf ~/Library/Caches/calibre/* /tmp/calibre-* 2>/dev/null sleep 2 /Applications/calibre.app/Contents/MacOS/calibre And if the problem persists, reset TSM: sudo rm -rf /System/Library/Caches/com.apple.IntlDataCache* sudo rm -rf /var/folders/*/*/*/com.apple.IntlDataCache* sudo reboot Startup now takes a few seconds instead of 30+ minutes! End of Reddit post. Any help or input is very much appreciated! Thanks in advance! |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,643
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
caches are supposed to remain after quit, that's the whole point of on disk caches. As usual with macOS, I recommend checking that all the various accessibility tools under the System Preferences->Accesibility are turned off. They typically cause crashes not slowdowns but who knows.
|
|
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jun 2025
Device: Android running Moon+ Reader Pro
|
Interesting. On Windows I started experiencing long startup times starting sometime in the last 90 days. I've got about 5K books, and the FIRST startup takes about 2 minutes, with the "Starting up, please wait...\n\nStarting calibre: loading books..." banner staying onscreen the whole time. If I immediately exit and restart the app when it finally comes up it launches in < 2 seconds. If I go to Task Manager during the long startup I see two threads running: "The main calibre program" and "calibre worker process". If I terminate that latter BEFORE calibre fully loads and then restart calibre, that ALSO results in a quick start.
I don't know how long the "loads quickly after sitting through a long start" behavior lasts. At some point, after being unloaded for an indeterminate period of time, the slow start behavior returns. (For example, if I unload it and go away for several hours before trying to restart then I again have to wait 2+ minutes for restart to complete.) Currently on 8.14, and this long restart behavior started happening at some point in the 8.x series, but not certain when. Did not exist more than 3 months ago, however, fwiw. |
|
|
|
|
|
#4 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2025
Device: Kindle Voyage
|
I found something else:
/Applications/calibre.app/Contents/MacOS/calibre (through Terminal): Fast startup (2-3 seconds) Open /Applications/calibre.app (through Finder or launching via Spotlight/Alfred): Slow startup (30+ minutes) The app bundle launcher clearly behaves differently than the direct executable. Is there an explanation for this? |
|
|
|
|
|
#5 |
|
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,148
Karma: 111120239
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
About 3 seconds via GUI. 9K ebooks and some PDFs. OS is on SSD and library is on an ordinary SATA HDD.
Linux Mint, old Optiplex 5070 with Intel® Core™ i7-9700 CPU @ 3.00GHz × 8 and 16M RAM. Graphics is poor Mesa Intel® UHD Graphics 630 (CFL GT2). A 4K screen. |
|
|
|
|
|
#6 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,069
Karma: 243829945
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Mine takes about 10 seconds, over 35 000 books (no PDF files), lots of plugins and custom columns. SSD, 32GB RAM, Intel i7-10875H. Also 4K screen.
The sub-library with about 3500 books takes 6 seconds, so it's probably customizations and plugins, not the number of books. |
|
|
|
|
|
#7 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,297
Karma: 62000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
# of books only applies to the DB (size gets bigger with count and amount of metadata in the GUI) (and maybe some thumbnails) being accessed.
I have way more book entries (a lot are 'empty books' that just doc my paper Library My metadata.db is 60M, but I only have few Notes. I trim the fluff out of comments. Windows does take some time before the splash screen and it is DEFENDER (taskman), but I have already excluded calibre2, so it is something else (it did get worse starting mid 7.x0) FWIW My program dirs are on SSD, but my library is on spinning rust. When was the last time you ran (at least phase1 of) Library Maintenance? |
|
|
|
|
|
#8 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,069
Karma: 243829945
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
My database is 480 MB. Comments are the least of it, I think, as they've all been edited by hand.
Calibre libraries have been excluded from Defender, but not the program itself. I now excluded the program and the startup time is 7 seconds instead of 10. Not perfect, but tolerable. |
|
|
|
|
|
#9 |
|
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,148
Karma: 111120239
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Try excluding onedrive and anti-virus.
|
|
|
|
|
|
#10 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,069
Karma: 243829945
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
|
|
|
|
|
#11 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2025
Device: Kindle Voyage
|
Correct, no Onedrive!
|
|
|
|
|
|
#12 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,039
Karma: 30277960
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
|
|
|
|
|
#13 | |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Nov 2025
Device: Kindle Voyage
|
Quote:
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 'Get List of Books on Device' Taking 2100 Minutes Plus | pjmpjm | Devices | 23 | 10-23-2023 08:59 AM |
| open a book .mobi with calibre is taking 15 minutes, normal ????? | tancraide | Calibre | 17 | 02-12-2020 03:58 PM |
| sony 950 taking 10 minutes to load homescreen | sovre | Sony Reader | 22 | 11-17-2011 02:33 AM |
| Calibre on Linux taking 2 minutes to start | mightymouse2045 | Calibre | 9 | 08-14-2011 01:55 AM |
| PRS-600 An hour and 20 minutes start up time! | eric11210 | Sony Reader | 36 | 08-17-2010 05:32 AM |