Closed
Bug 1216349
Opened 9 years ago
Closed 9 years ago
Black boxes since 2014-04-11 with e10s off and D3D9 OMTC HWA
Categories
(Core :: Graphics, defect)
Tracking
()
VERIFIED
FIXED
mozilla44
People
(Reporter: Oriol, Assigned: bas.schouten)
References
Details
(Keywords: regression)
Attachments
(5 files)
1.06 KB,
text/html
|
Details | |
33.76 KB,
image/png
|
Details | |
40.45 KB,
image/png
|
Details | |
36.80 KB,
image/png
|
Details | |
3.08 KB,
patch
|
nical
:
review+
lizzard
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:44.0) Gecko/20100101 Firefox/44.0
Build ID: 20151019030227
Steps to reproduce:
I occasionally see black boxes, specially when scrolling.
Finally I have been able to create a reproducible testcase.
Just make sure multi-process is disabled and OMTC hardware acceleration is enabled. I can reproduce with both D3D9 and D3D11. Then open the testcase.
Actual results:
JS will scroll automatically, and some black boxes will appear.
Expected results:
There should be no black boxes.
Last good nightly: 2014-05-20 cb9f34f73ebe
First bad nightly: 2014-05-21 9d8d16695f6a
Pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromcange=cb9f34f73ebe&tochange=9d8d16695f6a
Sadly it seems it's too late and the inbound builds have been removed.
Reporter | ||
Updated•9 years ago
|
Component: Untriaged → Graphics
OS: Unspecified → Windows
Product: Firefox → Core
Version: 44 Branch → 32 Branch
Comment 2•9 years ago
|
||
OMTC being enabled on Windows is in that range. Conveniently, I filed bug 1019909 around that time as well, but it fizzled out due to difficulties reproducing and eventually the move to Treeherder.
https://hg.mozilla.org/mozilla-central/rev/718a9852b60d
Reporter | ||
Comment 3•9 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #2)
> OMTC being enabled on Windows is in that range.
True, enabling layers.offmainthreadcomposition.enabled manually produced this range for D3D9:
Last good nightly: 2014-04-10 690c810c8e3e
First bad nightly: 2014-04-11 d8c1b10c3a3d
Pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=690c810c8e3e&tochange=d8c1b10c3a3d
Since D3D11 has another range, I have filed bug 1217215.
Reporter | ||
Updated•9 years ago
|
Summary: Black boxes since 2014-05-21 with e10s off, HWA on, OMTC on → Black boxes since 2014-04-11 with e10s off and D3D9 OMTC HWA
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → bas
Status: NEW → ASSIGNED
Flags: needinfo?(bas)
Updated•9 years ago
|
tracking-e10s:
--- → -
Assignee | ||
Comment 4•9 years ago
|
||
Here's a couple of interesting observations:
1. Scroll the test case down to below the vertical line's start, and scroll back up, the black areas are now permanently gone.
2. Wait for the layers to become inactive, the black areas are now permanently gone.
3. Switch tabs away and back, black areas are now permanently gone.
Assignee | ||
Comment 5•9 years ago
|
||
Assignee | ||
Comment 6•9 years ago
|
||
Assignee | ||
Comment 7•9 years ago
|
||
Assignee | ||
Comment 8•9 years ago
|
||
The transition from the second to the third frame here is interesting. Notice some odd stuff going on in the state in the second frame. Note they share the same 375x615 TextureHost. In the second frame almost the entire TextureHost is considered Valid, even though that area isn't in the visible region at all. In the subsequent third frame we see that that area considered valid in the second frame, but that is not in the visible region, is black. That makes complete sense.
So current observations suggest, that perhaps counterintuitively, thinks go wrong in the -second- frame where there are no artifacts yet, by overestimating the validity of the TextureHost.
Assignee | ||
Comment 9•9 years ago
|
||
The problem here is that we create a new texture host when the visible region changes between frame 1 and 2, we then copy the valid contents of the old one into the new one. When we send the updated region to the compositor though, that only contains the valid region that is also in the visible region. Which means that part of the new texture host is never uploaded.
This patch makes it so that when a new texture host is received by a content host, it will make sure to upload the entire old valid region regardless of whether it's in the current updated region.
Attachment #8678142 -
Flags: review?(nical.bugzilla)
Should we uplift this?
Flags: needinfo?(bas)
Updated•9 years ago
|
Attachment #8678142 -
Flags: review?(nical.bugzilla) → review+
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Assignee | ||
Comment 13•9 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #10)
> Should we uplift this?
Yes, probably, but I would like to wait a couple of days to make sure this doesn't cause any issues.
Flags: needinfo?(bas)
Reporter | ||
Comment 14•9 years ago
|
||
The patch seems to fix bug 1217215 too. Maybe I shouldn't have separated it into a new bug? It had a different regression range, though.
Comment 15•9 years ago
|
||
I think you did the right thing given the different range. Feel free to dupe it over or close it out marked as depending on this bug, though.
Reporter | ||
Comment 17•9 years ago
|
||
(In reply to Bas Schouten (:bas.schouten) from comment #13)
> I would like to wait a couple of days to make sure this
> doesn't cause any issues.
Is it OK to uplift it now?
Assignee | ||
Comment 18•9 years ago
|
||
Comment on attachment 8678142 [details] [diff] [review]
Upload the old valid region as well if our texture host changed
Approval Request Comment
[Feature/regressing bug #]: OMTC
[User impact if declined]: Black areas on websites
[Describe test coverage new/current, TreeHerder]: Nightly coverage
[Risks and why]: Low, tiny perf regression possibility
[String/UUID change made/needed]: None
Attachment #8678142 -
Flags: approval-mozilla-beta?
Comment 19•9 years ago
|
||
Tracking since this is a regression and marking affected for 43.
Comment 20•9 years ago
|
||
Comment on attachment 8678142 [details] [diff] [review]
Upload the old valid region as well if our texture host changed
Fix for another OMTC regression. OK to uplift to beta.
Attachment #8678142 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 21•9 years ago
|
||
bugherder uplift |
Updated•9 years ago
|
Flags: qe-verify+
Comment 22•9 years ago
|
||
Reproduced the initial issue using an old Nightly build (2015-10-24), verified that the issue is fixed using Firefox 43 beta 4 and latest Firefox Developer Edition 44.0a2 on Windows XP 32-bit.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in
before you can comment on or make changes to this bug.
Description
•