Closed
Bug 1284570
Opened 9 years ago
Closed 9 years ago
Android APZ fling can end up with a NaN velocity
Categories
(Firefox for Android Graveyard :: Toolbar, defect, P1)
Tracking
(firefox48 unaffected, firefox49 fixed, firefox50 fixed)
RESOLVED
FIXED
Firefox 50
Tracking | Status | |
---|---|---|
firefox48 | --- | unaffected |
firefox49 | --- | fixed |
firefox50 | --- | fixed |
People
(Reporter: kats, Assigned: rbarker)
References
Details
Attachments
(2 files)
4.02 KB,
text/plain
|
Details | |
1.27 KB,
patch
|
snorp
:
review+
ritu
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
In bug 1279299 a user reported some checkerboarding badness. While investigating we got a lot that indicated NaNs were being produced in the code and probably screwing things up badly. I'm attaching a relevant snippet of the log, where the first nan value shows up. It shows up in the x-component of the APZC's velocity, right after a fling animation starts.
Based on code inspection, I suspect what's happening is that the android code at [1] sets mSplineDuration to 0, and since the x-velocity is 0 to start off, the code at [2] leaves it at 0. Then on the update at [3] it divides by that 0 and produces a NaN. That's consistent with the log, where the fling's initial x component is 0.
[1] http://searchfox.org/mozilla-central/rev/a7c8e9f3cc323fd707659175a46826ad12899cd1/mobile/android/base/java/org/mozilla/gecko/gfx/StackScroller.java#492
[2] http://searchfox.org/mozilla-central/rev/a7c8e9f3cc323fd707659175a46826ad12899cd1/mobile/android/base/java/org/mozilla/gecko/gfx/StackScroller.java#504
[3] http://searchfox.org/mozilla-central/rev/a7c8e9f3cc323fd707659175a46826ad12899cd1/mobile/android/base/java/org/mozilla/gecko/gfx/StackScroller.java#659
Reporter | ||
Updated•9 years ago
|
Priority: -- → P1
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8768190 -
Flags: review?(snorp)
Comment on attachment 8768190 [details] [diff] [review]
0001-Bug-1284570-Android-APZ-fling-can-end-up-with-a-NaN-velocity-r-snorp-16070514-c2bf60e.patch
Review of attachment 8768190 [details] [diff] [review]:
-----------------------------------------------------------------
Maybe try to get this upstream too?
Attachment #8768190 -
Flags: review?(snorp) → review+
Pushed by rbarker@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/25979328f745
Android APZ fling can end up with a NaN velocity r=snorp
Comment 5•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
Reporter | ||
Comment 6•9 years ago
|
||
Marking 49 as unaffected because bug 1280666 isn't on that branch. If we uplift that then this should get uplifted as well.
status-firefox49:
--- → unaffected
Reporter | ||
Comment 7•9 years ago
|
||
Bug 1280666 was approved for 49, so we will need to uplift this as well. Randall, can you request uplift?
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8768190 [details] [diff] [review]
0001-Bug-1284570-Android-APZ-fling-can-end-up-with-a-NaN-velocity-r-snorp-16070514-c2bf60e.patch
Approval Request Comment
[Feature/regressing bug #]: NaNs are generated by fling animation causing checker boarding. This is a regression caused by Bug 1280666 which was just uplifted.
[User impact if declined]: APZ will checkerboard more often and screen sometimes goes blank.
[Describe test coverage new/current, TreeHerder]: mostly manual.
[Risks and why]: Minimal. Uplifting Bug 1280666 was the bigger risk, this fixes an issue with that patch.
[String/UUID change made/needed]: none.
Flags: needinfo?(rbarker)
Attachment #8768190 -
Flags: approval-mozilla-aurora?
Comment on attachment 8768190 [details] [diff] [review]
0001-Bug-1284570-Android-APZ-fling-can-end-up-with-a-NaN-velocity-r-snorp-16070514-c2bf60e.patch
Patch has been in Nightly50 for almost a month, seems small in size, it's still start of the Beta cycle, taking it. Beta49+
Attachment #8768190 -
Flags: approval-mozilla-aurora? → approval-mozilla-beta+
Comment 10•9 years ago
|
||
bugherder uplift |
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•