ArchiveOrangemail archive

dbus.lists.freedesktop.org


(List home) (Recent threads) (85 other Freedesktop.org lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe address with "subscribe" in the subject line, or visit the list's homepage here.
  • Low traffic list: less than 3 messages per day
  • This list contains about 15,219 messages, beginning May 2003
  • 1 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

problem with dbus execution

Ad
ben ayed wiem 1334761537Wed, 18 Apr 2012 15:05:37 +0000 (UTC)
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 proxyQDBusConnectionPrivate::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 sharpQDBusConnectionPrivate::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
Home | About | Privacy