Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 01-01-2020, 12:11 PM   #1
TortoiseAvenger
Member
TortoiseAvenger began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Jan 2020
Device: Kobo
Calibre crashing right after opening in Mac OS

Hi there! I'm building an ebook library after ordering a kobo, and I was really excited to take advantage of all Calibre can do, except... it isn't working. At all.

I'm running Mac OS 10.15.2, Catalina

I downloaded the latest version, and it crashes upon opening.
I downloaded 3.48, and the exact same thing happened.
I followed the instructions on the Calibre FAQ:
- I do not have Voice Over enabled
- I checked my fonts for corruption
- I searched the crash log and found nothing like "Qt: internal: -108: Error ATSUMeasureTextImage..."

There is one step I wasn't sure how to do: System Preferences->System->Universal Access and turn off the setting for enabling access for assistive devices.

But I looked through the accessibility features and nothing seems to be on.

I really want to use this software. Any suggestions?

Thanks,

TA
TortoiseAvenger is offline   Reply With Quote
Old 01-01-2020, 12:18 PM   #2
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: 36,107
Karma: 15014853
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
post the crash report
kovidgoyal is offline   Reply With Quote
Old 01-01-2020, 12:21 PM   #3
TortoiseAvenger
Member
TortoiseAvenger began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Jan 2020
Device: Kobo
Forgive my ignorance, how do I do that, it's huge?
TortoiseAvenger is offline   Reply With Quote
Old 01-01-2020, 12:23 PM   #4
TortoiseAvenger
Member
TortoiseAvenger began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Jan 2020
Device: Kobo
I can't figure out how to save it as a file I can attach....
TortoiseAvenger is offline   Reply With Quote
Old 01-01-2020, 12:25 PM   #5
TortoiseAvenger
Member
TortoiseAvenger began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Jan 2020
Device: Kobo
Copy and pasted and saved as rtf. Maybe that will work.
Attached Files
File Type: rtf Calibre Crash.rtf (147.5 KB, 19 views)
TortoiseAvenger is offline   Reply With Quote
Old 01-01-2020, 12:31 PM   #6
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: 36,107
Karma: 15014853
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
From that report it looks like itis crashing while opening a file dialog, deep inside cocoa. Do you have soe finder plugins or something similar installed? You can try setting the CALIBRE_NO_NATIVE_FILEDIALOGS=1 environment variable as described here: https://manual.calibre-ebook.com/cus...ment-variables

that will cause calibre to not use finder based file dialogs which should workaround the issue at the cost of less nice file dialogs.
kovidgoyal is offline   Reply With Quote
Old 01-01-2020, 12:33 PM   #7
TortoiseAvenger
Member
TortoiseAvenger began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Jan 2020
Device: Kobo
Thank so you much for your help... can you tell me what you mean by "at the cost of less nice file dialogs."...? What I'd experience?

EDIT: I looked up how to do this given the link you provided. I'm comfortable copy and pasting things into the terminal... but I'm not sure how to apply what's there to my situation... ugh.

Last edited by TortoiseAvenger; 01-01-2020 at 12:38 PM.
TortoiseAvenger is offline   Reply With Quote
Old 01-01-2020, 01:32 PM   #8
TortoiseAvenger
Member
TortoiseAvenger began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Jan 2020
Device: Kobo
Sorry for the semi-duplicate reply. Any suggestions?
TortoiseAvenger is offline   Reply With Quote
Old 01-01-2020, 01:58 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: 36,107
Karma: 15014853
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You'd experience a different looking file dialog thats all. Just follow th einstructions at the bottom of that post to set the environment variable.
kovidgoyal is offline   Reply With Quote
Old 01-01-2020, 03:07 PM   #10
TortoiseAvenger
Member
TortoiseAvenger began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Jan 2020
Device: Kobo
I got a computer friend who is much more experienced at these things.

We got it to work well until we rebooted. Afterward, it still crashes. We have to use the following command every time we reboot.

Code:
launchctl load -w /Library/LaunchDaemons/setenv.filedialog.plist
From our understanding that command should automatically load the file even after reboot, but it doesn't seem to be working.

Any advice?
TortoiseAvenger is offline   Reply With Quote
Old 01-01-2020, 07:14 PM   #11
KevinH
Wizard
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: 4,161
Karma: 2620702
Join Date: Nov 2009
Device: many
No need to make a demon. Use ls -al in your home directory in Terminal.app and look for a .bashrc file or .zshrc file and add the

export CALIBRE_NO_NATIVE_FILEDIALOGS=1

line to the end of that file. It will be executed each time you login. No need to use a plist or a LaunchDaemon.
KevinH is online now   Reply With Quote
Old 01-01-2020, 11:06 PM   #12
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: 36,107
Karma: 15014853
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@KevinH: That wont help, shell startup files are not sourced by launchd on macOS. So environment variables placed there are not available system-wide. Specifically not in programs started by launchd, which is what clicking ona program icon in macOS does. In typical Apple style, there is no reliable way to set environment variables systemwide. The truly annoying part is that even if you manage to get launchd to set an env var, it then wont be available while SSHing into the machine, so you have to set it both in launchd and shell startup scripts or sshd config files.

@TortoiseAvenger: You can try creating /etc/launchd.conf instead. Though I dont know if that still works in modern version of macOS since Apple breaks things with pretty much every macOS release.
kovidgoyal is offline   Reply With Quote
Old 01-02-2020, 02:16 PM   #13
KevinH
Wizard
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: 4,161
Karma: 2620702
Join Date: Nov 2009
Device: many
Can't you add it to the Calibre Info.plist? Surely every way of launching Calibre would then see it or will that break code signing? Ala this example:

Code:
<key>LSEnvironment</key>
<dict>
     <key>PATH</key>
     <string>/Users/flori/.rvm/gems/ruby-1.9.3-p362/bin:/Users/flori/.rvm/gems/ruby-1.9.3-p362@global/bin:/Users/flori/.rvm/rubies/ruby-1.9.3-p326/bin:/Users/flori/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:</string>
</dict>
KevinH is online now   Reply With Quote
Old 01-02-2020, 09:11 PM   #14
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: 36,107
Karma: 15014853
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm fairly sure modifying Info.plist will break code signing. In any case I have already implemented a way to conveniently set env vars on macOS to workaround Apple's silliness. https://github.com/kovidgoyal/calibr...6840f0f831972f
kovidgoyal is offline   Reply With Quote
Old 01-02-2020, 09:53 PM   #15
KevinH
Wizard
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: 4,161
Karma: 2620702
Join Date: Nov 2009
Device: many
Nicely done!
KevinH is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mac Crashed When Opening Calibre 4.0 dmg Tontotrento Calibre 5 10-05-2019 07:28 AM
Calibre crashing with 1000 books (Mac) Feather_Qwill Calibre 5 02-06-2017 09:47 PM
Latest Calibre for Mac crashing on launch DP812 Calibre 4 02-03-2016 11:53 AM
Calibre crashing Mac OS-X Sridhar Calibre 2 08-04-2010 02:45 PM
Crashing opening calibre epubs mediax Sigil 3 11-12-2009 05:41 PM


All times are GMT -4. The time now is 04:16 PM.


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