Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-11-2016, 08:39 PM   #1
lesterf
Junior Member
lesterf began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2016
Device: Kindle
[Linux] Calibre 2.73 crashing on exit - python2 segmentation fault

Running 2.73 on Manjaro Linux.

The application runs fine, but on exit python2 crashes.

The same crash occurs when closing the Calibre e-book reader application too.

What processing occurs on exit for these applications?

Here is the output running calibre in debug mode from CLI, I close Calibre straight away to trigger the segfault and associationed coredump.

Code:
$ calibre-debug -g
calibre 2.73  embedded-python: False is64bit: True
Linux-4.8.12-1-MANJARO-x86_64-with-glibc2.2.5 Linux ('64bit', '')
('Linux', '4.8.12-1-MANJARO', '#1 SMP PREEMPT Fri Dec 2 20:03:35 UTC 2016')
Python 2.7.12
Linux: ('', '', '')
Successfully initialized third party plugins: Reading List (1, 6, 6) && Kindle Collections (1, 7, 17) && Count Pages (1, 6, 9)
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.2526315789
physicalDpi: 128.336842105 x 130.628571429
Starting up...
Failed to read metadata from font file: /usr/share/fonts/TTF/TSCu_Comic.ttf tuple index out of range
Failed to read metadata from font file: /usr/share/fonts/TTF/TSCu_Times.ttf tuple index out of range
Started up in 1.52 seconds with 2012 books
Segmentation fault (core dumped)
Here are the log messages for the associated python2 segfault.
Code:
systemd-coredump[9411]: Process 9350 (python2) of user 1000 dumped core.

Stack trace of thread 9358:
#0  0x00007f62a73f89cf _ZN7QObject10disconnectEPKS_PKcS
#1  0x00007f62a28c7530 n/a (libQt5DBus.so.5)
#2  0x00007f62a28b3f62 n/a (libQt5DBus.so.5)
#3  0x00007f62a71eed78 n/a (libQt5Core.so.5)
#4  0x00007f62b47dc454 start_thread (libpthread.so.0)
#5  0x00007f62b451f7df __clone (libc.so.6)

Stack trace of thread 9357:
#0  0x00007f62b451648d poll (libc.so.6)
#1  0x00007f62a4b2f8e0 n/a (libxcb.so.1)
#2  0x00007f62a4b31679 xcb_wait_for_event (libxcb.so.1)
#3  0x00007f628b5ce449 n/a (libQt5XcbQpa.so.5)
#4  0x00007f62a71eed78 n/a (libQt5Core.so.5)
#5  0x00007f62b47dc454 start_thread (libpthread.so.0)
#6  0x00007f62b451f7df __clone (libc.so.6)

Stack trace of thread 9350:
#0  0x00007f62b47e210f pthread_cond_wait@@GLIBC_2.3.2 (
#1  0x00007f62a71efc2b _ZN14QWaitCondition4waitEP6QMute
#2  0x00007f62a71ee91e _ZN7QThread4waitEm (libQt5Core.s
#3  0x00007f62a28b3cc6 n/a (libQt5DBus.so.5)
#4  0x00007f62a28b3d59 n/a (libQt5DBus.so.5)
#5  0x00007f62b446c990 __run_exit_handlers (libc.so.6)
#6  0x00007f62b446c9ea exit (libc.so.6)
#7  0x00007f62b4afba32 Py_Exit (libpython2.7.so.1.0)
#8  0x00007f62b4afbb89 handle_system_exit.part.2 (libpy
#9  0x00007f62b4afbe0d PyErr_PrintEx (libpython2.7.so.1
#10 0x00007f62b4afca74 PyRun_SimpleFileExFlags (libpyth
#11 0x00007f62b4b0f0c0 Py_Main (libpython2.7.so.1.0)
#12 0x00007f62b4457291 __libc_start_main (libc.so.6)
#13 0x000056272fc437ea _start (python2.7)

Stack trace of thread 9369:
#0  0x00007f62b47e210f pthread_cond_wait@@GLIBC_2.3.2 (
#1  0x00007f629eb7a40b n/a (libQt5WebKit.so.5)
#2  0x00007f629eb7a449 n/a (libQt5WebKit.so.5)
#3  0x00007f62b47dc454 start_thread (libpthread.so.0)
#4  0x00007f62b451f7df __clone (libc.so.6)

Stack trace of thread 9376:
#0  0x00007f62b47e210f pthread_cond_wait@@GLIBC_2.3.2 (
#1  0x00007f629e8721d1 n/a (libQt5WebKit.so.5)
#2  0x00007f629ebab5b1 n/a (libQt5WebKit.so.5)
#3  0x00007f62b47dc454 start_thread (libpthread.so.0)
#4  0x00007f62b451f7df __clone (libc.so.6)

Stack trace of thread 9377:
#0  0x00007f62b47e210f pthread_cond_wait@@GLIBC_2.3.2 (
#1  0x00007f629e873323 n/a (libQt5WebKit.so.5)
#2  0x00007f629ebab5b1 n/a (libQt5WebKit.so.5)
#3  0x00007f62b47dc454 start_thread (libpthread.so.0)
#4  0x00007f62b451f7df __clone (libc.so.6)

Stack trace of thread 9378:
#0  0x00007f62b47e210f pthread_cond_wait@@GLIBC_2.3.2 (
#1  0x00007f629e873323 n/a (libQt5WebKit.so.5)
#2  0x00007f629ebab5b1 n/a (libQt5WebKit.so.5)
#3  0x00007f62b47dc454 start_thread (libpthread.so.0)
#4  0x00007f62b451f7df __clone (libc.so.6)

