Problems with dbus/qt/examples
Brad Hards
bradh at frogmouth.net
Tue Apr 25 00:18:52 PDT 2006
I've got Qt4 bindings building, however I'm seeing some problems with the
examples (well, the problem probably isn't in the examples, but they serve to
show the issue).
I have my FC5 dbus installed in /usr/, and my CVS (developer-only) version
in /usr/local/. I am running a local session bus using dbus-launch, and
exporting the magic DBUS_SESSION_BUS_ADDRESS environment variable.
dbus-monitor --session appears to connect the bus, and shows activity when I
use random dbus-send commands.
When I run the examples, they assert:
$ ./listnames
sending message: QDBusMessage(type=MethodCall, service="org.freedesktop.DBus",
path="/org/freedesktop/DBus", interface="org.freedesktop.DBus",
name="ListNames", signature="", contents=( ) )
got message: QDBusMessage(type=Signal, service="org.freedesktop.DBus",
path="/org/freedesktop/DBus", interface="org.freedesktop.DBus",
name="NameAcquired", signature="s", contents=(QString(":1.6") ) )
got message: QDBusMessage(type=MethodReturn, service="org.freedesktop.DBus",
path="", interface="", name="", signature="as",
contents=(QStringList(("org.freedesktop.DBus", ":1.5", ":1.6") ) ) )
ASSERT: "call->conn == this" in file qdbusintegrator.cpp, line 816
$ ./ping
sending message: QDBusMessage(type=MethodCall, service="", path="/",
interface="", name="ping", signature="", contents=(QString("") ) )
got message: QDBusMessage(type=Signal, service="org.freedesktop.DBus",
path="/org/freedesktop/DBus", interface="org.freedesktop.DBus",
name="NameAcquired", signature="s", contents=(QString(":1.8") ) )
got message: QDBusMessage(type=Error, service="", path="", interface="",
name="org.freedesktop.DBus.Error.UnknownMethod", signature="s",
contents=(QString("Method "ping" with signature "s" on interface "(null)"
doesn't exist
") ) )
ASSERT: "call->conn == this" in file qdbusintegrator.cpp, line 816
Segmentation fault
$ ./pong
sending message: QDBusMessage(type=MethodCall, service="org.freedesktop.DBus",
path="/org/freedesktop/DBus", interface="org.freedesktop.DBus",
name="RequestName", signature="su",
contents=(QString("com.trolltech.QtDBus.PingExample"), uint(1) ) )
got message: QDBusMessage(type=Signal, service="org.freedesktop.DBus",
path="/org/freedesktop/DBus", interface="org.freedesktop.DBus",
name="NameAcquired", signature="s", contents=(QString(":1.10") ) )
got message: QDBusMessage(type=Signal, service="org.freedesktop.DBus",
path="/org/freedesktop/DBus", interface="org.freedesktop.DBus",
name="NameOwnerChanged", signature="sss",
contents=(QString("com.trolltech.QtDBus.PingExample"), QString(""),
QString(":1.10") ) )
got message: QDBusMessage(type=Signal, service="org.freedesktop.DBus",
path="/org/freedesktop/DBus", interface="org.freedesktop.DBus",
name="NameAcquired", signature="s",
contents=(QString("com.trolltech.QtDBus.PingExample") ) )
got message: QDBusMessage(type=MethodReturn, service="org.freedesktop.DBus",
path="", interface="", name="", signature="u", contents=(uint(1) ) )
ASSERT: "call->conn == this" in file qdbusintegrator.cpp, line 816
Any suggestions?
Brad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060425/47cc1cdc/attachment.pgp
More information about the dbus
mailing list