[PyKDE] KDockWidget Crash

Russell Valentine russ at coldstonelabs.org
Tue Sep 9 06:19:01 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

PyKDE Mailing List:

Hello, I'm new to Python and PyKDE. I've created a small system tray app
so far, and am loving it. Thanks for all the work.

I've ran into a problem with KDockMainWindow and KDockWidget. I can't
figure out how to get it to work without it crashing instantly. I've
attached a minimal script that has the problem I am facing and its
backtrace from the KDE Crash Handler. It crashes when it gets to the
createDockWidget line. I've also tried making a new DockWidget bypassing
the createDockWidget function and I get the same problem.

Versions using:
    pykde-3.7.4
    PyQt-3.8
    qt-3.1.2
    kde-3.1.3

I notice the KDock stuff in the uisampler isn't there at this time. Anyone
know what may be wrong and causing the crash? Thanks!


Russell Valentine

P.S. I apologize if you got this message twice, as I was having mail
problems. I didn't see it in the mailing list archive so I don't think it
reached the list.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/XVR6O0EDJO5MgRYRAjVmAJ46QVDkyLgHMzVz0XTB2z3pkycsNgCfaKqW
CsHtbwnI8P42HFD2kYzv0lA=
=C85p
-----END PGP SIGNATURE-----
-------------- next part --------------
#!/bin/env python

import sys
from kdecore import KApplication, KCmdLineArgs, KAboutData
from kdeui import KDockMainWindow
from qt import QPixmap

class TestWindow(KDockMainWindow):
    def __init__(self):
        KDockMainWindow.__init__(self)
        self.pic = QPixmap(16,16)
        self.pic.fill()
        self.mainWidget = self.createDockWidget("Test Main Widget", self.pic)


aboutData = KAboutData("testDocks", "testDocks", "1")
KCmdLineArgs.init(sys.argv, aboutData)
app = KApplication()
win = TestWindow()
win.show()
app.exec_loop()
-------------- next part --------------
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...[New Thread 16384 (LWP 21535)]
(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
0x4003c1c7 in waitpid () from /lib/libpthread.so.0
#0  0x4003c1c7 in waitpid () from /lib/libpthread.so.0
#1  0x415e6afd in KCrash::defaultCrashHandler(int) ()
   from /usr/kde/3.1/lib/libkdecore.so.4
#2  0x4003b03c in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x418bdd5a in KDockWidget::KDockWidget(KDockManager*, char const*, QPixmap const&, QWidget*, QString const&, QString const&, unsigned) ()
   from /usr/kde/3.1/lib/libkdeui.so.4
#5  0x418bbd4d in KDockMainWindow::createDockWidget(QString const&, QPixmap const&, QWidget*, QString const&, QString const&) ()
   from /usr/kde/3.1/lib/libkdeui.so.4
#6  0x41ed84aa in sipDo_KDockMainWindow_createDockWidget(_object*, _object*) ()
   from /usr/lib/python2.2/site-packages/libkdeuicmodule.so
#7  0x080beccc in PyCFunction_Call ()
#8  0x08075c63 in PyEval_EvalCode ()
#9  0x0807660e in PyEval_EvalCodeEx ()
#10 0x080b3f99 in PyFunction_SetClosure ()
#11 0x080a46c9 in PyObject_Call ()
#12 0x080aa79b in PyMethod_New ()
#13 0x080a46c9 in PyObject_Call ()
#14 0x08077635 in PyEval_CallObjectWithKeywords ()
#15 0x080a6ded in PyInstance_New ()
#16 0x080a46c9 in PyObject_Call ()
#17 0x08077bc7 in PyEval_GetFuncDesc ()
#18 0x08075b22 in PyEval_EvalCode ()
#19 0x0807660e in PyEval_EvalCodeEx ()
#20 0x080737a7 in PyEval_EvalCode ()
#21 0x0808fccb in PyRun_FileExFlags ()
#22 0x0808edcd in PyRun_SimpleFileExFlags ()
#23 0x080534c1 in Py_Main ()
#24 0x08052f9b in main ()
#25 0x401757a7 in __libc_start_main () from /lib/libc.so.6


More information about the PyQt mailing list