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)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: gwagner, Assigned: ckerschb)

References

Details

Attachments

(1 file)

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] ************************************************************
Blocks: 753862
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.
After a discussion with mrbkap we decided that it's best to just remove the cpmm = null. It shouldn't leak.
Assignee: nobody → mozilla
Attachment #630749 - Flags: review?(fabrice)
Attachment #630749 - Flags: review?(fabrice) → review+
(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
(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.
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.

Attachment

General

Created:
Updated:
Size: