Comments (8)
What is the debug output from the messageitem causing this error?
from dbus-rs.
Ah, I forgot about this output:
process 25101: arguments to dbus_message_iter_open_container() were incorrect, assertion "(type == DBUS_TYPE_ARRAY && contained_signature && *contained_signature == DBUS_DICT_ENTRY_BEGIN_CHAR) || (contained_signature == NULL || _dbus_check_is_valid_signature (contained_signature))" failed in file ../../dbus/dbus-message.c line 2801.
This is normally a bug in some application using the D-Bus library.
I'm not sure this is what you're looking for, but I think this is all the relevant output I'm getting. Let me know if you need something else.
from dbus-rs.
I mean something like this:
let m: MessageItem = /* ... */;
println!("{:?}", m); // I want this output
message.append_items(&[m]);
DictEntry
must be inside an array so if you are making a dict of dicts then it's actually something like Array(DictEntry(Str, Array(DictEntry(Str, Variant))))
from dbus-rs.
Slightly Pretty:
Array([
DictEntry( Str("org.freedesktop.Secret.Item.Label"), Variant(Str("Test")) ),
DictEntry( Str("org.freedesktop.Secret.Item.Attributes"), Variant( Array([DictEntry(Str("one"), Str("one"))], "{ss}")))
], "{sv}")
Raw (in case I misformatted something):
Array([DictEntry(Str("org.freedesktop.Secret.Item.Label"), Variant(Str("Test"))), DictEntry(Str("org.freedesktop.Secret.Item.Attributes"), Variant(Array([DictEntry(Str("one"), Str("one"))], "{ss}")))], "{sv}")
from dbus-rs.
Similar error, happens when I try to make a dictionary that's the same as the one that's nested in above errors.
---- item::test::should_get_and_set_item_attributes stdout ----
Array([DictEntry(Str("test"), Str("test"))], "{ss}")
thread 'item::test::should_get_and_set_item_attributes' panicked at 'assertion failed: unsafe {
ffi::dbus_message_iter_open_container(i, ffi::DBUS_TYPE_VARIANT,
atype.as_ptr(), &mut subiter)
} != 0', /home/hwchen/.cargo/registry/src/github.com-88ac128001ac3a9a/dbus-0.2.2/src/message.rs:156
from dbus-rs.
Hi,
I believe it was a bug in my D-Bus bindings, which I have now fixed in the commit above. Could you test it and reopen the bug in case I'm wrong?
from dbus-rs.
Works great, thanks!
from dbus-rs.
Hello,
I'm hoping to publish my library, but the dbus bugfix does not appear to be published to crates.io. Do I need you to publish to crates.io, or is there another workaround? (for dev, I used the repo as a dependency).
from dbus-rs.
Related Issues (20)
- alpine build fail HOT 1
- Monitor example doesn't connect when dbus-monitor does HOT 4
- Support : How to read Array of HashMap HOT 4
- How does dbus-crossroads start X11? HOT 4
- Doesn't compile on ubuntu-latest image HOT 5
- dbus-crossroads: cr.insert() during sync method call HOT 1
- GetManagedObjects doesn't respond with async properties HOT 6
- Use standard library `OwnedFd` HOT 10
- Crossroads::get_children() returns not children but descendants HOT 1
- Multi-interface fdo Properties GetAll behaves erratically with async properties HOT 2
- fdo ObjectManager GetManagedObjects method panics with multiple objects and async properties HOT 1
- "vendored" feature fails to compile HOT 7
- Possible deadlock in dbus-tokio HOT 4
- Crossroad example not working HOT 1
- `vendored` feature's build script writes outside of `$OUT_DIR` HOT 5
- async monitor? HOT 4
- monitor system bus without root privileges HOT 4
- [Help] When variant is a struct? HOT 10
- dbus-codegen: When crossroads is enabled, no client-side code is generated HOT 3
- dbus-codegen: Add attribute to specify rust type for method arguments HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbus-rs.