Closed Bug 303069 Opened 19 years ago Closed 19 years ago

Firefox hangs on download

Categories

(Toolkit :: Downloads API, defect)

1.7 Branch
x86
FreeBSD
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: eirikf, Unassigned)

References

()

Details

(Keywords: hang)

User-Agent:       Mozilla/5.0 (X11; Linux i686; U; en) Opera 8.02
Build Identifier: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.10) Gecko/20050802 Firefox/1.0.6

Rightclicking links using "save as" makes Firefox freeze completely.
Firefox is compiled with debug information. Here's output from 
running "firefox -debug" and provoking the freeze.

---------------------------------------------------------------
---------------------------------------------------------------
!!!!! XPConnect wrapper thread use error...
  XPConnect WrappedNative is being accessed on multiple threads but the 
underlying native xpcom object does not have a nsIClassInfo with the 
'THREADSAFE' flag set
  wrapper: [xpconnect wrapped (nsISupports, nsIPrefBranch, 
nsIPrefBranchInternal) @ 0x813fdc0]
  JS call stack...
0 [native frame]
1 anonymous(name = "detect.cache", value = "cURL") ["file:///home/eirikf/.
mozilla/firefox/upn14k2w.default/extensions/      B19503e42-ca3c-4c27-b1e2-
9cdb2170ee34-1079270284/components/flashgotService.js":1571]
    prefs = [xpconnect wrapped (nsISupports, nsIPrefBranch, 
nsIPrefBranchInternal) @ 0x813fdc0]
    this = [object Object]
    this.logStream = [xpconnect wrapped nsIFileOutputStream @ 0x889eec0]
    this._logFile = [xpconnect wrapped nsIFile @ 0x88b46c0]
    this.logEnabled = true
    this._globals = [object Object]
    this._initThread = [xpconnect wrapped nsIThread @ 0x86294c0]
    this.uiThread = [xpconnect wrapped nsIThread @ 0x8629540]
    this._initializing = true
    this._prefs = [xpconnect wrapped (nsISupports, nsIPrefBranch, 
nsIPrefBranchInternal) @ 0x813fdc0]
2 anonymous(init = true, detect = true) ["file:///home/eirikf/.mozilla/firefox/
upn14k2w.default/extensions/      B19503e42-ca3c-4c27-b1e2-9cdb2170ee34      6/
components/flashgotService.js":1892]
    dms = [object Object],[object Object],[object Object],[object Object],
[object Object],[object Object],[object Object],[object Object],[object Object],
[object Object],[object Object],[object Object],[object Object],[object Object],
[object Object],[object Object],[object Object],[object Object],[object Object],
[object Object],[object Object],[object Object],[object Object],[object Object],
[object Object],[object Object]
    j = -1
    dm = [object Object]
    cache = cURL
    name = undefined
    defaultDM = "cURL"
    firstSupported = "cURL"
    this = [object Object]
    this.logStream = [xpconnect wrapped nsIFileOutputStream @ 0x889eec0]
    this._logFile = [xpconnect wrapped nsIFile @ 0x88b46c0]
    this.logEnabled = true
    this._globals = [object Object]
    this._initThread = [xpconnect wrapped nsIThread @ 0x86294c0]
    this.uiThread = [xpconnect wrapped nsIThread @ 0x8629540]
    this._initializing = true
    this._prefs = [xpconnect wrapped (nsISupports, nsIPrefBranch, 
nsIPrefBranchInternal) @ 0x813fdc0]
3 anonymous() ["file:///home/eirikf/.mozilla/firefox/upn14k2w.default/
extensions/      B19503e42-ca3c-4c27-b1e2-9cdb2170ee34684723357/components/
flashgotService.js":1799]
    prepareTmp = [function]
    startTime = 1122974124043
    prefs = [xpconnect wrapped (nsISupports, nsIPrefBranch, 
nsIPrefBranchInternal) @ 0x813fdc0]
    cc = [object nsXPCComponents_Classes]
    ci = [object nsXPCComponents_Interfaces]
    fileLocator = [xpconnect wrapped nsIProperties @ 0x86f0500]
    profDir = [xpconnect wrapped nsIFile @ 0x86d75c0]
    tmpDir = [xpconnect wrapped nsIFile @ 0x82361c0]
    this = [object Object]
    this.logStream = [xpconnect wrapped nsIFileOutputStream @ 0x889eec0]
    this._logFile = [xpconnect wrapped nsIFile @ 0x88b46c0]
    this.logEnabled = true
    this._globals = [object Object]
    this._initThread = [xpconnect wrapped nsIThread @ 0x86294c0]
    this.uiThread = [xpconnect wrapped nsIThread @ 0x8629540]
    this._initializing = true
    this._prefs = [xpconnect wrapped (nsISupports, nsIPrefBranch, 
nsIPrefBranchInternal) @ 0x813fdc0]
4 anonymous() ["file:///home/eirikf/.mozilla/firefox/upn14k2w.default/
extensions/      B19503e42-ca3c-4c27-b1e2-9cdb2170ee34684723250/components/
flashgotService.js":1758]
    this = [object BackstagePass]
    this.IA_LocaleChecker = [function]
    this.FlashGotHttpServer = [function]
    this.NSGetModule = [function]
    this.Module = [object Object]
    this.xpcom_checkInterfaces = [function]
    this.SERVICE_FACTORY = [object Object]
    this.SERVICE_IIDS = nsIObserver,nsISupports,nsISupportsWeakReference,
nsIURIContentListener
    this.SERVICE_CONSTRUCTOR = [function]
    this.SERVICE_CTRID = "@maone.net/flashgot-service;1"
    this.SERVICE_CID = {2a55fc5c-7b31-4ee1-ab15-5ee2eb428cbe}
    this.SERVICE_NAME = "FlashGot Service"
    this.FlashGotHttpHandler = [function]
    this.FlashGotService = [function]
    this.STARTUP = "profile-after-change"
    this.SHUTDOWN = "profile-before-change"
    this.FlashGotDMCust = [function]
    this.FlashGotDMMac = [function]
    this.FlashGotDMX = [function]
    this.FlashGotDM = [function]
5 anonymous() ["file:///home/eirikf/.mozilla/firefox/upn14k2w.default/
extensions/      B19503e42-ca3c-4c27-b1e2-9cdb2170ee34684723357/components/
flashgotService.js":1529]
    this = [object Object]
    this.run = [function]
6 [native frame]
---------------------------------------------------------------
An error occurred executing the cmd_selectNone command
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) 
[nsIController.doCommand]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: 
"JS frame :: chrome://global/content/globalOverlay.js :: goDoCommand :: line 96" 
 data: no]
An error occurred executing the cmd_selectNone command
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) 
[nsIController.doCommand]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: 
"JS frame :: chrome://global/content/globalOverlay.js :: goDoCommand :: line 96" 
 data: no]


Reproducible: Always

Steps to Reproduce:
1. Go to: http://www.mpfr.org/mpfr-current/
2. Click on one of the download links.
3. Watch Firefox freeze

Actual Results:  
Complete freeze

Expected Results:  
Asked me where I want to save the file.

Operating system: FreeBSD 5.4-release.
Keywords: hang
OS: other → FreeBSD
Version: unspecified → 1.0 Branch
(In reply to comment #0)

My situation is Solaris x86 Sun Studio 10 compiled Firefox with
all non-customization patches applied from FC4 SRPM.

I don't get a freeze, but I do get an exception:

*** exception in validateLeafName: [Exception... "Component returned failure
code: 0x80004005 (NS_ERROR_FAILURE) [nsILocalFile.create]"  nsresult:
"0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame ::
file:///users/local/lib/firefox-1.0.6/components/nsHelperAppDlg.js :: anonymous
:: line 247"  data: no]
*** exception in validateLeafName: [Exception... "Component returned failure
code: 0x80004005 (NS_ERROR_FAILURE) [nsILocalFile.create]"  nsresult:
"0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame ::
file:///users/local/lib/firefox-1.0.6/components/nsHelperAppDlg.js :: anonymous
:: line 247"  data: no]
I take it back... I had an incorrect path set.  It works when the
download path is correct.

However, I would rather have it do something better than this.

I resolved it by setting `lo` up
> ifconfig lo up

I am not sure if it's fully related only to Gentoo Linux and/or it's partialy
problem of Mozilla* (Mozilla Thunderbird did the same thing and Evolution was
reported too).

I've got hangs on my computer after clicking on "save as",too.

(In reply to comment #4)
> I've got hangs on my computer after clicking on "save as",too.
>
I had the same problem on FreeBSD: It turned out to be related to some stuff in /etc/sysctl.conf, I changed the lines:

net.inet.tcp.blackhole=1
net.inet.udp.blackhole=1

to:

net.inet.tcp.blackhole=0
net.inet.udp.blackhole=0

and rightclicking "save as" in firefox works, no hangs!
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
(In reply to comment #4)
> I've got hangs on my computer after clicking on "save as",too.
>
I had the same problem on FreeBSD: It turned out to be related to some stuff in /etc/sysctl.conf, I changed the lines:

net.inet.tcp.blackhole=1
net.inet.udp.blackhole=1

to:

net.inet.tcp.blackhole=0
net.inet.udp.blackhole=0

and rightclicking "save as" in firefox works, no hangs!
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
FIXED is reserved for changes to Mozilla code.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → WORKSFORME
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.