Closed
Bug 762128
Opened 13 years ago
Closed 13 years ago
JavaScript Error: "cpmm is null" {file: "file:///Volumes/mac/code/2/build/dist/B2GDebug.app/Contents/MacOS/components/SettingsManager.js" line: 277
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: gwagner, Assigned: ckerschb)
References
Details
Attachments
(1 file)
|
852 bytes,
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
In a debug b2g desktop build during startup I see
************************************************************
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "'[JavaScript Error: "cpmm is null" {file: "file:///Volumes/mac/code/2/build/dist/B2GDebug.app/Contents/MacOS/components/SettingsManager.js" line: 277}]' when calling method: [nsIObserver::observe]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0" data: yes]
************************************************************
************************************************************
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "'[JavaScript Error: "cpmm is null" {file: "file:///Volumes/mac/code/2/build/dist/B2GDebug.app/Contents/MacOS/components/SettingsManager.js" line: 277}]' when calling method: [nsIObserver::observe]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0" data: yes]
************************************************************
************************************************************
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "'[JavaScript Error: "cpmm is null" {file: "file:///Volumes/mac/code/2/build/dist/B2GDebug.app/Contents/MacOS/components/SettingsManager.js" line: 277}]' when calling method: [nsIObserver::observe]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0" data: yes]
************************************************************
************************************************************
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "'[JavaScript Error: "cpmm is null" {file: "file:///Volumes/mac/code/2/build/dist/B2GDebug.app/Contents/MacOS/components/SettingsManager.js" line: 277}]' when calling method: [nsIObserver::observe]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0" data: yes]
************************************************************
| Reporter | ||
Comment 1•13 years ago
|
||
So one solution is to remove the line https://mxr.mozilla.org/mozilla-central/source/dom/settings/SettingsManager.js#283
cpmm is shared here. We also don't set cpmm to null in the DOMRequestHelper.
The only quesiton is if this would cause a leak.
| Reporter | ||
Comment 2•13 years ago
|
||
After a discussion with mrbkap we decided that it's best to just remove the cpmm = null. It shouldn't leak.
| Reporter | ||
Updated•13 years ago
|
Assignee: nobody → mozilla
| Assignee | ||
Comment 3•13 years ago
|
||
| Assignee | ||
Updated•13 years ago
|
Attachment #630749 -
Flags: review?(fabrice)
Updated•13 years ago
|
Attachment #630749 -
Flags: review?(fabrice) → review+
| Reporter | ||
Comment 4•13 years ago
|
||
Comment 5•13 years ago
|
||
(In reply to Gregor Wagner [:gwagner] from comment #2)
> After a discussion with mrbkap we decided that it's best to just remove the
> cpmm = null. It shouldn't leak.
I have evidence that suggests (not proves) otherwise: https://bugzilla.mozilla.org/show_bug.cgi?id=734018#c7
| Reporter | ||
Comment 6•13 years ago
|
||
(In reply to Philipp von Weitershausen [:philikon] from comment #5)
> (In reply to Gregor Wagner [:gwagner] from comment #2)
> > After a discussion with mrbkap we decided that it's best to just remove the
> > cpmm = null. It shouldn't leak.
>
> I have evidence that suggests (not proves) otherwise:
> https://bugzilla.mozilla.org/show_bug.cgi?id=734018#c7
mrbkap mentioned that we include many services like that and they don't leak.
Comment 7•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8d2d761e98cc
(Merged by Ed Morley)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in
before you can comment on or make changes to this bug.
Description
•