[Bug 26928] New: Request's CreateChannel not returning all properties causes random failures on Maemo 5

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Mar 6 21:59:02 CET 2010


http://bugs.freedesktop.org/show_bug.cgi?id=26928

           Summary: Request's CreateChannel not returning all properties
                    causes random failures on Maemo 5
           Product: Telepathy
           Version: git master
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: tp-python
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: eopage at byu.net


I guess I should be using the bugzilla.  This is taken from a post on the
telepathy mailing list.
http://lists.freedesktop.org/archives/telepathy/2010-March/004282.html

After much help from Lassi Syrjälä of Nokia, I've been able to narrow
down an issue I was having with my connection Manager on the Maemo 5.

I got random reports of Maemo's phone UI reporting "General Error".
Monitoring DBus showed that this came from Maemo 5's Mission Control
randomly passing incomplete information to the UI, particularly the
InitiatorHandle was lacking.

What happens is Mission Control calls HandleChannels sometime after
CreateChannel with whatever information it has at the moment.
telepathy-python's implementation of the Requests interface only
returns the properties it was given, minus the mutable ones.  This
does not include the InitiatorHandle.  Mission Control starts some
other queries for information on the channel.  If those don't return
with the InitiatorHandle before HandleChannels is called then we see
the error.

My patch is to have CreateChannel/EnsureChannel return the properties
from the channel (much like NewChannels does) rather than uselessly
returning the properties passed in.  I've done some basic testing and
have reports of one or two other people testing this.  Sadly with race
conditions its hard to prove they are fixed by the lack of them.
Github page for the branch containing the fix
http://github.com/epage/telepathy-python/tree/tor-fixes
The change
http://github.com/epage/telepathy-python/commit/d86238e21e4f19080de7273e8b7d809069c9ccce
Git repo
http://github.com/epage/telepathy-python.git

The "The One Ring" bug report that has the investigation on this:
https://bugs.maemo.org/show_bug.cgi?id=8980


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the telepathy-bugs mailing list