From 5a0fb8eaf9fb1796bb4839736ed3aa199cb54244 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 4 Feb 2015 13:32:56 +0530 Subject: [PATCH] Fix QXcbEventReader segfault in worker process used for rendering splash screen on linux --- src/calibre/gui2/splash.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/splash.py b/src/calibre/gui2/splash.py index a8777b66d4..785e7a0101 100644 --- a/src/calibre/gui2/splash.py +++ b/src/calibre/gui2/splash.py @@ -135,13 +135,14 @@ class CalibreSplashScreen(QSplashScreen): def main(): os.closerange(3, 256) - from calibre.gui2 import Application - app = Application([]) + app = QApplication([]) s = CalibreSplashScreen() s.show_message.connect(s.showMessage, type=Qt.QueuedConnection) s.shutdown.connect(app.quit, type=Qt.QueuedConnection) s.show() - Thread(target=run_loop, args=(s,)).start() + t = Thread(target=run_loop, args=(s,)) + t.daemon = True + t.start() app.exec_() if isosx: