Hi,<br><br>I&#39;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&#39;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&#39;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 &#39;getting bus&#39;; bus = dbus.SystemBus()<br>print &#39;getting obj&#39;; obj = bus.get_object(&#39;org.bluez&#39;, &#39;/org/bluez&#39;)<br>print &#39;done&#39;<br><br>And here&#39;s the output:<br>$ python 
test.py <br>getting bus<br>getting obj<br>10739: assertion failed &quot;!(connection)-&gt;have_connection_lock&quot; file &quot;dbus-connection.c&quot; line 3973 function dbus_connection_get_dispatch_status<br>&nbsp; /usr/lib/libdbus-
1.so.3 [0xb7683cde]<br>&nbsp; /usr/lib/libdbus-1.so.3 [0xb76830c7]<br>&nbsp; /usr/lib/libdbus-1.so.3 [0xb76777b7]<br>&nbsp; /usr/lib/libdbus-1.so.3(dbus_connection_get_dispatch_status+0x8f) [0xb76547ef]<br>&nbsp; /usr/lib/python2.5/site-packages/dbus/mainloop/qt.so [0xb76a5bd7]
<br>&nbsp; /usr/lib/libdbus-1.so.3 [0xb764e9b5]<br>&nbsp; /usr/lib/libdbus-1.so.3 [0xb7672208]<br>&nbsp; /usr/lib/libdbus-1.so.3 [0xb76738c8]<br>&nbsp; /usr/lib/libdbus-1.so.3 [0xb7673fc2]<br>&nbsp; /usr/lib/libdbus-1.so.3 [0xb7671ab4]<br>&nbsp; /usr/lib/libdbus-
1.so.3 [0xb7653850]<br>&nbsp; /usr/lib/libdbus-1.so.3 [0xb76570a0]<br>&nbsp; /usr/lib/libdbus-1.so.3(dbus_pending_call_block+0x5f) [0xb7669a4f]<br>&nbsp; /usr/lib/python2.5/site-packages/_dbus_bindings.so [0xb76c0f5c]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x5b98) [0xb7eeb4d8]
<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x6098) [0xb7eeb9d8]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x793) [0xb7eecac3]<br>&nbsp; /usr/lib/libpython2.5.so.1.0 [0xb7e8b087]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37) [0xb7e69557]
<br>&nbsp; /usr/lib/libpython2.5.so.1.0 [0xb7e70d02]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37) [0xb7e69557]<br>&nbsp; /usr/lib/libpython2.5.so.1.0 [0xb7e71254]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37) [0xb7e69557]
<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x1383) [0xb7ee6cc3]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x793) [0xb7eecac3]<br>&nbsp; /usr/lib/libpython2.5.so.1.0 [0xb7e8b087]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37) [0xb7e69557]
<br>&nbsp; /usr/lib/libpython2.5.so.1.0 [0xb7e70d02]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37) [0xb7e69557]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyEval_CallObjectWithKeywords+0x7b) [0xb7ee4c3b]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyInstance_New+0x7a) [0xb7e748aa]
<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyObject_Call+0x37) [0xb7e69557]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x1383) [0xb7ee6cc3]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x793) [0xb7eecac3]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x5076) [0xb7eea9b6]
<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x793) [0xb7eecac3]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyEval_EvalCode+0x55) [0xb7eecb35]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyRun_FileExFlags+0xb4) [0xb7f0eec4]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyRun_SimpleFileExFlags+0x1a6) [0xb7f0f1b6]
<br>&nbsp; /usr/lib/libpython2.5.so.1.0(PyRun_AnyFileExFlags+0x7a) [0xb7f0f49a]<br>&nbsp; /usr/lib/libpython2.5.so.1.0(Py_Main+0xaac) [0xb7f189cc]<br>&nbsp; python(main+0x32) [0x8048592]<br>&nbsp; /lib/libc.so.6(__libc_start_main+0xd8) [0xb7cec7c8]
<br>&nbsp; python [0x80484d1]<br>Aborted<br><br>