Closed Bug 885615 Opened 12 years ago Closed 12 years ago

JavaScript Warning: "reference to undefined property exn.stack" {file: "resource://gre/modules/osfile/osfile_async_worker.js" line: 55

Categories

(Toolkit Graveyard :: OS.File, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla27

People

(Reporter: cpeterson, Assigned: billm)

References

Details

(Whiteboard: [mentor=Yoric][lang=js])

Attachments

(2 files)

I see the following JS warning logged almost every time I open the about:config page in Firefox for Android: E/GeckoConsole(14503): [JavaScript Warning: "reference to undefined property exn.stack" {file: "resource://gre/modules/osfile/osfile_async_worker.js" line: 55}] `exn` does not have a `stack` property because it is the string "Unix error 2 during operation open (No such file or directory)", not an `Error` object.
Attached patch Patch v1Splinter Review
I'm seeing a similar issue on Windows. Every time I start Firefox I get this in my console: reference to undefined property exn.stack The attached patch seemed to fix the issue. Another approach might be to find out where we're throwing the exception that lacks a 'stack' property.
Assignee: nobody → tabraldes
Status: NEW → ASSIGNED
Attachment #793145 - Flags: review?(dtownsend+bugmail)
Attachment #793145 - Flags: review?(dtownsend+bugmail) → review+
Whiteboard: [mentor=Yoric][lang=js]
Comment on attachment 793145 [details] [diff] [review] Patch v1 This patch caused mochitest-other orange and was backed out in changeset e453f69bc437 This is probably better as a mentored bug anyway, so I'll unassign myself
Attachment #793145 - Flags: review+
Assignee: tabraldes → nobody
Status: ASSIGNED → NEW
I think we need to prioritize this; this has the capability to mess up test logs. I just had a (local) reftest log rejected by reftest-analyzer, because this bug's message was printed in the middle of my test output. In particular, the relevant log line started like so: > reference to undefined property options.bytesREFTEST TEST-UNEXPECTED-FAIL | file:///[...]
Well, the line you mention is fixed by bug 910300.
oops. wrong bug, sorry! :)
Attached patch fix-osfile-errorSplinter Review
This was bugging me today. This patch passes the test that the other patch didn't pass.
Assignee: nobody → wmccloskey
Status: NEW → ASSIGNED
Attachment #811447 - Flags: review?(dteller)
Comment on attachment 811447 [details] [diff] [review] fix-osfile-error Review of attachment 811447 [details] [diff] [review]: ----------------------------------------------------------------- Looks good.
Attachment #811447 - Flags: review?(dteller) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: