Adium

Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#15411 closed defect (fixed)

Google Talk Jabber Connections Regularly Disconnect

Reported by: VxJasonxV Owned by:
Milestone: Adium 1.5.7 Component: Adium Core
Version: 1.4.3b2 Severity: normal
Keywords: jabber, google talk, xmpp Cc:
Patch Status:

Description

Summary

I have two configured Google Talk accounts, one @gmail.com, the other as part of my Google Apps domain.

The Google Talk account *is* configured via the "Google Talk" account type, the other is configured as a standard Jabber account.

These account seem to be regularly disconnect, multiple times an hour. I have no yet narrowed down if it occurs at any particular frequency, I just know that I've clicked "Ok" to the authentication dialog many times a day. I've given up checking 'Remember Password' because it's largely irrelevant in this case.

Steps to reproduce

At this time I don't know the specific steps to reproduce, so I'll list what I have;

  1. Create a new account type of Google Talk.
  2. Fill in your authentication information on the Account tab.
  3. The only icons on the Options tab that should be checked are Display Custom Emoticons and Do strict certificate checks. Additionally, the File Transfer Proxy has the default proxy.eu.jabber.org configured, resource is Adium, port is 5222. Presence Subscription is set to ask. Privacy and Proxy tabs are default.

Expected results

A stable connection barring my own connectivity issues.

Actual results

Continued disconnects with "Unhandled Error: 0".

Notes

Currently running 1.4.3b2

I see lines very similar to this in the debug log when this issue occurs, though, oddly, not every time.

I have two instances of this error in the debug log, this was the first, the second had none of these lines, even though the account dialog did continue to list the "Undefined Error: 0".

07:31:14: (Libpurple: cdsa) receive failed (-9802): Undefined error: 0
07:31:14: (Libpurple: connection) Connection error on 0x8729130 (reason: 0 description: Lost connection with server: Undefined error: 0)
07:31:14: Connection Disconnected: gc=8729130 (Lost connection with server: Undefined error: 0)
07:31:14: <AIPurpleGTalkAccount:44c1c30 2>:vxjasonxv@gmail.com accountConnectionReportDisconnect: Lost connection with server: Undefined error: 0
07:31:14: (Libpurple: account) Disconnecting account vxjasonxv@gmail.com/Adium (0x441c800)
07:31:14: (Libpurple: connection) Disconnecting connection 0x8729130
07:31:14: (Libpurple: jabber) Sending (ssl) (vxjasonxv@gmail.com/Adium): </stream:stream>
07:31:14: (Libpurple: cdsa) send failed (-9806): Undefined error: 0
07:31:14: Disconnected: gc=8729130
07:31:14: <AIPurpleGTalkAccount:44c1c30 2>:vxjasonxv@gmail.com: Telling the core we disconnected
07:31:14: -[AIContactObserverManager endListObjectNotificationsDelaysImmediately]: 
07:31:14: <AIPurpleGTalkAccount:44c1c30 2>:vxjasonxv@gmail.com: Disconnected ("Lost connection with server: Undefined error: 0"): Automatically reconnecting in 600.000000 seconds (15 attempts performed)
07:31:14: (Libpurple: connection) Destroying connection 0x8729130
07:31:14: (Libpurple: cdsa) receive failed (-9802): Undefined error: 0
07:31:14: (Libpurple: connection) Connection error on 0x4013750 (reason: 0 description: Lost connection with server: Undefined error: 0)
07:31:14: Connection Disconnected: gc=4013750 (Lost connection with server: Undefined error: 0)
07:31:14: <ESPurpleJabberAccount:418f710 3>:jason@zenenet.com accountConnectionReportDisconnect: Lost connection with server: Undefined error: 0
07:31:14: (Libpurple: account) Disconnecting account jason@zenenet.com/jsalaz-mac (0x254af20)
07:31:14: (Libpurple: connection) Disconnecting connection 0x4013750
07:31:14: (Libpurple: jabber) Sending (ssl) (jason@zenenet.com/jsalaz-mac): </stream:stream>
07:31:14: (Libpurple: cdsa) send failed (-9806): Undefined error: 0
07:31:14: Disconnected: gc=4013750
07:31:14: <ESPurpleJabberAccount:418f710 3>:jason@zenenet.com: Telling the core we disconnected
07:31:14: -[AIContactObserverManager endListObjectNotificationsDelaysImmediately]: 
07:31:14: <ESPurpleJabberAccount:418f710 3>:jason@zenenet.com: Disconnected ("Lost connection with server: Undefined error: 0"): Automatically reconnecting in 600.000000 seconds (15 attempts performed)
07:31:14: (Libpurple: connection) Destroying connection 0x4013750
07:31:19: (Libpurple: util) Writing file accounts.xml to directory /Users/jsalaz/Library/Application Support/Adium 2.0/Users/Default/libpurple
07:31:19: (Libpurple: util) Writing file /Users/jsalaz/Library/Application Support/Adium 2.0/Users/Default/libpurple/accounts.xml

