uProxy-p2p icon indicating copy to clipboard operation
uProxy-p2p copied to clipboard

Don't see contacts until log out and back in again

Open scouttle opened this issue 12 years ago • 10 comments

Sequence of events:

  1. Scott and I were both logged in to uProxy, but had not yet chatted with one another in gChat.
  2. We chatted with one another in gChat.
  3. We still didn't see each other in uProxy.
  4. We each logged out and back in of uProxy, and were able to see each other.

scouttle avatar May 23 '14 18:05 scouttle

I encountered this again just now while trying to proxy with Dan for the first time. We had been chatting in gChat, but neither one of us could see one another in uProxy. I logged out and logged back in, and I could see him – but he couldn't see me and it said on my side that he didn't have uProxy. Once he logged out and logged back in, I was able to offer him access.

I have my logs if they'd be useful (although I'm hesitant to paste them in for various reasons); I will also try and get Dan's.

scouttle avatar May 29 '14 19:05 scouttle

Yes, please send logs to me by email if that's cool; and if you are able to tell us how to reproduce consistently, I will buy you cake. :)

iislucas avatar May 29 '14 19:05 iislucas

Logs sent by email! :smiley:

scouttle avatar May 29 '14 20:05 scouttle

Note: #166 may be another instance of this, and references a file containing additional logs.

(I wish there were a log emoji.)

scouttle avatar Jun 03 '14 20:06 scouttle

Teamfooders seem to be encountering this pretty consistently.

For example, this morning I (using my FredUproxy account) chatted back and forth over Gchat with Steph for the very first time, but Steph never showed up in uProxy (no matter which filters I apply or don't apply).

In logs, I see this error occur several times – not sure if it's related.

ErrorEvent "[object Worker]" Uncaught Error: Argument error chrome-extension://fmdppkkepalnkeommjadgbhiohihdhii/lib/freedom-social-xmpp/node-xmpp-browser.js:10072

scouttle avatar Jun 04 '14 19:06 scouttle

node-xmpp-browser.js:10072 appears to locate to the DNS resolution code, although 10072 itself is a blank line.

willscott avatar Jun 04 '14 19:06 willscott

I don't know that the node-xmpp-browser.js trace is related.

My bet is that this bug is also related to instance messages not making it between the peers. I think what is happening is that user A and user B both log into UProxy and don't get each others clientIds from XMPP because they aren't yet contacts. If they then contact each other on GTalk (outside of UProxy), either UProxy isn't getting onClientState/onUserProfile events for these users, or it is getting them but isn't sending out instance messages (possibly because it sees ONLINE_WITH_OTHER_APP).

@keroserene, any ideas here?

On Wed, Jun 4, 2014 at 3:22 PM, Will [email protected] wrote:

node-xmpp-browser.js:10072 appears to locate to the DNS resolution code, although 10072 itself is a blank line.

— Reply to this email directly or view it on GitHub https://github.com/uProxy/uProxy/issues/146#issuecomment-45138919.

dborkan avatar Jun 04 '14 20:06 dborkan

Sounds right to me. This is part of getting the right Client IDs at the right times, which is what Serene is working on.

On Wed, Jun 4, 2014 at 4:49 PM, dborkan [email protected] wrote:

I don't know that the node-xmpp-browser.js trace is related.

My bet is that this bug is also related to instance messages not making it between the peers. I think what is happening is that user A and user B both log into UProxy and don't get each others clientIds from XMPP because they aren't yet contacts. If they then contact each other on GTalk (outside of UProxy), either UProxy isn't getting onClientState/onUserProfile events for these users, or it is getting them but isn't sending out instance messages (possibly because it sees ONLINE_WITH_OTHER_APP).

@keroserene, any ideas here?

On Wed, Jun 4, 2014 at 3:22 PM, Will [email protected] wrote:

node-xmpp-browser.js:10072 appears to locate to the DNS resolution code, although 10072 itself is a blank line.

— Reply to this email directly or view it on GitHub https://github.com/uProxy/uProxy/issues/146#issuecomment-45138919.

— Reply to this email directly or view it on GitHub https://github.com/uProxy/uProxy/issues/146#issuecomment-45149506.

Lucas Dixon | Google Ideas

iislucas avatar Jun 04 '14 23:06 iislucas

I experienced this issue again yesterday, and we've gotten a couple reports from dogfooders that they're encountering it too.

Yesterday I was able to see my new contact after signing out and back in of uProxy. I looked at the logs, and saw no error messages... I see the point at which my new friend is recognized by uproxy (a line that says "new user", followed by "Updated - known to be: online: false uproxy-enabled: false", and a bunch of other "false/false" messages.

scouttle avatar Jun 12 '14 15:06 scouttle

This is working now for me. It is possible that when 2 users first make contact outside of uProxy, uProxy finds out about the other contacts via XMPP, but doesn't have the instance for the peer right away (this would explain the "Updated - known to be: online: false uproxy-enabled: false" trace). This should now correct itself within ~5 seconds by sending an INSTANCE_REQUEST message to the peer, then they will appear in the buddylist as a uProxy user. I'll close this ticket for now and we can reopen if this occurs again with the latest version (currently v0.2.2)

dborkan avatar Jun 27 '14 15:06 dborkan