Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-22-2024, 03:06 PM   #1
.tycho
Member
.tycho began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jan 2024
Device: Kobo Libra 2
Exclamation Calibre often crashes in macOS

Hi everyone!

I was hoping to report an issue I'm having in the latest version of calibre (7.15) on the lastest version of macOS (Sonoma 14.5 (23F79)) on a M2 MacBook Pro (Mac14,10). I'll add, this isn't specific to 7.15, as it's been happening for several weeks now.

While this crash isn't consistently reproducible, when it does happen, it always seems to be under the same circumstances. Specifically, when I'm in the main library mode, I'll search for something, whether it be author, series, etc. I'll select a row of the results, and then scroll up or down using the arrow keys on my keyboard to different rows. Boom -- crash to desktop.

I wish I could more reliably reproduce the crash, but alas, I cannot. I've checked, and all my installed plug-ins are the latest version, according to the User plugins window. I've also run Library Maintenance, and it says it found no errors in the library DB.

I use Calibre several times a week, and so any help would be greatly appreciated! Thank you for making such an awesome program!
Attached Files
File Type: txt calibre crash report.txt (134.5 KB, 178 views)

Last edited by .tycho; 07-22-2024 at 03:08 PM.
.tycho is offline   Reply With Quote
Old 07-22-2024, 08:19 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
I have no idea what version of Qt Calibre is using but if it is Qt 6.5.x series, Qt had a large number of bugs related to Accessibility only on macOS. The issues were not fixed fully until the Qt 6.6.2 series. Many mac users have macOS Accessibility tools installed like VoiceOver, and Rectangle, and etc. This causes lots of segfaults on macOS just navigating lists, tables, and things. We (Sigil) finally moved to Qt 6.6.2 just to get all the fixes. Sigil now uses Qt 6.7.2 and it is very stable on macOS when using or running concurrently Accessibility tools with MacOS.

See
https://bugreports.qt.io/browse/QTBUG-121008
and
https://bugreports.qt.io/browse/QTBUG-119526

as just 2 of many related Qt bug reports about crashing on macOS related to accessibility apps

Last edited by KevinH; 07-22-2024 at 08:50 PM.
KevinH is offline   Reply With Quote
Advert
Old 07-22-2024, 10:00 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: 44,563
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This definitely looks like a Qt bug, and yes calibre uses Qt 6.5.3 currently. It's on my TODO list to move to a newer Qt, there were some issues with it on Windows I need to investigate first.
kovidgoyal is online now   Reply With Quote
Old 07-23-2024, 03:34 PM   #4
.tycho
Member
.tycho began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jan 2024
Device: Kobo Libra 2
Thanks so much for getting back to me! So it does look like this is a bug with Qt and macOS Accessibility features. I use a brilliant app called Alfred that works by using macOS Accessibility hooks.

Here's to hoping you can move to a newer version of Qt. Thanks again!
.tycho is offline   Reply With Quote
Old 07-23-2024, 04:46 PM   #5
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: 76,474
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by .tycho View Post
Thanks so much for getting back to me! So it does look like this is a bug with Qt and macOS Accessibility features. I use a brilliant app called Alfred that works by using macOS Accessibility hooks.

Here's to hoping you can move to a newer version of Qt. Thanks again!
Do you need to use Alfred? Can you uninstall it and turn off the accessibility features?
JSWolf is offline   Reply With Quote
Advert
Old 07-24-2024, 03:14 PM   #6
.tycho
Member
.tycho began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jan 2024
Device: Kobo Libra 2
Quote:
Originally Posted by JSWolf View Post
Do you need to use Alfred? Can you uninstall it and turn off the accessibility features?
Yes, I absolutely need Alfred. I probably use it 15-20 times per day.

So I used ChatGPT to make an AppleScript for me that quits Alfred, launches Calibre, waits for Calibre to quit, and then launches Alfred. And it works! So now to see if this solves the crashing issue...

Thanks!
.tycho is offline   Reply With Quote
Old 07-28-2024, 07:14 PM   #7
macaaron
Junior Member
macaaron began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2024
Device: iPad
Hello,

I have the same issue here (Macbook Air M3, Sonoma 14.5).

Thank you for the explanation.
Meanwhile, do we have a workaround to launch Calibre without Alfred, Roger, Gaston and other ChatGPT stuff?

Regards
macaaron is offline   Reply With Quote
Old 07-29-2024, 11:01 AM   #8
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: 76,474
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by macaaron View Post
Hello,

I have the same issue here (Macbook Air M3, Sonoma 14.5).

Thank you for the explanation.
Meanwhile, do we have a workaround to launch Calibre without Alfred, Roger, Gaston and other ChatGPT stuff?

Regards
It sounds to me like you should not use any app that's got a human name.
JSWolf is offline   Reply With Quote
Old 07-29-2024, 03:28 PM   #9
.tycho
Member
.tycho began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jan 2024
Device: Kobo Libra 2
Quote:
Originally Posted by macaaron View Post
Hello,

