[PyKDE] Segault > Bug in pyQT? (Or stupid me?)
Michael Zimmermann
mz-list at incunabulum.de
Tue Jan 17 15:44:26 GMT 2006
Phil Thompson wrote:
Hi Phil,
> At the very least you need to post the backtrace, ie. the call stack at the
> point of the segfault.
well, with backtrace you mean the python backtrace, I guess. I would
have sent it if there actually would be one.
What I get is as follows (the debug messages are from the logger):
......
17/01/2006 - 16:40:56 DEBUG Close event, terminating application
(UI.UserInterface L:356)
17/01/2006 - 16:40:56 DEBUG Stopping all threads for category None
(Utilities.ThreadTools L:224)
17/01/2006 - 16:40:56 DEBUG Waiting for threads in category None to
stop
(Utilities.ThreadTools L:237)
17/01/2006 - 16:40:56 DEBUG Stopping timer of threadcontainer
(Utilities.ThreadTools L:74)
17/01/2006 - 16:40:56 DEBUG Stopping all threads for category None
(Utilities.ThreadTools L:224)
17/01/2006 - 16:40:56 DEBUG Waiting for threads in category None to
stop
(Utilities.ThreadTools L:237)
17/01/2006 - 16:40:56 DEBUG Stopping timer of threadcontainer
(Utilities.ThreadTools L:74)
Segmentation fault
The main python file looks as follows (some imports skipped). The
segfault happens after app.exec_loop()
def main(args):
if len(args) < 2:
url = None
else:
url = args[1]
app=QApplication(args)
# set search path for icons
ApplicationStartup.initMimeSourceFactory()
# init splash screen
pixmap = PixmapCache.getPixmap('konsens.png')
splash = SplashScreen.SplashScreen(pixmap)
splash.show()
splash.message("Starting application")
# create main window
splash.message("Importing modules")
# from client.ui.mainwindow import MainWindow
from UI.UserInterface import UserInterface
# main window
splash.message('Generating main window')
# win=MainWindow(splash)
win = UserInterface(splash)
app.setMainWidget(win)
splash.message('Creating Connections')
app.connect(app, SIGNAL("lastWindowClosed()")
, app
, SLOT("quit()"))
win.show()
splash.message('Connecting to Server')
del(splash)
# win.serverConnect(url)
app.exec_loop()
if __name__=="__main__":
main(sys.argv)
--
cu,
Michael
---------------------------
| mz-list at incunabulum.de |
--------------------------
More information about the PyQt
mailing list