assertion error?
Alex Bunnett
alexb at fusionelectronics.com
Thu Jul 23 21:36:10 PDT 2009
Got the dbus messages up and running but I keep getting a assertion error from time to time.
Im unsure how the message can become locked as im not setting it locked before sending.
This is the code
DBusMessage* message = NULL;
dbus_uint32_t serial ; // TODO What is this?
message = dbus_message_new_signal(SERVER_SEND_OBJECT , // object name of the signal
SEND_INTERFACE_SERVER , // interface name of the signal
"MessageServer");
DBusMessageIter iter, sub;
dbus_message_iter_init_append(message, &iter);
char buf[2];
buf[0] = DBUS_TYPE_BYTE;
buf[1] = '\0';
dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, buf, &sub);
if(!dbus_message_iter_append_fixed_array(&sub, DBUS_TYPE_BYTE, &pBuff, len))
{
__ALEX("couldnt append message");
dbus_message_unref(message);
return 0;
}
dbus_message_iter_close_container(&iter, &sub);
if(!dbus_connection_send(_connection, message, &serial))
{
__ALEX("Couldn't Send message");
dbus_message_unref(message);
return 0;
}
dbus_connection_flush(_connection); // force message to be sent now
dbus_message_unref(message);
return len;
process 790: arguments to dbus_message_set_serial() were incorrect, assertion "!message->locked" failed in file dbus-message.c line 178.
This is normally a bug in some application using the D-Bus library.
D-Bus not compiled with backtrace support so unable to print a backtrace
Thanks
[cid:image001.jpg at 01CA0C7C.D9E10040]<http://www.fusioncaraudio.com/>
Alex Bunnett
Embedded Software Engineer
Ph: +64-9-369-2900
DDI: +64-9-369-2940
Fax: +64-9-369-2907
Email: alexb at fusionelectronics.co.nz<mailto:alexb at fusionelectronics.co.nz>
Website: http://www.fusionelectronics.com
The information in this email and any attachments is confidential. This information may be subject to legal, professional, or other privilege. It must not be disclosed to any person without our authority. If you are not the intended recipient you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it. Please return this message to the sender immediately and delete any and all copies from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20090724/c93e0f64/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/x-citrix-jpeg
Size: 3610 bytes
Desc: image001.jpg
Url : http://lists.freedesktop.org/archives/dbus/attachments/20090724/c93e0f64/attachment.bin
More information about the dbus
mailing list