I have the same issue here (Macbook Air M3, Sonoma 14.5).

Thank you for the explanation.
Meanwhile, do we have a workaround to launch Calibre without Alfred, Roger, Gaston and other ChatGPT stuff?

Regards
Here's the AppleScript I've been using. Just paste it into Script Editor, replace the app name with whatever you use, click Compile to make sure it works for you, and then Save as an application. You can add multiple apps to quit and to activate after lines 2 and 11. I called mine Cailibre Alternative, and use it to open Calibre for the time being. So far, it's been working!

Code:
-- Quit Alfred
tell application "Alfred 5" to quit

-- Open Calibre
tell application "calibre" to activate

-- Monitor Calibre and reopen Alfred when Calibre closes
repeat
	delay 1
	if not (application "calibre" is running) then
		tell application "Alfred 5" to activate
		exit repeat
	end if
end repeat

Last edited by .tycho; 07-29-2024 at 03:32 PM.
.tycho is offline   Reply With Quote
Old 07-29-2024, 03:31 PM   #10
.tycho
Member
.tycho began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jan 2024
Device: Kobo Libra 2
Quote:
Originally Posted by JSWolf View Post
It sounds to me like you should not use any app that's got a human name.
Because the app acts as an assistant, many of them have cute butler-sounding names. Believe me, they're a huge asset once you learn how they work.
.tycho is offline   Reply With Quote
Old 07-29-2024, 06:58 PM   #11
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 12,375
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
I doubt it.
Quoth is offline   Reply With Quote
Old 07-30-2024, 09:53 AM   #12
macaaron
Junior Member
macaaron began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2024
Device: iPad
Quote:
Originally Posted by .tycho View Post
Here's the AppleScript I've been using. Just paste it into Script Editor, replace the app name with whatever you use, click Compile to make sure it works for you, and then Save as an application. You can add multiple apps to quit and to activate after lines 2 and 11. I called mine Cailibre Alternative, and use it to open Calibre for the time being. So far, it's been working!

Code:
-- Quit Alfred
tell application "Alfred 5" to quit

-- Open Calibre
tell application "calibre" to activate

-- Monitor Calibre and reopen Alfred when Calibre closes
repeat
	delay 1
	if not (application "calibre" is running) then
		tell application "Alfred 5" to activate
		exit repeat
	end if
end repeat
Hello,

Thank you. Actually I don't have Alfred.
I copy pasted Calibre from the DMG to the Application folder. After the security approval, Calibre doesn't launch on my mac. This is a Macbook Air M3.
I don't understand the logs (attached). I never had this issue on my previous computers.
Maybe could you please have a look?

Laurent
Attached Files
File Type: txt Calibre-2024.07.30.txt (14.7 KB, 166 views)
macaaron is offline   Reply With Quote
Old 07-30-2024, 01:13 PM   #13
.tycho
Member
.tycho began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jan 2024
Device: Kobo Libra 2
Ok, so my issue is that Calibre launches and works for a period of time, and then it crashes. If yours doesn't launch at all, then that sounds like a different issue.

What happens if you download a fresh DMG from Calibre's website and over-write the one in the Applications folder? Does that work? You can also try making a new test account in macOS, log in as that test user, and see if Calibre works there? Then just delete the test user when you're done.
.tycho is offline   Reply With Quote
Old 07-30-2024, 06:18 PM   #14
macaaron
Junior Member
macaaron began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2024
Device: iPad
Quote:
Originally Posted by .tycho View Post
Ok, so my issue is that Calibre launches and works for a period of time, and then it crashes. If yours doesn't launch at all, then that sounds like a different issue.

What happens if you download a fresh DMG from Calibre's website and over-write the one in the Applications folder? Does that work? You can also try making a new test account in macOS, log in as that test user, and see if Calibre works there? Then just delete the test user when you're done.
Dozens of times. It changes nothing.
I use CleanMyMac to erase all parameter files, but Calibre still crashes.
macaaron is offline   Reply With Quote
Old 07-30-2024, 09:26 PM   #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: 44,563
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Run calibre

/Applications/calibre.app/Contents/MacOS/calibre-debug -g

from a terminal and paste the log.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing Index Calibre crashes on MacOS dunhill Calibre 3 03-19-2023 01:38 PM
5.4.0 Crashes on Launch; macOS 12.3.1 LouisPiper Calibre 5 04-12-2022 09:09 PM
Calibre 5.19 crashes Macos Catalina etienne010 Calibre 4 06-02-2021 08:30 AM
Calibre not opening on macOS Catalina 10.15.7 after updating to Calibre 5.3.0 darthschadel Calibre 1 10-18-2020 03:17 PM
MacOS : After Update from 3.44 to 3.46 getting Newsfeeds crashes Mainframe-Junki Calibre 2 07-27-2019 05:25 AM


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


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