Calibre - check for missing libraries? (Solved)
Calibre - check for missing libraries? (Solved)
Probably one of my more stupid questions, but I hope you will be gentle with me in the beginner's section
I have self contained application that starts fine, but keeps crashing.
I suspect it is because something is missing in my Puppy (Tahrpup 6.0.2), because it runs perfectly fine in other, more bloated distros.
How can I check what is missing?
I have self contained application that starts fine, but keeps crashing.
I suspect it is because something is missing in my Puppy (Tahrpup 6.0.2), because it runs perfectly fine in other, more bloated distros.
How can I check what is missing?
Last edited by bambuko on Tue 07 Apr 2015, 18:56, edited 3 times in total.
The suspense is killing me!
/var/log should have a few goodies too.
http://dedoimedo.com/computers/strace.html
http://www.thegeekstuff.com/2011/11/strace-examples/
This a binary you picked up or something <dare I ask> you've compiled?
/var/log should have a few goodies too.
http://dedoimedo.com/computers/strace.html
http://www.thegeekstuff.com/2011/11/strace-examples/
This a binary you picked up or something <dare I ask> you've compiled?
Do I detect some piss takingSemme wrote: The suspense is killing me!
/var/log should have a few goodies too.
http://dedoimedo.com/computers/strace.html
http://www.thegeekstuff.com/2011/11/strace-examples/
This a binary you picked up or something <dare I ask> you've compiled?
You may ask - but the answer would dissapoint you.
Thank you for the pointer for trace - I will try it and report later on today!
...
I am not doing well, even on most basic level
Not another senior moment?
do I have to install the tool first?
Yes, I was being thick - found it
and the big unveil
first result of tailing the application that causes me problems:
I am not doing well, even on most basic level
Code: Select all
bash: strace: command not found
do I have to install the tool first?
Yes, I was being thick - found it
and the big unveil
first result of tailing the application that causes me problems:
Code: Select all
root# tail -f calibre_trace.txt
open("/usr/share/pixmaps/default/cursors/forbidden", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/pixmaps/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{"5\1\4\0\31\0\340\1}\0\0\0\24\0\24\0007\0\6\0\32\0\340\1\31\0\340\1\f\0\0\0"..., 376}], 1) = 376
poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{"\26\0\4\0\4\0\340\1\177\1\0\0KQ\22\0\20\0\v\0$\0\0\0applicat"..., 60}], 1) = 60
futex(0xbff9e7d0, FUTEX_WAIT_PRIVATE, 1, NULL) = -1 EAGAIN (Resource temporarily unavailable)
futex(0x9204e9c, FUTEX_WAKE_PRIVATE, 1) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++
So, it is segmentation fault that is killing the application (which I knew already anyway) but is this helping me to find the cause? Don't know - need to do bit more reading or hope that someone more knowledgeable can make sense of it?
It has been suggested that Qt crashing is the cause of my problems...
Is Qt included in the standard Tahrpup 6.0.2 or is this something I need to install?
Run it again to make sure the problem is repeatable (although I am pretty sure of it - same behaviour on three different machines with different versions of Tahrpup), and here the result:
and the summary of error calls (only, I edited out all good stuff):
It has been suggested that Qt crashing is the cause of my problems...
Is Qt included in the standard Tahrpup 6.0.2 or is this something I need to install?
Run it again to make sure the problem is repeatable (although I am pretty sure of it - same behaviour on three different machines with different versions of Tahrpup), and here the result:
Code: Select all
root# ps -C calibre
PID TTY TIME CMD
2824 tty1 00:00:05 calibre
root# strace -p 2824 -o calibre_trace.txt
Process 2824 attached
root# tail -f calibre_trace.txt
open("/usr/share/pixmaps/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{"5\1\4\0\24\0\340\1}\0\0\0\24\0\24\0007\0\6\0\25\0\340\1\24\0\340\1\f\0\0\0"..., 376}], 1) = 376
poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{"\26\0\4\0\4\0\340\1\177\1\0\0\33\325*\0\20\0\v\0$\0\0\0applicat"..., 60}], 1) = 60
futex(0x910febc, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0xbfe9ec90, FUTEX_WAIT_PRIVATE, 1, NULL) = 0
futex(0x910febc, FUTEX_WAKE_PRIVATE, 1) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++
Code: Select all
root# strace -c /mnt/sdb1/calibre/calibre
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
37.35 0.000031 0 2158 1763 open
21.69 0.000018 0 737 599 stat64
10.84 0.000009 0 297 46 futex
0.00 0.000000 0 14 9 access
0.00 0.000000 0 2 1 mkdir
0.00 0.000000 0 4 1 ioctl
0.00 0.000000 0 6 1 statfs
0.00 0.000000 0 27 2 _llseek
0.00 0.000000 0 193 2 lstat64
0.00 0.000000 0 2 2 bind
0.00 0.000000 0 3 1 recv
0.00 0.000000 0 12 6 recvmsg
------ ----------- ----------- --------- --------- ----------------
100.00 0.000083 6389 2435 total
Despite what Calibre's site says, have you considered running the dated version in Tahr's repo?
In ~/.packages you'll see "layers-installed," "woof-installed."
Here's the current Calibre deps list:
A quick observation suggests Tahr's only good for Qt 4.8.5.
I recall PhilB mentioning BeautifulSoup's in the devx.
ImageMagick's a pkg you'd have to add.
For anything else I'm unsure.
Lib versioning help.
In ~/.packages you'll see "layers-installed," "woof-installed."
Here's the current Calibre deps list:
Code: Select all
python 2.7.1 not 3.x
Python Imaging Library 1.1.6
Qt 5.3.2
PyQt 5.3.1
python-mechanize 0.1.11
ImageMagick 6.5.9
xdg-utils 1.0.2
lxml 3.2.1
python-dateutil 1.4.1
cssutils 0.9.9
BeautifulSoup 3.0.5
dnspython 1.6.0
poppler 0.20.2
podofo 0.8.2
I recall PhilB mentioning BeautifulSoup's in the devx.
ImageMagick's a pkg you'd have to add.
For anything else I'm unsure.
Lib versioning help.
Last edited by Semme on Sun 05 Apr 2015, 19:41, edited 1 time in total.
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
Thanks Semme,
That's rather more than I expected...
and adding all this just to run Calibre would probably change Puppy into Lardy Puppy and I have no intention of inflicting cruelty on the poor animal.
I think I'll accept limitations of Puppy and love if for what it is.
I am also running PCLInuxOS and Calibre is perfectly happy there.
It was good lesson and thank you for your help.
That's rather more than I expected...
and adding all this just to run Calibre would probably change Puppy into Lardy Puppy and I have no intention of inflicting cruelty on the poor animal.
I think I'll accept limitations of Puppy and love if for what it is.
I am also running PCLInuxOS and Calibre is perfectly happy there.
It was good lesson and thank you for your help.
Like a significant other, not all the bases need to be covered, just the ones that matter most.
This page for future reference >> http://www.cyberciti.biz/tips/linux-sha ... ement.html
One mo` >> http://www.yolinux.com/TUTORIALS/Librar ... namic.html
This page for future reference >> http://www.cyberciti.biz/tips/linux-sha ... ement.html
One mo` >> http://www.yolinux.com/TUTORIALS/Librar ... namic.html
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
I wasn't the missing link I was questionning....
Anyway... if you were trying to help, it would be useful to know what particular version of Puppy you are using, and how did you test it for "success"?
It would also be useful to know which version (2.23.0?) of Calibre did you install?
Did you also install all the dependencies Calibre needs for sucessful running (or only some of them? and if so, which ones?), or are you saying:
install Calibre, press calibre and Bob's your uncle foreverafter?
I have 2.22 installed on 6.0.2 and it repeatedly, reliably crashes after running for a bit (which can vary from few seconds, to few minutes, although usually few seconds is more likely).
It's always segmentation fault, broken pipe or something similar.
According to Kovid:
Anyway... if you were trying to help, it would be useful to know what particular version of Puppy you are using, and how did you test it for "success"?
It would also be useful to know which version (2.23.0?) of Calibre did you install?
Did you also install all the dependencies Calibre needs for sucessful running (or only some of them? and if so, which ones?), or are you saying:
install Calibre, press calibre and Bob's your uncle foreverafter?
I have 2.22 installed on 6.0.2 and it repeatedly, reliably crashes after running for a bit (which can vary from few seconds, to few minutes, although usually few seconds is more likely).
It's always segmentation fault, broken pipe or something similar.
According to Kovid:
The fault repeats itself across three different machines and both Tahrpup 6.0 and 6.0.2...underlying problem is that Qt is crashing on your system
I have used the method of extracting calibre to /mnt/home in Precise, Tahr and man other puppies. Since Calibre from the Calibre site is free standing, it simply works.bambuko wrote: Anyway... if you were trying to help, it would be useful to know what particular version of Puppy you are using, and how did you test it for "success"?
It would also be useful to know which version (2.23.0?) of Calibre did you install?
If you do what I suggested, you are not installing calibre, simply using it as a stand alone application...so no need to install what Calibre needs, since it's already in the application.Did you also install all the dependencies Calibre needs for sucessful running (or only some of them? and if so, which ones?),
I have NEVER said install Calibre, I have NEVER said use any Calibre .pet or .sfs file. What I did say was extract the Calinre Archive to /mnt/home and run itor are you saying: install Calibre, press calibre and Bob's your uncle foreverafter?
Don't install Calibre....do what I suggested....trust me, it works, it's a non-geeky solution.I have 2.22 installed on 6.0.2 and it repeatedly, reliably crashes after running for a bit (which can vary from few seconds, to few minutes, although usually few seconds is more likely).
The downside is the method eliminates all the joys of messing with dependencies, versions, secret handshakes, white socks and pocket protectors....it's almost as easy as WIndows.
Yes, I was a bit sloppy when using word "install" - sorry for the confusion.
All my Calibres are self-contained applications extracted to their own directory (like you are doing).
Working very sucesfully with other distros, but not in Tahrpup.
All my Calibres are self-contained applications extracted to their own directory (like you are doing).
Working very sucesfully with other distros, but not in Tahrpup.
I am very happy that it works for you...I have used the method of extracting calibre to /mnt/home in Precise, Tahr and man other puppies. Since Calibre from the Calibre site is free standing, it simply works....
various versions of calibre have been working fine for me on tahrpup.
calibre's qt libs are self contained as are all of its dependencies (unless from the PPM)
are you getting these crashes if you boot live?
calibre's qt libs are self contained as are all of its dependencies (unless from the PPM)
are you getting these crashes if you boot live?
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
That's what my Calibre (2.22.0) is - self contained, isolated Calibre in it's own directory (on usb stick) from http://calibre-ebook.com/download_linux....You can also do an "isolated" install that only touches files inside the installation directory...
It runs pefectly happy in another distro.
It starts fine on Tahrpup (full install), will run fine for a while, but always eventually ends up with broken pipe/segmentation fault
See: Calibre forum
When you ask "..are you getting these crashes if you boot live?.." do you mean Puppy running from live CD?
(sorry for being slow )
No, I haven't tried this, but will try it and report back.
ps I also had Calibre in it's own directory on hdd - problems were the same...
is this the standard calibre from quickpet? or your custom one?
if it's your own custom one (as from an older post by you) it would be worth trying the one from quickpet to see if that exhibits the same problems
if it's your own custom one (as from an older post by you) it would be worth trying the one from quickpet to see if that exhibits the same problems
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331