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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-29-2009, 02:11 PM   #1
bloovis
Member
bloovis began at the beginning.
 
Posts: 14
Karma: 12
Join Date: Sep 2009
Device: Palm Centro
ebook-convert segfaults converting PDF files

I just installed calibre 0.6.14 on Linux Mint 6 (Ubuntu 8.10) and it mostly seems to work. But converting a PDF to any other format always seems to result in a segmentation fault. This also happens using the ebook-convert program from the command line. Here's what happened when I tried to convert a copy of "Sense and Sensibility":

Code:
% ebook-convert sense11p.pdf  sense11p.mobi
1% Converting input to HTML...
InputFormatPlugin: PDF Input running on /home/bloovis/shared/doc/books/Austen/sense11p.pdf
/usr/bin/ebook-convert: line 10: 28776 Segmentation fault      $loader "$@"
I've had the same segfault converting a few other files (geeky stuff like AMD and Intel processor manuals).

I also have calibre 0.6.8 in a separate installation directory, and with that version, ebook-convert succeeds in converting the Austen novel, but hangs on some of my geekier PDFs.

Am I doing something wrong? Is there something I can do to debug this a little more?
bloovis is offline   Reply With Quote
Old 09-29-2009, 02:56 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: 43,771
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
0.6.14 now uses poppler 0.12.0 I tested it on Ubuntu and it worked, so I'm not sure what's causing the segfault for you on Mint.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-29-2009, 09:53 PM   #3
bloovis
Member
bloovis began at the beginning.
 
Posts: 14
Karma: 12
Join Date: Sep 2009
Device: Palm Centro
I got a core file from the crash and a backtrace from GDB. It looks like it's in a shared library outside of calibre. Perhaps this is related to the fact that Calibre now requires Python 2.6, but Ubuntu 8.10 ships with Python 2.5.

Code:
Core was generated by `/usr/local/calibre/loader /home/bloovis/doc/books/Austen/sense11p.pdf sense11p.'.
Program terminated with signal 11, Segmentation fault.
[New process 18812]
#0  0xb58bb2c6 in ?? () from /lib/libuuid.so.1
(gdb) bt
#0  0xb58bb2c6 in ?? () from /lib/libuuid.so.1
#1  0xb58bb33f in ?? () from /lib/libuuid.so.1
#2  0xb58bb510 in uuid__generate_random () from /lib/libuuid.so.1
#3  0xb58bb5bb in uuid_generate_random () from /lib/libuuid.so.1
#4  0xb55e2ebf in ffi_call_SYSV () from /usr/local/calibre/_ctypes.so
#5  0xb55e2cfe in ffi_call () from /usr/local/calibre/_ctypes.so
#6  0xb55dde85 in _CallProc () from /usr/local/calibre/_ctypes.so
#7  0xb55d73d2 in ?? () from /usr/local/calibre/_ctypes.so
#8  0xb7f4855c in PyObject_Call () from /usr/local/calibre/libpython2.6.so.1.0
#9  0xb7fda1f1 in PyEval_EvalFrameEx () from /usr/local/calibre/libpython2.6.so.1.0
#10 0xb7fdbd5c in PyEval_EvalFrameEx () from /usr/local/calibre/libpython2.6.so.1.0
#11 0xb7fdc561 in PyEval_EvalCodeEx () from /usr/local/calibre/libpython2.6.so.1.0
#12 0xb7f71347 in ?? () from /usr/local/calibre/libpython2.6.so.1.0
#13 0xb7f4855c in PyObject_Call () from /usr/local/calibre/libpython2.6.so.1.0
#14 0xb7f5b599 in ?? () from /usr/local/calibre/libpython2.6.so.1.0
#15 0xb7f4855c in PyObject_Call () from /usr/local/calibre/libpython2.6.so.1.0
#16 0xb7f9c986 in ?? () from /usr/local/calibre/libpython2.6.so.1.0
#17 0xb7f9b515 in ?? () from /usr/local/calibre/libpython2.6.so.1.0
#18 0xb7f4855c in PyObject_Call () from /usr/local/calibre/libpython2.6.so.1.0
#19 0xb7fda1f1 in PyEval_EvalFrameEx () from /usr/local/calibre/libpython2.6.so.1.0
#20 0xb7fdbd5c in PyEval_EvalFrameEx () from /usr/local/calibre/libpython2.6.so.1.0
#21 0xb7fdc561 in PyEval_EvalCodeEx () from /usr/local/calibre/libpython2.6.so.1.0
#22 0xb7f71347 in ?? () from /usr/local/calibre/libpython2.6.so.1.0
#23 0xb7f4855c in PyObject_Call () from /usr/local/calibre/libpython2.6.so.1.0
#24 0xb7f5b599 in ?? () from /usr/local/calibre/libpython2.6.so.1.0
#25 0xb7f4855c in PyObject_Call () from /usr/local/calibre/libpython2.6.so.1.0
#26 0xb7f9cd18 in ?? () from /usr/local/calibre/libpython2.6.so.1.0
#27 0xb7f4855c in PyObject_Call () from /usr/local/calibre/libpython2.6.so.1.0
#28 0xb7fda1f1 in PyEval_EvalFrameEx () from /usr/local/calibre/libpython2.6.so.1.0
#29 0xb7fdbd5c in PyEval_EvalFrameEx () from /usr/local/calibre/libpython2.6.so.1.0
#30 0xb7fdc561 in PyEval_EvalCodeEx () from /usr/local/calibre/libpython2.6.so.1.0
#31 0xb7fdaeb0 in PyEval_EvalFrameEx () from /usr/local/calibre/libpython2.6.so.1.0
#32 0xb7fdc561 in PyEval_EvalCodeEx () from /usr/local/calibre/libpython2.6.so.1.0
#33 0xb7fdc673 in PyEval_EvalCode () from /usr/local/calibre/libpython2.6.so.1.0
#34 0x080497a8 in _start ()
bloovis is offline   Reply With Quote
Old 09-30-2009, 12:58 AM   #4
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: 43,771
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre has used python 2.6 for several months now
kovidgoyal is offline   Reply With Quote
Old 09-30-2009, 08:38 PM   #5
bloovis
Member
bloovis began at the beginning.
 
Posts: 14
Karma: 12
Join Date: Sep 2009
Device: Palm Centro
I upgraded one of my machines to Linux Mint 7 today, and that made the problem go away, not surprisingly.
bloovis is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubleshooting Converting PDF to AZW files via Amazon email sirmaru Amazon Kindle 5 09-05-2010 02:21 PM
ebook-meta --to-opf segfaults gurmuq Calibre 3 08-14-2010 09:36 PM
Converting .prc files to .pdf patricks Kindle Formats 3 05-02-2009 01:40 PM
Converting PDF files in Calibre BJWanlund Calibre 0 12-07-2008 10:28 PM
Converting PDF files w. HS rrayl Reading and Management 4 04-11-2003 10:00 PM


All times are GMT -4. The time now is 07:44 AM.


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