problem with dbus execution
ben ayed wiem
wiem_wala at yahoo.fr
Wed Apr 18 08:05:14 PDT 2012
Hi,
I have runned an application, on the robot MarXbot, that call these 2 functions in the same time and wait for their replies.
First function:
QDBusConnection connection = QDBusConnection::systemBus();
ch::epfl::mobots::AsebaNetwork network(DBUS_SERVICE_ASEBA, DBUS_PATH_ASEBA, connection);
QDBusPendingReply<Values> reply = network.GetVariable("base-sensors","proximity.corrected");
reply.waitForFinished();
if (reply.isError()){
qDebug() << "error proxy \n";
}
Second function:
QDBusConnection connection = QDBusConnection::systemBus();
ch::epfl::mobots::AsebaNetwork network(DBUS_SERVICE_ASEBA, DBUS_PATH_ASEBA, connection);
QDBusPendingReply<Values> replyV = network.GetVariable("sensor-turret","sharp.value");
replyV.waitForFinished();
QDBusPendingReply<Values> replyA = network.GetVariable("sensor-turret","sharp.angle");
replyA.waitForFinished();
if (replyV.isError()||replyA.isError()){
qDebug() << "error sharp \n";
}
but some times I get this message:
QDBusConnectionPrivate::connectSignal: received error from D-Bus server while connecting signal to QDBusAbstractInterface::_q_serviceOwnerChanged(QString,QString,QString): org.freedesktop.DBus.Error.NoMemory (Not enough memory)
QDBusConnectionPrivate::connectSignal: received error from D-Bus server while connecting signal to QDBusAbstractInterface::_q_serviceOwnerChanged(QString,QString,QString): org.freedesktop.DBus.Error.NoMemory (Not enough memory)
error proxy
QDBusConnectionPrivate::connectSignal: received error from D-Bus server while connecting signal to QDBusAbstractInterface::_q_serviceOwnerChanged(QString,QString,QString): org.freedesktop.DBus.Error.NoMemory (Not enough memory)
error sharp
QDBusConnectionPrivate::connectSignal: received error from D-Bus server while connecting signal to QDBusAbstractInterface::_q_serviceOwnerChanged(QString,QString,QString): org.freedesktop.DBus.Error.NoMemory (Not enough memory)
When I run only one function in a time, I don't get this message and the execution go very well.
Is there any way to avoid this problem?
Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20120418/fbe62ce2/attachment.html>
More information about the dbus
mailing list