Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to ObjectManager GetManagedObjects() fails #28

Closed
agrover opened this issue Jan 11, 2016 · 3 comments
Closed

Call to ObjectManager GetManagedObjects() fails #28

agrover opened this issue Jan 11, 2016 · 3 comments

Comments

@agrover
Copy link
Contributor

agrover commented Jan 11, 2016

I get this error when calling GetManagedObjects from qdbusviewer-qt5. Here's my code for reference.

process 12282: Array or variant type requires that type object_path be written, but string was written.
The overall signature expected here was 'a{oa{sa{sv}}}' and we are on byte 2 of that signature.
  D-Bus not built with -rdynamic so unable to print a backtrace
@agrover
Copy link
Contributor Author

agrover commented Jan 12, 2016

FWIW I stuck a debug print in get_managed_objects and this is what I got for its retval:

Array([DictEntry(Str(/org/kernel/froyo/blah), Array([DictEntry(Str(org.freedesktop.DBus.Introspectable), Array([], {sv})), DictEntry(Str(org.freedesktop.DBus.ObjectManager), Array([], {sv})), DictEntry(Str(org.kernel.FroyoService1), Array([], {sv}))], {sa{sv}}))], {oa{sa{sv}}})

diwic pushed a commit that referenced this issue Jan 12, 2016
Make sure we deref the Arc<Path> to a Path, not all the way to a &str.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
@diwic
Copy link
Owner

diwic commented Jan 12, 2016

Thanks for the bug report! I just pushed a new commit to master, could you see if that helps? (And if not, what is the debug print now?)

@agrover
Copy link
Contributor Author

agrover commented Jan 12, 2016

Works now! Thanks!

@agrover agrover closed this as completed Jan 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants