08-12-2010, 06:30 PM | #1 |
Groupie
Posts: 179
Karma: 141378
Join Date: Sep 2009
Device: kindle
|
Segmentation Fault when adding books to Calibre 0.7.13
I just updated Calibre to 0.7.13, and now I'm getting a seg-fault when trying to add books. The group of books I was trying to add was a mix of epub and mobi from a couple different sources.
I have placed a core dump at http://mcnewfamily.net/core if that helps. |
08-12-2010, 06:49 PM | #2 |
Groupie
Posts: 179
Karma: 141378
Join Date: Sep 2009
Device: kindle
|
Had a few seg faults while doing other things. I'm on ubuntu. I don't remember what I was upgrading from, but I know it was at least 0.7.1. Have any dependencies changed or anything like that?
|
Advert | |
|
08-12-2010, 06:54 PM | #3 |
creator of calibre
Posts: 44,356
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, no dependencies have changed. 0.7.13 did switch from using ctypes to a proper C extension for interfacing with ImageMagick, but I doubt that would cause segfaults.
If you launch calibre from a terminal is there any output before the segfault? |
08-12-2010, 06:58 PM | #4 |
Groupie
Posts: 179
Karma: 141378
Join Date: Sep 2009
Device: kindle
|
kovid:
erin@isis:~/Downloads$ calibre Segmentation fault (core dumped) erin@isis:~/Downloads$ calibre -v Segmentation fault (core dumped) That's all I'm getting, even if I run in verbose mode. |
08-12-2010, 07:03 PM | #5 |
Groupie
Posts: 179
Karma: 141378
Join Date: Sep 2009
Device: kindle
|
kovid: I can send you the output of strace if you'd like, but I don't see anything that looks useful in it. I stink at working with core dumps, so I didn't even try that end.
I haven't worked with python. Is there a good way I can tell it to give me more information about where it's dying? |
Advert | |
|
08-12-2010, 07:41 PM | #6 |
creator of calibre
Posts: 44,356
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you can generate a backtrace from the code dump that would be useful. A segafault always happens in C code, not python, so python debugging techniques are rarely useful.
|
08-12-2010, 10:26 PM | #7 |
Groupie
Posts: 179
Karma: 141378
Join Date: Sep 2009
Device: kindle
|
Okay, here's the backtrace. Hopefully this'll be useful in some way...
(gdb) bt #0 0x0000000000000001 in ?? () #1 0x00007f0b06e933a3 in QObject::disconnect(QObject const*, char const*, QObject const*, char const*) () from /opt/calibre/libQtCore.so.4 #2 0x00007f0b05fd4031 in ?? () from /opt/calibre/libQtGui.so.4 #3 0x00007f0b05fd5263 in QToolButton::mousePressEvent(QMouseEvent*) () from /opt/calibre/libQtGui.so.4 #4 0x00007f0b05ba8709 in QWidget::event(QEvent*) () from /opt/calibre/libQtGui.so.4 #5 0x00007f0b05b523ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /opt/calibre/libQtGui.so.4 #6 0x00007f0b05b591ab in QApplication::notify(QObject*, QEvent*) () from /opt/calibre/libQtGui.so.4 #7 0x00007f0b02697de6 in ?? () from /opt/calibre/PyQt4.QtGui.so #8 0x00007f0b06e7ce7c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /opt/calibre/libQtCore.so.4 #9 0x00007f0b05b58386 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /opt/calibre/libQtGui.so.4 #10 0x00007f0b05bd807b in ?? () from /opt/calibre/libQtGui.so.4 #11 0x00007f0b05bd6d8a in QApplication::x11ProcessEvent(_XEvent*) () from /opt/calibre/libQtGui.so.4 #12 0x00007f0b05c00cc2 in ?? () from /opt/calibre/libQtGui.so.4 #13 0x00007f0b066678c2 in g_main_dispatch (context=0x3f8ee00) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:1960 #14 IA__g_main_context_dispatch (context=0x3f8ee00) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2513 #15 0x00007f0b0666b748 in g_main_context_iterate (context=0x3f8ee00, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2591 #16 0x00007f0b0666b8fc in IA__g_main_context_iteration (context=0x3f8ee00, may_block=1) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2654 #17 0x00007f0b06ea6423 in QEventDispatcherGlib:rocessEvents(QFlags<QEventL oop::ProcessEventsFlag>) () from /opt/calibre/libQtCore.so.4 #18 0x00007f0b05c008be in ?? () from /opt/calibre/libQtGui.so.4 #19 0x00007f0b06e7b7a2 in QEventLoop:rocessEvents(QFlags<QEventLoop::Proce ssEventsFlag>) () from /opt/calibre/libQtCore.so.4 #20 0x00007f0b06e7bb7c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsF lag>) () from /opt/calibre/libQtCore.so.4 #21 0x00007f0b06e8080b in QCoreApplication::exec() () from /opt/calibre/libQtCore.so.4 #22 0x00007f0b02698b4b in ?? () from /opt/calibre/PyQt4.QtGui.so #23 0x00007f0b0b1166b7 in PyEval_EvalFrameEx () from /opt/calibre/libpython2.6.so.1.0 #24 0x00007f0b0b11700b in PyEval_EvalFrameEx () from /opt/calibre/libpython2.6.so.1.0 #25 0x00007f0b0b1184e5 in PyEval_EvalCodeEx () from /opt/calibre/libpython2.6.so.1.0 #26 0x00007f0b0b1167db in PyEval_EvalFrameEx () from /opt/calibre/libpython2.6.so.1.0 #27 0x00007f0b0b1184e5 in PyEval_EvalCodeEx () from /opt/calibre/libpython2.6.so.1.0 #28 0x00007f0b0b1185b2 in PyEval_EvalCode () from /opt/calibre/libpython2.6.so.1.0 #29 0x0000000000401c56 in _start () |
08-12-2010, 10:28 PM | #8 |
creator of calibre
Posts: 44,356
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
this appears to have happened while handling a mouse click. Do you remember what you clicked?
|
08-12-2010, 10:49 PM | #9 |
Groupie
Posts: 179
Karma: 141378
Join Date: Sep 2009
Device: kindle
|
Yup. I was clicking on the "open" after selecting a book to add to calibre. (in the add books from a single directory box)
Interestingly, it looks like it's working this time, and I don't know why. I just added a book without a seg fault... |
08-12-2010, 11:16 PM | #10 |
creator of calibre
Posts: 44,356
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm, that box is not part of the calibre code, (it's the standard platform dependent file open dialog).
|
08-12-2010, 11:47 PM | #11 |
Groupie
Posts: 179
Karma: 141378
Join Date: Sep 2009
Device: kindle
|
Yeah. Not sure what happened. It's all working fine now. I have no idea what was wrong earlier. Must've been my computer acting up. Sorry to waste your time.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Segmentation fault trying to run Calibre on CentOS 5.5 | midders | Calibre | 1 | 07-26-2010 11:32 AM |
Calibre Freezing When Adding New Books | Nilam | Calibre | 4 | 07-18-2010 10:03 PM |
Segmentation Fault after Qt upgrade | reader42 | Calibre | 8 | 03-21-2010 06:58 PM |
what calibre does when adding books? (metadata) | jomaweb | Calibre | 1 | 02-06-2010 12:10 PM |
Segmentation fault | weedfreak | Calibre | 10 | 10-01-2009 02:47 PM |