Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-01-2022, 06:59 PM   #1
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
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:
Last login: Mon Aug 1 15:51:18 on ttys003
/Applications/calibre.app/Contents/MacOS/calibre ; exit;
(base) ➜ ~ /Applications/calibre.app/Contents/MacOS/calibre ; exit;
[1] 1998 segmentation fault /Applications/calibre.app/Contents/MacOS/calibre

Saving session...completed.

[Process completed]
The Crash Reports from before have similar error.

Is there some command line option to trigger some logging?

Last edited by tomsem; 08-01-2022 at 07:18 PM.
tomsem is offline   Reply With Quote
Old 08-01-2022, 09:14 PM   #2
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
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).
Attached Files
File Type: txt calibre-debug-2022-08-01-180523_ips.txt (48.8 KB, 219 views)
tomsem is offline   Reply With Quote
Advert
Old 08-01-2022, 10:58 PM   #3
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,349
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.
kovidgoyal is offline   Reply With Quote
Old 08-02-2022, 12:06 AM   #4
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 6,939
Karma: 27060151
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
Quote:
Originally Posted by kovidgoyal View Post
Go to console.app and get the proper crash report for calibre and post that.
This is what I did for the post above (had to rename the extension to upload).

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.
tomsem is offline   Reply With Quote
Old 08-02-2022, 01:19 AM   #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,349
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 08-02-2022, 02:21 AM   #6
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 6,939
Karma: 27060151
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
Wink

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.
Attached Files
File Type: zip calibre-2022-08-01-142213.ips.zip (8.9 KB, 779 views)
tomsem is offline   Reply With Quote
Old 08-02-2022, 03:33 AM   #7
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,349
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.
kovidgoyal is offline   Reply With Quote
Old 08-02-2022, 12:22 PM   #8
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
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:
(base) ➜ Downloads /Applications/calibre.app/Contents/MacOS/calibre
[1] 1927 segmentation fault /Applications/calibre.app/Contents/MacOS/calibre
(base) ➜ Downloads echo $?
139
(base) ➜ Downloads

Last edited by tomsem; 08-02-2022 at 12:25 PM.
tomsem is offline   Reply With Quote
Old 08-02-2022, 01:02 PM   #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,349
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
kovidgoyal is offline   Reply With Quote
Old 08-02-2022, 02:48 PM   #10
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 6,939
Karma: 27060151
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
Quote:
Originally Posted by kovidgoyal View Post
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
Yes, I was wondering how to do that.

Latest CR attached
Attached Files
File Type: zip calibre-2022-08-02-092135.ips.zip (8.8 KB, 758 views)
tomsem is offline   Reply With Quote
Old 08-02-2022, 03:52 PM   #11
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: 79,756
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
JSWolf is offline   Reply With Quote
Old 08-02-2022, 08:26 PM   #12
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
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!
Attached Files
File Type: zip calibre-2022-08-02-165959.ips.zip (7.6 KB, 758 views)
File Type: zip Open Files and Ports.txt.zip (1.2 KB, 85 views)

Last edited by tomsem; 08-03-2022 at 12:24 AM.
tomsem is offline   Reply With Quote
Old 08-03-2022, 12:24 AM   #13
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
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.
tomsem is offline   Reply With Quote
Old 08-03-2022, 12:35 AM   #14
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 6,939
Karma: 27060151
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
Quote:
Originally Posted by JSWolf View Post
You could also try running Calibre with no plugins active. From a CLI/terminal window use the following command.

Code:
Calibre --ignore-plugins
No change, still crashes when leaving most dialogs (e.g. Preferences, Metadata) with one of the buttons (Cancel/OK).

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.
tomsem is offline   Reply With Quote
Old 08-03-2022, 01:05 AM   #15
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,349
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?
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 03:54 PM.


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