Hi,<br><br>I'm trying to use the new PyQt4 dbus mainloop, but it crashes with an assertion error when I try to get an object from the bus. I'm using Sip 4.6, PyQt4.2, Qt 4.2.3, Python 2.5.1, DBus 1.0.2 and dbus-python
0.80.1. Am I doing something fundamentally insane or wrong?<br><br>If I remove the QDBusQtMainLoop(set_as_default=True) line, it works just fine. The assertion also happens if app.exec_() and get the bus object from a QTimer event.
<br><br>Anybody got any ideas?<br><br>Ingmar<br><br>Here's the sample app:<br>from PyQt4 import QtCore<br>from dbus.mainloop.qt import DBusQtMainLoop<br>import dbus, sys<br>app = QtCore.QCoreApplication(sys.argv)<br>DBusQtMainLoop(set_as_default = True)
<br>print 'getting bus'; bus = dbus.SystemBus()<br>print 'getting obj'; obj = bus.get_object('org.bluez', '/org/bluez')<br>print 'done'<br><br>And here's the output:<br>$ python
test.py <br>getting bus<br>getting obj<br>10739: assertion failed "!(connection)->have_connection_lock" file "dbus-connection.c" line 3973 function dbus_connection_get_dispatch_status<br> /usr/lib/libdbus-
1.so.3 [0xb7683cde]<br> /usr/lib/libdbus-1.so.3 [0xb76830c7]<br> /usr/lib/libdbus-1.so.3 [0xb76777b7]<br> /usr/lib/libdbus-1.so.3(dbus_connection_get_dispatch_status+0x8f) [0xb76547ef]<br> /usr/lib/python2.5/site-packages/dbus/mainloop/qt.so [0xb76a5bd7]
<br> /usr/lib/libdbus-1.so.3 [0xb764e9b5]<br> /usr/lib/libdbus-1.so.3 [0xb7672208]<br> /usr/lib/libdbus-1.so.3 [0xb76738c8]<br> /usr/lib/libdbus-1.so.3 [0xb7673fc2]<br> /usr/lib/libdbus-1.so.3 [0xb7671ab4]<br> /usr/lib/libdbus-
1.so.3 [0xb7653850]<br> /usr/lib/libdbus-1.so.3 [0xb76570a0]<br> /usr/lib/libdbus-1.so.3(dbus_pending_call_block+0x5f) [0xb7669a4f]<br> /usr/lib/python2.5/site-packages/_dbus_bindings.so [0xb76c0f5c]<br> /usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x5b98) [0xb7eeb4d8]
<br> /usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x6098) [0xb7eeb9d8]<br> /usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x793) [0xb7eecac3]<br> /usr/lib/libpython2.5.so.1.0 [0xb7e8b087]<br> /usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37) [0xb7e69557]
<br> /usr/lib/libpython2.5.so.1.0 [0xb7e70d02]<br> /usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37) [0xb7e69557]<br> /usr/lib/libpython2.5.so.1.0 [0xb7e71254]<br> /usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37) [0xb7e69557]
<br> /usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x1383) [0xb7ee6cc3]<br> /usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x793) [0xb7eecac3]<br> /usr/lib/libpython2.5.so.1.0 [0xb7e8b087]<br> /usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37) [0xb7e69557]
<br> /usr/lib/libpython2.5.so.1.0 [0xb7e70d02]<br> /usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37) [0xb7e69557]<br> /usr/lib/libpython2.5.so.1.0(PyEval_CallObjectWithKeywords+0x7b) [0xb7ee4c3b]<br> /usr/lib/libpython2.5.so.1.0(PyInstance_New+0x7a) [0xb7e748aa]
<br> /usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37) [0xb7e69557]<br> /usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x1383) [0xb7ee6cc3]<br> /usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x793) [0xb7eecac3]<br> /usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x5076) [0xb7eea9b6]
<br> /usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x793) [0xb7eecac3]<br> /usr/lib/libpython2.5.so.1.0(PyEval_EvalCode+0x55) [0xb7eecb35]<br> /usr/lib/libpython2.5.so.1.0(PyRun_FileExFlags+0xb4) [0xb7f0eec4]<br> /usr/lib/libpython2.5.so.1.0(PyRun_SimpleFileExFlags+0x1a6) [0xb7f0f1b6]
<br> /usr/lib/libpython2.5.so.1.0(PyRun_AnyFileExFlags+0x7a) [0xb7f0f49a]<br> /usr/lib/libpython2.5.so.1.0(Py_Main+0xaac) [0xb7f189cc]<br> python(main+0x32) [0x8048592]<br> /lib/libc.so.6(__libc_start_main+0xd8) [0xb7cec7c8]
<br> python [0x80484d1]<br>Aborted<br><br>