[Telepathy] Debugging question in telepathy-python + Sugar

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Jul 14 02:02:10 PDT 2009


Le dimanche 12 juillet 2009 à 11:45 -0400, Benjamin M. Schwartz a
écrit :
> Hey telepaths,

Hi Benjamin,

> I'm trying to debug a sharing situation in Sugar, when an activity is
> opened, shared, closed, and then relaunched from the Journal.  Based on
> the logs, I wonder if ListTubes is misbehaving:

Can you tell me exactly what happen in this scenario from a Telepathy
pov?

activity is opened and shared:
- You create a new muc room and join
- You request a tubes channel
- You offer a tube on this channel (D-Bus? Stream?)

activity is closed:
- You close the muc room and so the tubes channel and the tube

Is that correct?

What happen when the activity is relaunched from the Journal?
- You rejoin the same room?
- Does it still contain participants?
- Are you offering a new tube?

If the Journal doesn't explicitly re-offer the tube, there are different
scenarios:
- The tube was a stream one and has been closed when you left the
channel (a stream tube is closed as soon its initiator left or close
it).
- Tube was a D-Bus one and you were the last participant when you left.
The tube has been closed.
- Tube was a D-Bus one and some people were still in the tube when you
left and rejoin. Then the tube still exists.


Does that make sense to you? Let me know if something is unclear or if I
misunderstood your scenario.


> First, the Presence Service confirms that there is a Tubes channel:
> 
> DEBUG sugar.presence.activity: <proxy for
> /org/laptop/Sugar/Presence/Activities/17 at b5f04f2c>: Connection
> <telepathy.client.conn.Connection object at 0xb5f0814c> is ready
> DEBUG sugar.presence.activity: <proxy for
> /org/laptop/Sugar/Presence/Activities/17 at b5f04f2c>: Text channel
> <telepathy.client.channel.Channel object at 0xb5f0832c> is ready
> DEBUG sugar.presence.activity: <proxy for
> /org/laptop/Sugar/Presence/Activities/17 at b5f04f2c>: Tubes channel
> <telepathy.client.channel.Channel object at 0xb5f083ec> is ready
> DEBUG sugar.presence.activity: <proxy for
> /org/laptop/Sugar/Presence/Activities/17 at b5f04f2c>: finished setting up
> tubes
> DEBUG root: Share of activity 47298b3119f10cbdc7ac3d9971971b19a5e01dfb
> successful, PS activity is <proxy for
> /org/laptop/Sugar/Presence/Activities/17 at b5f04f2c>.
> 
> but when my code asks for tube, using the ListTubes API, ListTubes replies
> to its reply_handler with an empty list:
> 
> DEBUG org.sugarlabs.SharedTextDemo: This is not my activity: waiting for a
> tube...
> ...
> DEBUG org.sugarlabs.SharedTextDemo: Got 0 tubes from ListTubes.
> 
> What's going on here?
> 
> Thanks,
> Ben
> 
> P.S. This is all in Sugar 0.82, OLPC OS 8.2.0, using (I think) Telepathy
> 0.15.0.


Are you testing using Gabble or Salut? Shouldn't make any difference but
that's always good to know.


Hope that helps,


	G.



More information about the telepathy mailing list