rameshrgtvl
rameshrgtvl

Reputation: 343

what could be the reason for losing the service name in dbus

I am using c++ common-api dbus bindings. From client I am calling a method named getCurrentTrackInfo(struct trackInfo_st &trackInfo) in server.

This data structure has greater than 15 members.

When this particular method [getCurrentTrackInfo] is called, server is losing the bus name immediately. [com.service.MediaPlayerDemo]

Is there any list of do's & dont's or error codes in dbus for capturing the reason for losing the bus name.

Upvotes: 0

Views: 1183

Answers (1)

JoGr
JoGr

Reputation: 1557

You can watch what goes on on the bus by using dbus-monitor, any errors should be visible.

I would try to interact with the service using another method to rule out errors in the binding and client code. One way could be to use e.g. D-Feet or dbus-send if you are on a linux machine.

If the error is due to the service crashing, which is what it sounds like, then the actual error will likely not be visible on the bus.

Upvotes: 2

Related Questions