Closed Bug 360167 Opened 18 years ago Closed 18 years ago

Launching Chatzilla locks up FireFox

Categories

(Other Applications :: ChatZilla, defect, P1)

1.8 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 353962

People

(Reporter: travis, Assigned: bugzilla-mozilla-20000923)

Details

(Keywords: hang, regression)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

About %50 of the time when I click Tools>Chatzilla the whole Firefox browser locks up. Sometimes the initial Chatzilla screen will appear, but it's always on initial launch. It usually requires killing Firefox from the command line or Force Quit option in OSX. If it successfully launches, I have no other difficulties. 
Running OSX 10.4.6 Firefox 2.0 connecting to an IRC server on the local network. Top command (immediately after crash) shows Firefox using 0% cpu

Reproducible: Sometimes

Steps to Reproduce:
1. Launch Firefox
2. Click tools, then click Chatzilla
3.

Actual Results:  
Locked Firefox, requiring a kill from command line


Expected Results:  
Chattzilla to launch

Please feel free to contact me if further info needed.
Well, technically it can't be a bug in ChatZilla (we only have JS code, and if that 'hangs' you get the Slow Script Dialog), so you'll need to get the stacks from a debug Firefox's threads when it is hung and find out what's going on and what is actually hung, I expect. (It sounds like a race condition, from the only-happens-sometimes part.)
I'm confirming this as I can reproduce this too, at times - it seems to happen regularly if I try to use it right after I updated from an xpi I built myself, and Firefox restored the session upon restart after using the 'Restart Firefox' button in the Extension manager.

James, you're right that it's not our fault, but I'd like to have it filed at the very least. My debug builds are fscked at the moment, I'll try to get them going again, sometime, uh, next week I guess :\ (busy all weekend).
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Mac OS X 10.4 → All
Hardware: Macintosh → All
Version: unspecified → 1.8 Branch
radar++
Keywords: hang, regression
(In reply to comment #2)
> James, you're right that it's not our fault, but I'd like to have it filed at
> the very least.

I didn't say or mean that it shouldn't be filed, only that the ultimate bug is most likely well outside of ChatZilla's code, and will take global-level debugging to find.
<timeless>	thread 13 looks relevant
	<timeless>	iirc it's fixed on trunk
	<timeless>	basically PEOs don't work properly before trunk
	<mrbkap>	timeless: "proxy event objects"?
	<timeless>	yes
	<timeless>	it requires the event queue service rewrite
	which is an api break
	it can't be done

He also suggests mrbkap or crowder look into this.
Flags: blocking1.8.1.1?
Can't realistically block 1.8.1.1 for this, especially if it's going to require the timer rewrite, but do want a fix if we can come up with something in a later release.
Assignee: rginda → silver
Flags: wanted1.8.1.x?
Flags: blocking1.8.1.1?
Flags: blocking1.8.1.1-
What threading changed between 1.8.0 and 1.8? This didn't happen in FF1.5
Has someone tested the current ChatZilla on FF 1.5?

The most likely code for triggering this has changed since the version around when FF 1.5 was released (although the CZ release it was changed in was released only ~1 month after FF 1.5).

http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/extensions/irc/js/lib/dcc.js&rev=1.18&mark=141#117

The code in 0.9.68.5 (latest release at FF 1.5 time) let the DNS service pick the callback thread, and so likely wont have involved PEOs like 0.9.69+.
Priority: -- → P1
I just made a quick plugin to disable the call chatzilla is making to the async DNS code.  It seems to make things a little better, but I still sometimes hang on startup :(

The plugin is here: http://www.hacksrus.com/~ginda/chatzilla/scripts/fuck-dcc/init.js
Flags: wanted1.8.1.x?
My plugin hasn't actually helped at all :(  Also, it seems that if I manage to get chatzilla up and running, and I put the laptop to sleep, then the os shuts down abnormally instead.  I'm not sure if it shuts down while going to sleep, or while waking up, but I have to power on the laptop the next time I use it.  Nothing of interest in the console or panic logs.

Someone just popped into #chatzilla and suggested that it was a core duo problem.    He's using XP Home Edition on a core duo, and says, "it never happens to my single core."
Try 2.0.0.1, or test with latest trunk that includes patch for bug 353962 (rev 3.32 of jslock.h) -- stacks from "multiple threads stack trace" say this is a dup of bug 353962.

/be
Cool, 2.0.0.1 seems to fix the hang.  It's got way too many other regressions to be a daily browser, but at least we know what the problem is.

*** This bug has been marked as a duplicate of 353962 ***
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: