The default bug view has changed. See this FAQ.

WARNING: NS_ENSURE_TRUE(rv) failed: file /Volumes/mac/moz/b2ggecko/hal/gonk/GonkSwitch.cpp, line 131

RESOLVED FIXED in mozilla15

Status

()

Core
DOM: Device Interfaces
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: gwagner, Assigned: cyu)

Tracking

unspecified
mozilla15
x86
Gonk (Firefox OS)
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
Gecko in debug build on device during startup.
Multiple instances of:
WARNING: NS_ENSURE_TRUE(rv) failed: file /Volumes/mac/moz/b2ggecko/hal/gonk/GonkSwitch.cpp, line 131
(Assignee)

Comment 1

5 years ago
Created attachment 626758 [details] [diff] [review]
Don't use NS_ENSURE_TRUE() for return value that will be false

SwitchEventObserver::GetEventInfo() could receive events that are not of interest and return false. Fix the warning in debug build by not using NS_ENSURE_TRUE() but instead checking it directly.
Assignee: nobody → cyu
Attachment #626758 - Flags: review?(mwu)

Updated

5 years ago
Attachment #626758 - Flags: review?(mwu) → review+
(Assignee)

Updated

5 years ago
Keywords: checkin-needed
https://hg.mozilla.org/integration/mozilla-inbound/rev/13236f855e37
Target Milestone: --- → mozilla15
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/13236f855e37
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
(Reporter)

Updated

5 years ago
Duplicate of this bug: 759385
You need to log in before you can comment on or make changes to this bug.