Closed Bug 132331 Opened 23 years ago Closed 21 years ago

Exception... "Component returned failure code:" because we stat files *way* too often

Categories

(SeaMonkey :: Download & File Handling, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: aha, Assigned: iannbugzilla)

References

Details

Attachments

(1 file)

I downloaded some build and hit cancel. In JS Console apear error after every click on line with canceled download: Error: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsILocalFile.isExecutable]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: chrome://communicator/content/downloadmanager/downloadmanager.js :: dVC_isCommandEnabled :: line 142" data: no] Source File: chrome://communicator/content/downloadmanager/downloadmanager.js Line: 142 2002032003/Win2K
I tried with build 2002032803 on Windows XP and don't see this bug happen so WFM. Reporter, could you try with newest Mozilla build?
Still similar with 2002040314/Win2K: Error: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsILocalFile.isExecutable]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: chrome://communicator/content/downloadmanager/downloadmanager.js :: dVC_isCommandEnabled :: line 138" data: no] Source File: chrome://communicator/content/downloadmanager/downloadmanager.js Line: 138 Repro: 1. enable download manager 2. select any bigger file to download and start downloading 3. select line with file in download progress 4. hit cancel Actual: In JS console appears error.
Confirming by duplicate bug 136890. Reporter of that bug (smaug@jippii.fi) has also noted: The fix is trivial: Change the downloadmanager.js line 137 to case "cmd_openfile": try{ if (!isDownloading && getFileForItem(selectedItem).isExecutable()) return false; }catch(ex) {return false;}
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
*** Bug 136890 has been marked as a duplicate of this bug. ***
Build 2002041206 W2K SP2 I got a bunch of similar errors after selecting multiple times and then deleting 3 finished downloads in DM: Error: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsITreeContentView.getItemAtIndex]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: chrome://communicator/content/downloadmanager/downloadmanager.js :: getSelectedItem :: line 237" data: no] Source File: chrome://communicator/content/downloadmanager/downloadmanager.js Line: 237
*** Bug 142316 has been marked as a duplicate of this bug. ***
*** Bug 135691 has been marked as a duplicate of this bug. ***
As bug 135691 points out, the real fix is to not keep running stat() on the file....
Summary: Exception... "Component returned failure code:" → Exception... "Component returned failure code:" because we stat files *way* too often
*** Bug 144779 has been marked as a duplicate of this bug. ***
*** Bug 145271 has been marked as a duplicate of this bug. ***
*** Bug 145490 has been marked as a duplicate of this bug. ***
*** Bug 156957 has been marked as a duplicate of this bug. ***
I get this error often when deleting or sending messages in the mail window: Error: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIRDFService.GetResource]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: chrome://messenger/content/msgMail3PaneWindow.js :: SelectFolder :: line 1192" data: no] Source File: chrome://messenger/content/msgMail3PaneWindow.js Line: 1192
I was trying to download the nightly build and the download manager wouldn't show up, even if i go to Tools -> Download Manager. I opened the javascript console and saw this error: Error: uncaught exception: [Exception... "Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]" nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)" location: "JS frame :: chrome://communicator/content/tasksOverlay.js :: toDownloadManager :: line 51" data: no]
QA Contact: sairuh → petersen
*** Bug 193807 has been marked as a duplicate of this bug. ***
*** Bug 194001 has been marked as a duplicate of this bug. ***
Fix in patch to bug 132019 -> Taking
Assignee: blaker → ian
Depends on: 132019
Accepting
Status: NEW → ASSIGNED
*** Bug 206515 has been marked as a duplicate of this bug. ***
Splitting bug fixes from enhancements, upcoming patch will also fix problem described in bug 167528
Blocks: 167528
No longer depends on: 132019
This patch just does the bug fixes for this bug and bug 167528 and will leave the enhancements to bug 132019
Comment on attachment 123969 [details] [diff] [review] Patch v1.0 split off from patch to bug 132019 Requesting driver approval as hopefully r=/sr= can be carried across from bug 132019
Attachment #123969 - Flags: superreview?(jaggernaut)
Attachment #123969 - Flags: review?(neil.parkwaycc.co.uk)
Attachment #123969 - Flags: approval1.4?
Attachment #123969 - Flags: review?(neil.parkwaycc.co.uk) → review+
Comment on attachment 123969 [details] [diff] [review] Patch v1.0 split off from patch to bug 132019 sr=jag
Attachment #123969 - Flags: superreview?(jaggernaut) → superreview+
Comment on attachment 123969 [details] [diff] [review] Patch v1.0 split off from patch to bug 132019 a=sspitzer thanks to ian/neil/jag for spinning this off.
Attachment #123969 - Flags: approval1.4? → approval1.4+
Fix checked in by timeless
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Verified in the 2003-06-09-08 win32 trunk.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: