Closed Bug 758096 Opened 9 years ago Closed 9 years ago

###!!! ASSERTION: SwitchSensor not thread-safe

Categories

(Core :: DOM: Device Interfaces, defect)

x86
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: gwagner, Assigned: cyu)

Details

Attachments

(1 file, 1 obsolete file)

Gecko compiled in debug mode during startup on device:

I/Gecko   ( 2204): ###!!! ASSERTION: SwitchSensor not thread-safe: '_mOwningThread.GetThread() == PR_GetCurrentThread()', file /Volumes/mac/moz/b2ggecko/hal/gonk/GonkSensor.cpp, line 204
This is not really that bad as it looks. The use of NS_INLINE_DECL_REFCOUNTING() macro asserts it's in the same thread as when the object is created when refcounting. For objects to be passed as to another thread for execution using NS_NewRunnableMethod() this assertion will be triggered, though there actually is no underlying threading problems.
Deprecate previous version, which Eclipse filled in wrong user.
Assignee: nobody → cyu
Attachment #626736 - Attachment is obsolete: true
Attachment #626736 - Flags: review?(mwu)
Attachment #626741 - Flags: review?(mwu)
Attachment #626741 - Flags: review?(mwu) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/3697e932626d
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.