Stack trace of thread 9379:
#0  0x00007f62b47e210f pthread_cond_wait@@GLIBC_2.3.2 (
#1  0x00007f629e873323 n/a (libQt5WebKit.so.5)
#2  0x00007f629ebab5b1 n/a (libQt5WebKit.so.5)
#3  0x00007f62b47dc454 start_thread (libpthread.so.0)
#4  0x00007f62b451f7df __clone (libc.so.6)

Stack trace of thread 9380:
#0  0x00007f62b47e210f pthread_cond_wait@@GLIBC_2.3.2 (
#1  0x00007f629e873323 n/a (libQt5WebKit.so.5)
#2  0x00007f629ebab5b1 n/a (libQt5WebKit.so.5)
#3  0x00007f62b47dc454 start_thread (libpthread.so.0)
#4  0x00007f62b451f7df __clone (libc.so.6)

Stack trace of thread 9381:
#0  0x00007f62b47e210f pthread_cond_wait@@GLIBC_2.3.2 (
#1  0x00007f629e873323 n/a (libQt5WebKit.so.5)
#2  0x00007f629ebab5b1 n/a (libQt5WebKit.so.5)
#3  0x00007f62b47dc454 start_thread (libpthread.so.0)
#4  0x00007f62b451f7df __clone (libc.so.6)

Stack trace of thread 9382:
#0  0x00007f62b47e210f pthread_cond_wait@@GLIBC_2.3.2 (
#1  0x00007f629e873323 n/a (libQt5WebKit.so.5)
#2  0x00007f629ebab5b1 n/a (libQt5WebKit.so.5)
#3  0x00007f62b47dc454 start_thread (libpthread.so.0)
#4  0x00007f62b451f7df __clone (libc.so.6)

Stack trace of thread 9375:
#0  0x00007f62b451648d poll (libc.so.6)
#1  0x00007f62aa097786 n/a (libglib-2.0.so.0)
#2  0x00007f62aa09789c g_main_context_iteration (libgli
#3  0x00007f62a741d70f _ZN20QEventDispatcherGlib13proce
#4  0x00007f62a73c723a _ZN10QEventLoop4execE6QFlagsINS_
#5  0x00007f62a71ea0f3 _ZN7QThread4execEv (libQt5Core.s
#6  0x00007f62a71eed78 n/a (libQt5Core.so.5)
#7  0x00007f62b47dc454 start_thread (libpthread.so.0)
#8  0x00007f62b451f7df __clone (libc.so.6)
Any ideas what could be causing this? Any more info I could provide to assist? Are there Calibre application logs with more info?

Apologies if this thread was created in the wrong location, first post.

Last edited by lesterf; 12-11-2016 at 08:43 PM.
lesterf is offline   Reply With Quote
Old 12-11-2016, 10:50 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: 45,299
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This is caused by a bug in PyQt, search the PyQT mailing lists for crash on exit where I reported this issue a couple of years ago. It will likely go away automatically once X11 is retired (the crash occurs in the Qt XCB module).
kovidgoyal is offline   Reply With Quote
Advert
Old 12-11-2016, 11:38 PM   #3
lesterf
Junior Member
lesterf began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2016
Device: Kindle
Thanks for the response.

Seems this crash is not happening for other Manjaro users trying to recreate the issue by installing Calibre, launching it, then closing it. Is there a reason for this? I'm using latest KDE version, built on Qt, so I'm wondering if this is a DE thing.

So there is basically nothing do be done until the underlying PyQt bug is resolved?
lesterf is offline   Reply With Quote
Old 12-11-2016, 11:54 PM   #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: 45,299
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Assuming it is the same crash then yes there is nothing to be done.
kovidgoyal is offline   Reply With Quote
Old 12-12-2016, 12:03 AM   #5
lesterf
Junior Member
lesterf began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2016
Device: Kindle
I'm trying to work out why Calibre crashes every single close on my system, but for other Manjaro users it does not seem to crash.

Im a little bit OCD when it comes to regular segfaults and coredumps.

I have ReadingList, Collections, and CountPages plugins installed, could this have play a role in increased crash frequency?
lesterf is offline   Reply With Quote
Advert
Old 12-12-2016, 12:23 AM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,693
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@lesterf - try the ignore-plugins switch ==>> calibre command

BR
BetterRed is offline   Reply With Quote
Old 12-12-2016, 12:29 AM   #7
lesterf
Junior Member
lesterf began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2016
Device: Kindle
Thanks, but no dice.

Code:
$ calibre --ignore-plugins
Segmentation fault (core dumped)
lesterf is offline   Reply With Quote
Old 12-12-2016, 12:31 AM   #8
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: 45,299
Karma: 27111240
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Looking at the stack trace it is related to DBUS, the crash is happening in the QtDBDUS module -- so it is not the same crash as I mentioned previously (that happens in QXcbEventReader)
kovidgoyal is offline   Reply With Quote
Old 12-12-2016, 07:11 AM   #9
compurandom
Wizard
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 1,011
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
Missing font?
compurandom is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
segmentation fault when using Sigil with Ubuntu Linux lunixer Sigil 1 05-31-2011 02:34 PM
Segmentation Fault on calibre-server brs480 Calibre 2 02-08-2011 11:02 PM
Calibre 0.7.43/44 - Linux Compile Segmentation Fault jasn Calibre 2 02-08-2011 11:52 AM
Segmentation Fault when adding books to Calibre 0.7.13 TuxGirl Calibre 10 08-12-2010 11:47 PM
Segmentation fault trying to run Calibre on CentOS 5.5 midders Calibre 1 07-26-2010 11:32 AM


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


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