10-12-2022, 09:06 PM | #1 |
Connoisseur
Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
|
Crashing on launch on macOS
I was doing some stuff in calibre, and things started acting a bit weird. I was using an Action Chain to unpack some Kindle books, and it started throwing errors that made it seem it was trying to act on books other than the ones that were selected.
I figured I'd try quitting and relaunching calibre and see what happened, but now it's crashing every time I try to launch it. I tried rebooting my Mac and downloading a new version of calibre, but that didn't help. I am attaching the crash report and also the output of Code:
/Applications/calibre.app/Contents/MacOS/calibre-debug -g Any ideas what's gone wrong? Thanks. Last edited by tamaracks; 10-12-2022 at 09:07 PM. Reason: Forgot to attach debug output. |
10-12-2022, 09:49 PM | #2 |
Sigil Developer
Posts: 8,109
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Just a guess but based on your debug.txt:
Code:
Failed to initialize plugin: '/Users/tamara/Library/Preferences/calibre/plugins/Goodreads More Tags.zip' Does it still crash at start up? Last edited by KevinH; 10-12-2022 at 09:52 PM. |
Advert | |
|
10-12-2022, 10:24 PM | #3 |
creator of calibre
Posts: 44,381
Karma: 23766374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This is definitely plugin related, run calibre as
/Applications/calibre.app/Contents/MacOS/calibre --ignore-plugins and it should hopefully startup fine. Although looking at the debug log some plugin has created some very strange custom column templates, which might be causing issues as well. |
10-12-2022, 11:44 PM | #4 | |
Connoisseur
Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
|
Quote:
I removed the goodreads more tags plugin and the dedrm plugin, and any associated files I could see. I also remove everything in the custom_recipes folder, because that was all ancient and nothing I'm using now. Launching with the ignore plugins flag now gives this output: Code:
❯ /Applications/calibre.app/Contents/MacOS/calibre --ignore-plugins ─╯ ['Not all dates have values'] fish: Job 1, '/Applications/calibre.app/Conte…' terminated by signal SIGSEGV (Address boundary error) Can you tell me more about what you are seeing with custom columns? |
|
10-13-2022, 12:54 AM | #5 |
creator of calibre
Posts: 44,381
Karma: 23766374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
See
Code:
Traceback (most recent call last): File "calibre/utils/formatter.py", line 1722, in safe_format File "calibre/utils/formatter.py", line 1616, in evaluate File "calibre/utils/formatter.py", line 1524, in _eval_program File "calibre/utils/formatter.py", line 851, in program File "calibre/utils/formatter.py", line 865, in expression_list File "calibre/utils/formatter.py", line 1417, in expr File "calibre/utils/formatter.py", line 1415, in expr File "calibre/utils/formatter.py", line 873, in do_node_if File "calibre/utils/formatter.py", line 1417, in expr File "calibre/utils/formatter.py", line 1414, in expr File "calibre/utils/formatter.py", line 865, in expression_list File "calibre/utils/formatter.py", line 1417, in expr File "calibre/utils/formatter.py", line 1415, in expr File "calibre/utils/formatter.py", line 985, in do_node_func File "calibre/utils/formatter.py", line 1417, in expr File "calibre/utils/formatter.py", line 1414, in expr File "calibre/utils/formatter.py", line 865, in expression_list File "calibre/utils/formatter.py", line 1417, in expr File "calibre/utils/formatter.py", line 1415, in expr File "calibre/utils/formatter.py", line 1108, in do_node_field File "calibre/utils/formatter.py", line 1106, in do_node_field File "calibre/utils/formatter.py", line 829, in error ValueError: Interpreter: Unknown field '#catalog_status' - line number 2 Error evaluating column named: *row1098663422593704131 --with-library=/tmp/empty |
Advert | |
|
10-13-2022, 04:32 PM | #6 | |
Connoisseur
Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
|
Quote:
Launching with the empty library works. Do you have a suggestion for what to do after that? |
|
10-13-2022, 04:34 PM | #7 |
Connoisseur
Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
|
Oh, and this is what outputs in terminal when launching with the empty library:
Code:
Using library at /tmp/empty calibre_plugins.librarything_match.fuzzywuzzy.fuzz:11: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile ActionChains::actions/calibre_actions2.py - exception when loading translations ActionChains::actions/sort.py - exception when loading translations |
10-13-2022, 05:27 PM | #8 |
Connoisseur
Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
|
I couldn't stop thinking about the two bits of information in the debug output that pertain to stuff I did, which was about the column #catalog_status and the message 'Not all dates have values'.
So I perused the metadata_db_prefs_backup.json file for my library. I don't have the #catalog_status column anymore, I do have one called #cat_status (I guess I decided I wanted to recreate it with a shorter name). But #catalog_status still appears in a couple places; a saved search and a column color rule. Saved search: Spoiler:
Column color rule: Spoiler:
The phrase 'Not all dates have values' shows up in a template function (which I am pretty sure is also the basis of a custom column). Template function: Spoiler:
I'm not quite sure why any of these are triggering a problem now. Unless I only deleted the old #catalog_status column recently. I do recall deleting some columns I wasn't using, I just can't remember if that was one of them. Can any of this stuff be deleted from the database to fix it? Or is there some other way to fix it? Thanks. |
10-13-2022, 08:37 PM | #9 |
null operator (he/him)
Posts: 20,946
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
AFAIK: if you delete a custom column the onus is on you to 'correct' any references to the custom column in save templates, virtual library searches, action chains etc.
BR |
10-13-2022, 11:01 PM | #10 |
creator of calibre
Posts: 44,381
Karma: 23766374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use the calibredb command line tool to delete whatever custom columns you have that refer to the removed custom column. Or alternately just import all books from your old library into a new empty library without custom columns, by right clicking on add books and choosing add from folders and sub folders->one book per folder
This will preserve all basic metadata and any custom metadata for columns which you have created in the new empty library with the same name and type as in the old library. |
10-14-2022, 01:01 AM | #11 | |
Connoisseur
Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
|
Quote:
Thanks so very much for the help! |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
5.4.0 Crashes on Launch; macOS 12.3.1 | LouisPiper | Calibre | 5 | 04-12-2022 08:09 PM |
[MacOS] Failed to launch worker processes | tetrault | Calibre | 1 | 06-19-2021 09:51 PM |
Calibre constantly crashing in macOS Sierra | phunnylinguist | Calibre | 10 | 01-14-2018 06:29 AM |
Latest Calibre for Mac crashing on launch | DP812 | Calibre | 4 | 02-03-2016 10:53 AM |
Can't launch Calibre on MacOS | peterloron | Calibre | 2 | 12-31-2009 02:35 AM |