Closed
Bug 804328
Opened 13 years ago
Closed 13 years ago
Fix setScreenBrightness assertion failure because ScreenManager._savedBrightness is undefined
Categories
(Firefox OS Graveyard :: Gaia, defect)
Firefox OS Graveyard
Gaia
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: cpeterson, Assigned: cpeterson)
References
Details
(Keywords: regression)
Attachments
(1 file)
653 bytes,
patch
|
vingtetun
:
review+
vingtetun
:
approval-gaia-v1+
|
Details | Diff | Splinter Review |
STR:
1. Launch B2GDebug.app build
2. On lock screen, press HOME key
RESULT:
PowerManager.cpp asserts because ScreenManager._savedBrightness is undefined:
SetScreenBrightness(nan)
[Parent 7718] WARNING: NS_ENSURE_TRUE(0 <= aBrightness && aBrightness <= 1) failed: file /Users/cpeterson/Code/mozilla/b2g/central/dom/power/PowerManager.cpp, line 157
This is a recent regression from bug 803951.
Assignee | ||
Comment 1•13 years ago
|
||
This PowerManager.cpp assertion failure is a regression from bug 803951. ScreenManager._savedBrightness is read before it is defined.
NOTE: If blocking-basecamp+ is set, just land it for now.
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
User impact if declined:
Testing completed:
Risk to taking this patch (and alternatives if risky):
Attachment #673997 -
Flags: review?(21)
Attachment #673997 -
Flags: approval-gaia-master?(21)
Comment 2•13 years ago
|
||
Comment on attachment 673997 [details] [diff] [review]
fix-setScreenBrightness-assertion.patch
Review of attachment 673997 [details] [diff] [review]:
-----------------------------------------------------------------
I believe this is a kind of followup of Andreas patch.
One liner. a=me.
Attachment #673997 -
Flags: review?(21)
Attachment #673997 -
Flags: review+
Attachment #673997 -
Flags: approval-gaia-master?(21)
Attachment #673997 -
Flags: approval-gaia-master+
Assignee | ||
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
https://github.com/mozilla-b2g/gaia/pull/5958
merged, what are you waiting for?! :)
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•13 years ago
|
||
Device: Unagi
Build: 20130102070202
Does not reproduce on this device and build. Saved brightness is defined
You need to log in
before you can comment on or make changes to this bug.
Description
•