[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: Connection drops
From:       Joćo_Valverde <backup95 () netcabo ! pt>
Date:       2008-07-26 21:38:24
Message-ID: 488B9950.5060807 () netcabo ! pt
[Download RAW message or body]

Havoc Pennington wrote:
> Hi,
>
> On Sat, Jul 26, 2008 at 9:01 AM, Joćo Valverde <backup95@netcabo.pt> wrote:
>   
>> I'm getting random disconnects from D-Bus. What I mean is my process
>> works fine broadcasting signals but after a while (some hours usually),
>> with increasing likelihood, it gets silently dropped from the daemon for
>> no apparent reason.
>>     
>
> Most likely you are sending not-well-formed data; the most common
> reason is sending invalid UTF-8 as a DBUS_TYPE_STRING. Another
> possible problem is invalid object paths or interface names.
>
> See:
> https://bugs.freedesktop.org/show_bug.cgi?id=16338#c1
> http://lists.freedesktop.org/archives/dbus/2007-November/008975.html
>
> The fix described in the list archives above would be good, also more
> _dbus_return_if_fail() could be added to try to catch this stuff.
> Though UTF-8 validating all strings is expensive, it could be worth
> it.
>   

That's exactly right, invalid UTF-8 strings were the problem. Thank you 
very much once more!

Joćo Valverde
_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic