![]() |
#1 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 14244
Join Date: May 2012
Device: Kobo Touch
|
Calibre Crashes On Start-up (Plus Workaround.)
Just upgraded to Calibre v. 2.0 (I'm running Manjaro Linux), and Calibre kept crashing after the start-up splash. So I ran it from a terminal using 'calibre' and it ran fine. So I went in and edited the Calibre shortcut using Xame and removed '--detach %F' from the start up command, leaving just 'calibre'. I saved, and now I can start Calibre from the program launcher.
Not sure why this is, just thought I'd mention it, and mention the fix which worked for me. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Interesting, I dont see any reason why detach should cause a crash, and it does not for me. All detach does is fork, then redirect stdout and stderr to /dev/null and call setsid().
https://github.com/kovidgoyal/calibr...init__.py#L877 What does strace -f calibre --detach output? |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 14244
Join Date: May 2012
Device: Kobo Touch
|
'strace -f calibre --detach' causes the terminal to go bonkers. Calibre starts, but the terminal won't stop filling up. If I hadn't closed Calibre, I dare say it would have gone on forever.
From typing in 'strace -f calibre --detach' to Calibre fully loading generated over 1400 pages of text. I've copied a little below to give you the gist. A lot seems repeated, and the forum won't allow me to provide the whole message. Quote:
|
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
redirect the output to a file, like this
strace -o trace.txt -f calibre --detach and attach the file trace.txt |
![]() |
![]() |
![]() |
#5 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 14244
Join Date: May 2012
Device: Kobo Touch
|
It's not so much I don't know how to do it, the forum only allows an attachment size of of 1 MB whereas the trace.txt file is almost 4.5 MB. I'll chuck it into my Dropbox folder for now. Let me know once you've downloaded it and I'll disable the link again.
*Link deleted* Last edited by melchizedek; 08-22-2014 at 02:37 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I've got it, you can just compress the file, like this
zip trace.zip trace.txt that will get it well under 1MB |
![]() |
![]() |
![]() |
#7 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 14244
Join Date: May 2012
Device: Kobo Touch
|
Ha! Zipping it compressed it to 232 kb. I didn't think it'd compress it that much.
Thanks for the tip. ![]() |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm that strace has too much noise, I cant see where it is failing
|
![]() |
![]() |
![]() |
#9 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 14244
Join Date: May 2012
Device: Kobo Touch
|
It does seems a little verbose. As I seem to be the only one having this problem, can we assume that it's just me (for whatever reason), and that the workaround I'm using is okay? I mean, is not using 'detach' going to cause me any future problems or cause anything not to work?
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There have been a few other reports of crashing on linux, https://bugs.launchpad.net/calibre/+bug/1360200
but no one has got back to me with any details as yet. In any case, running without --detach is fine. --detach is only needed if you launch calibre from a terminal and want to close the terminal and keep calibre running or if the GUI environment you are launching calibre from does not provide proper stdout/stderr streams. |
![]() |
![]() |
![]() |
#11 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 14244
Join Date: May 2012
Device: Kobo Touch
|
Ah, thanks, Kovid. I should have really checked out the bug reports first. My bad.
And thank you for the help. |
![]() |
![]() |
![]() |
#12 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Aug 2014
Device: Nexus 7
|
For me, running under strace doesn't result in a "crash". That is, "calibre --detach" doesn't work, but "strace -o trace.txt -f calibre --detach" does work. I'm guessing it may be some user-specific setting. I created a new user just to test, and "calibre --detach" does work for the new user. I'm not imaginative enough to hazard a guess what's happening.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre problems with Kindle Paperwhite Articles and HOW TO use a workaround!! | linnx88 | Devices | 12 | 11-04-2012 08:30 PM |
Calibre 09.2 crashes | KlausRegenbrecht | Devices | 21 | 10-21-2012 11:33 AM |
Calibre wont start (first time start up) | Mike Railton | Devices | 15 | 05-25-2012 02:14 AM |
Calibre Crashes | mosugs | Calibre | 4 | 08-02-2011 11:11 PM |
Calibre Crashes | llessieur | Devices | 12 | 03-25-2011 01:35 PM |