Change History (8)

comment:1 Changed 5 years ago by VxJasonxV

As asked on IRC, and a good idea to put here for posterity;

I'm running Lion 10.7 (no developer betas or anything), on a MacBook Pro best identified as MacBook Pro 5,2.

comment:2 Changed 5 years ago by deaves

+1 on experiencing this bug. I've got the exact same problem, with the exact same configuration. Macbook pro, Lion, have both a gmail and a google apps accunt. Gmail running fine, google apps, not so much...

d

Last edited 5 years ago by deaves (previous) (diff)

comment:3 Changed 5 years ago by VxJasonxV

I've recently set up another Jabber-based account for a web service called HipChat, and it too is experiencing the exact same symptoms, although it happens a bit less frequently.

comment:4 Changed 5 years ago by jinnko

This ticket appears to be related to #13427.

I am experiencing this bug on Mac OSX 10.6.8 Snow Leopard. It has been occurring for weeks with the result that I am connected but when I chat with users they don't see my messages and I don't see theirs.

I have another gtalk account on google apps that works without this issue, so this seems to only affect some accounts. In my case one difference is the failing account has 2 factor login enabled, though Adium is able to successfully log in and has it's own authorization password.

The problem affects both my work & home laptops's regardless of location/network. So I'm narrowing it down to the interaction between Adium (libpurple?) and the particular google account. The google gtalk services don't appear to be affected as this has been broken for a couple of weeks and other accounts continue to function.

I have been unable to attach a log file or paste it here so you can find it on pastebin at http://pastebin.com/N1qKiipL

Last edited 5 years ago by jinnko (previous) (diff)

comment:5 Changed 5 years ago by rootsup

Exact same issue... new MBP... Lion 10.7.2...

Where is the help!

comment:6 Changed 5 years ago by rootsup

19:10:05: (Libpurple: jabber) Recv (ssl)(184): <stream:error><resource-constraint xmlns="urn:ietf:params:xml:ns:xmpp-streams"/><str:text xmlns:str="urn:ietf:params:xml:ns:xmpp-streams">Stanza is too large.</str:text></stream:error>
19:10:05: (Libpurple: connection) Connection error on 0x25e2e10 (reason: 0 description: Resource Constraint)
19:10:05: Connection Disconnected: gc=25e2e10 (Resource Constraint)

Straight from the log file after my sha1 hash was sent to verify my pw.

Last edited 5 years ago by wixardy (previous) (diff)

comment:7 Changed 4 years ago by Thijs Alkemade <me@…>

  • Resolution set to fixed
  • Status changed from new to closed

(In ef796c40efb0) Fix a read returning 0 in the SocketRead callback for SSL being handled as an error, while it's meant to indicate "no data available".

This would cause disconnections with the error "(Libpurple: cdsa) receive failed (-9802): Undefined error: 0".

Fixes #16356, fixes #15405, fixes #15411, fixes #15741

comment:8 Changed 4 years ago by Robby

  • Milestone set to Adium 1.5.7
Note: See TracTickets for help on using tickets.