Closed Bug 954642 Opened 11 years ago Closed 11 years ago

Status stuck on away/unavailable

Categories

(Instantbird Graveyard :: Contacts window, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla, Assigned: florian)

Details

(Whiteboard: [1.2-blocking][regression])

*** Original post on bio 1210 by Mook <mook.moz+bugs.instantbird AT gmail.com> at 2011-12-18 23:22:00 UTC ***

Been seeing this intermittently; filing a bug to keep track of it...

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111213 Instantbird/1.2a1pre

Sometimes instantbird would get set to away/unavailable, and then it gets stuck - switching back to Available still prompts me for an away message, and once I press enter it goes back to unavailable.  I think it mostly has to do with hibernating the machine, but I'm not sure about that.

It's been, unfortunately, difficult to reproduce, so this will probably sit around until I get a good set of steps to reproduce...

Things that look suspicious in the error console:

On attempting to set an away message (for either the unavailable state, or the available state (?)):
Error: this._outputStream is undefined
Source File: resource:///modules/socket.jsm
Line: 251

Hmm, I also seem to have a stuck-connected gtalk account... (‽)
*** Original post on bio 1210 at 2011-12-18 23:49:04 UTC ***

(In reply to comment #0)
> Been seeing this intermittently; filing a bug to keep track of it...
> 
> Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111213 Instantbird/1.2a1pre
> 
> Sometimes instantbird would get set to away/unavailable, and then it gets stuck
> - switching back to Available still prompts me for an away message, and once I
> press enter it goes back to unavailable.  I think it mostly has to do with
> hibernating the machine, but I'm not sure about that.

Could it be the nsIIdleService failing to notify that you are no longer idle?


> Things that look suspicious in the error console:
> 
> On attempting to set an away message (for either the unavailable state, or the
> available state (?)):
> Error: this._outputStream is undefined
> Source File: resource:///modules/socket.jsm
> Line: 251
> 
> Hmm, I also seem to have a stuck-connected gtalk account... (‽)

This message appears when JS-XMPP thinks it has a socket for an account and wants to disconnect that account, but it actually doesn't have the socket.
*** Original post on bio 1210 by Mook <mook.moz+bugs.instantbird AT gmail.com> at 2011-12-19 07:41:46 UTC ***

(In reply to comment #1)

> Could it be the nsIIdleService failing to notify that you are no longer idle?
Could be; I'll try to poke it the next time I get into that state.  Do we have an equivalent of the developer assistant / extensiondev extension I can install to get a somewhat decent JS REPL going?

> This message appears when JS-XMPP thinks it has a socket for an account and
> wants to disconnect that account, but it actually doesn't have the socket.
Could be; I think it was also not showing myself as online (... yeah, I added myself, using the same account...), so it was probably actually offline.
*** Original post on bio 1210 by Mook <mook.moz+bugs.instantbird AT gmail.com> at 2011-12-22 05:05:05 UTC ***

Hmm, now the gtalk account is stuck, but the online/offline thing is fine (or rather: it didn't get auto-marked as offline, and I can still manually switch it).  gtalk probably did give funny errors, though...

Error: [Exception... "Component returned failure code: 0x804b0010 (NS_ERROR_OFFLINE) [nsISocketTransportService.createTransport]"  nsresult: "0x804b0010 (NS_ERROR_OFFLINE)"  location: "JS frame :: resource:///modules/socket.jsm :: <TOP_LEVEL> :: line 438"  data: no]
Source File: resource:///modules/socket.jsm
Line: 438

Error: this._outputStream is undefined
Source File: resource:///modules/socket.jsm
Line: 251

(repeated seven more times; misc stuff were in the middle about oscar and msn - this probably was over some time)

Error: uncaught exception: [Exception... "'[JavaScript Error: "this._proxyCancel is null" {file: "resource:///modules/socket.jsm" line: 210}]' when calling method: [prplIAccount::disconnect]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: jar:file:///C:/opt/instantbird/omni.jar!/components/imAccounts.js :: <TOP_LEVEL> :: line 427"  data: yes]
(probably when I tried to manually disconnect)

Idle service seems to think I'm not idle; I don't know if it missed any notifications.  Tried toggling nsIIOService.offline; had no effect that I could see.
*** Original post on bio 1210 at 2012-06-18 18:20:05 UTC ***

I've seen this before (more often recently, it seems). For me I'm always stuck in idle, not just unavailable.
*** Original post on bio 1210 by Myk Melez [:myk] <myk AT mozilla.org> at 2012-06-18 19:29:34 UTC ***

I experienced this problem this morning, restarted to work around it, and just experienced it again.  The only recent errors in the error console are the following three that appeared about the time I lost my network connection for a moment:

Timestamp: 2012-06-18 11:34:22 
Error: Handshake failed  (-5961)

Source File: http://hg.instantbird.org/instantbird/raw-file/1bdcd936b1c1/purple/libpurple/ssl-nss.c
Line: 342
Source Code:
nss: ssl_nss_handshake_cb

Timestamp: 2012-06-18 11:34:22 
Error: unable to connect to FLAP server of type 0x0018

Source File: http://hg.instantbird.org/instantbird/raw-file/1bdcd936b1c1/purple/libpurple/protocols/oscar/oscar.c
Line: 303
Source Code:
oscar: connection_common_error_cb

Timestamp: 2012-06-18 11:34:56 
Error: Received unexpected ERROR response:
Closing Link: myk[mozilla.vlan426.asr1.sfo1.gblx.net] (Ping timeout)
Source File: resource:///modules/ircBase.jsm
Line: 182
Source Code:
irc
Whiteboard: [1.2-blocking][regression]
*** Original post on bio 1210 at 2012-06-19 23:10:50 UTC ***

I think the initial "sometimes stuck" bug was https://bugzilla.mozilla.org/show_bug.cgi?id=720493 that was fixed with a large rewrite of parts of the idle service.
The "always stuck" more recent issue seems to be: https://bugzilla.mozilla.org/show_bug.cgi?id=744527 Once idle, the previous patch was polling for un-idleness only after 5000s instead of 5000ms (= 5s).

I've pushed the fix for https://bugzilla.mozilla.org/show_bug.cgi?id=744527 as https://hg.instantbird.org/instantbird/rev/8aaee35cfaf7 so idleness should work in the next nightly :).
Assignee: nobody → florian
Status: NEW → RESOLVED
Closed: 11 years ago
OS: Windows 7 → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → 1.2
*** Original post on bio 1210 at 2012-06-20 20:16:19 UTC ***

Both Myk and me could reproduce this today with an up to date nightly, reopening :(.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
*** Original post on bio 1210 at 2012-08-02 18:11:37 UTC ***

I fixed this for Mozilla 17 in https://bugzilla.mozilla.org/show_bug.cgi?id=779843 and added the patch to our patch set: https://hg.instantbird.org/instantbird/rev/1566264293c7
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
*** Original post on bio 1210 at 2012-08-02 18:13:38 UTC ***

Resolving this as fixed. We'll need to remove the patch when updating to Mozilla 17 (at least).
You need to log in before you can comment on or make changes to this bug.