![]() |
#1 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,939
Karma: 27060151
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
[Mac] calibre quits after doing anything. How to recover?
calibre 6.2.1 running on iMac 27" (2020), macOS 12.5
To make a long story shorter, I added a book that seemed to have some metadata calibre didn't like, and now maybe metadata.db is corrupt. I tried Restore database (it crashed after doing it), but problem persists. I managed to remove the apparently offending book. Now I cannot do anything after launching without it crashing. Including Restore database, Convert ePub->ePub, edit metadata. I'm not even sure if metadata corruption is the issue any more. I was getting similar error in Crash Report, but now don't even get those. Poof! Launching from command line, I'm getting segmentation fault: Quote:
Is there some command line option to trigger some logging? Last edited by tomsem; 08-01-2022 at 07:18 PM. |
|
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,939
Karma: 27060151
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
I discovered calibre-debug --gui, but it's not giving any new information, other than I'm getting Crash Report (attached).
|
![]() |
![]() |
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Go to console.app and get the proper crash report for calibre and post that.
|
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,939
Karma: 27060151
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Quote:
Basically it crashes whenever I try to leave a dialog (Cancel or OK). Things that process in background (copy to device etc.) work. And the CLI still works. Last edited by tomsem; 08-02-2022 at 12:09 AM. |
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I doubt it has anything to do with the database, but you can simply rename metadata.db to check. If its crashing there has to be a crash report somewhere unless your system is experiencing bigger problems.
|
![]() |
![]() |
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,939
Karma: 27060151
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
![]()
This was CR from earlier today.
But since then I'm only getting them when running calibre-debug. Otherwise it just quits instantly without generating one. I did experiment with moving metadata.db but it didn't help. I ran First Aid on the SSD volumes and it didn't report any problems. I tried installing new calibre.app (after renaming original calibre.app), problem is still happening. Maybe a system file is out of whack? I'll try reinstalling macOS. ![]() |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Run it in a terminal as
/Applications/calibre.app/Contents/MacOS/calibre and the run echo $? to get the exit code and see if anything is printed about why it quit. |
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,939
Karma: 27060151
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Reinstalling macOS did not help. However, getting CRs again.
Exit code is 139. 'segmentation fault' as always. Quote:
Last edited by tomsem; 08-02-2022 at 12:25 PM. |
|
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I'm going to need a backtrace to be able to say more about the cause. Another thing you can try is renaming ~/Library/Preferences/calibre and ~/Library/Caches/calibre which will cause calibre to start as though on a fresh system
|
![]() |
![]() |
![]() |
#10 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,939
Karma: 27060151
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Quote:
Latest CR attached |
|
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,751
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You could also try running Calibre with no plugins active. From a CLI/terminal window use the following command.
Code:
Calibre --ignore-plugins |
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,939
Karma: 27060151
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
I renamed Caches and Preferences folders, went through first use, and it crashed immediately. I tried using current db location, and a new one, with the same result. I don't see anything new in the CRs, but am attaching the latest of those.
So, not a database issue. I tried 6.1.0 and it also crashes, so it seems like a system thing. I grabbed the list of Open Files and Ports and eliminated everything in calibre.app (attached). I don't know if this gives us any clues about what else might be causing trouble. Deleting the 'saved state' folder didn't help any, but thought it worth a try. We do have a couple of M1 Macs (one I haven't set up yet). I guess this is as good an excuse to do so, and at least I would have a backup system ready to go (not that I have any reason to think anything's wrong with this one, other than this very strange issue with calibre). At any rate, CLI still works great. Who needs a GUI? Thank you! Last edited by tomsem; 08-03-2022 at 12:24 AM. |
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,939
Karma: 27060151
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
And yes all works fine on the M1 MacBook Air against the same metadata.db, more evidence, if any was needed, that it is okay.
|
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,939
Karma: 27060151
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Quote:
However, if I use the system UI close (little red X in upper left) it doesn't crash. But that doesn't let me do anything other than view. It looks like dialogs with Apply/Cancel instead of OK/Cancel work okay (either OK or Cancel kills). Last edited by tomsem; 08-03-2022 at 12:43 AM. |
|
![]() |
![]() |
![]() |
#15 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It appears to have something to do with the coca handleTSMEvent function, which is from the text input subsystem. DO you have something unusual on this machine related to text input? Perhaps some assistive technology or a third party IME extension?
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Quits Unexpectedly after updating to 2.27.0 | hirenlives | Calibre | 1 | 05-03-2015 04:59 PM |
Recover data Mac | zsx8989 | enTourage Archive | 5 | 12-28-2010 10:17 AM |