You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Intermittent failure in /css/CSS2/positioning/bottom-113.xht (one of the screenshots is a big black box) #22062
changed the title [-]Intermittent failure in /css/CSS2/positioning/bottom-113.xht[/-][+]Intermittent failure in /css/CSS2/positioning/bottom-113.xht (one of the screenshots is a big black box)[/+]on Nov 9, 2018
#21613 is looking pretty guilty. I've run a lot of try pushes on revisions directly before that PR and a lot of pushes on revisions after it and the evidence seems incontrovertible.
Verified that the regressing change is servo/webrender@9269072 as expected. I'm running a lot of reftests overnight with #22219 applied to verify that it fixes the issue.
@nical Do you have any ideas why forcing the use of the scene builder thread would cause Servo to intermittently take completely black screenshots of some reftests?
The scene builder thread makes scene building asynchronous which means that we can't set the display list and then screenshot the next frame (another scrolling/animation frame could be causing rendering to happen in between). I don't know how servo handles screenshots but this is the first place I'd look.
There's a Transaction::notify API that can be useful for inserting arbitrary code (such as synchronization) when a transaction reaches specific points of the pipeline including when it's been rendered which might be useful here if anything needs to be done about synchronization.
Complication: the transactions that set a display list are initiated in the content process and then serialized over IPC to the chrome process. In the process, this silently discards any notifiers that were added to the transaction.
Ah, right. The notify stuff passes closures which doesn't work in a cross-process setup. The other similar mechanism is ApiMsg::ExternalEvent, that uses an opaque handle which can be used across processes. It's passed to the RenderNotifier::external_event hook and the meaning of the event is really up to the embedder. It's not part of the transaction but it goes through the same queues as transactions and does not race ahead of them so you could use this as a mechanism to know that the asynchronous part of scene building has happened. by assigning meanings like "render and screenshot" to ExternalEvent values.
It wouldn't be hard to add it (or something similar) to transactions themselves if it makes things easier for servo.
Activity
jdm commentedon Nov 9, 2018
I found another failure like this in /css/CSS2/normal-flow/height-050.xht. The non-reference rendering was a big black window.
[-]Intermittent failure in /css/CSS2/positioning/bottom-113.xht[/-][+]Intermittent failure in /css/CSS2/positioning/bottom-113.xht (one of the screenshots is a big black box)[/+]jdm commentedon Nov 9, 2018
Also seen in the reference rendering for /css/CSS2/fonts/font-148.xht.
jdm commentedon Nov 12, 2018
#22158 (comment) has the results of my regression range calculations so far.
jdm commentedon Nov 12, 2018
#21613 is looking pretty guilty. I've run a lot of try pushes on revisions directly before that PR and a lot of pushes on revisions after it and the evidence seems incontrovertible.
jdm commentedon Nov 12, 2018
I spoke too soon. #21613 is absolved.
jdm commentedon Nov 14, 2018
I'm running regression tests on servo-linux1. So far I have reproduced it on Nov 13 and have not reproduced it on Oct 1.
jdm commentedon Nov 15, 2018
I have reproduced it on Oct 19 (2304f02).
jdm commentedon Nov 15, 2018
Have not reproduced it on Oct 10 (35bf180).
jdm commentedon Nov 15, 2018
Reproduced it on Oct 15 (f88f312).
jdm commentedon Nov 15, 2018
Have not reproduced it on Oct 13 (e4657c1).
jdm commentedon Nov 15, 2018
Bisecting between e4657c1 and f88f312, I have reproduced on a949e9e.
jdm commentedon Nov 15, 2018
I am doubting the results for Oct 13, so I'm rerunning that.
jdm commentedon Nov 15, 2018
Reproduced the problem on Oct 13 (e4657c1).
4 remaining items
jdm commentedon Nov 16, 2018
I'm pretty sure that this is a regression from #21725.
jdm commentedon Nov 17, 2018
Cannot reproduce after >24 attempts on 69e5243. This looks solid to me!
jdm commentedon Nov 17, 2018
Sadly the changes in #21725 don't look suspicious, which leaves us with a potential regression range in WR from servo/webrender@38f3b57 to servo/webrender@923ee49, which covers about two months.
jdm commentedon Nov 18, 2018
I predict it's going to be servo/webrender#2992 and that we'll need to fix #21896.
jdm commentedon Nov 18, 2018
servo/webrender@2d082df looks extremely relevant, however.
jdm commentedon Nov 19, 2018
Verified that the regressing change is servo/webrender@9269072 as expected. I'm running a lot of reftests overnight with #22219 applied to verify that it fixes the issue.
jdm commentedon Nov 23, 2018
I obtained the log of a failed test run that included -Zdump-display-list for https://searchfox.org/mozilla-central/source/testing/web-platform/tests/css/CSS2/backgrounds/background-root-001.xht. It looks like this:
Which looks like the expected display list for that test file.
jdm commentedon Nov 23, 2018
@nical Do you have any ideas why forcing the use of the scene builder thread would cause Servo to intermittently take completely black screenshots of some reftests?
nical commentedon Nov 24, 2018
The scene builder thread makes scene building asynchronous which means that we can't set the display list and then screenshot the next frame (another scrolling/animation frame could be causing rendering to happen in between). I don't know how servo handles screenshots but this is the first place I'd look.
There's a
Transaction::notifyAPI that can be useful for inserting arbitrary code (such as synchronization) when a transaction reaches specific points of the pipeline including when it's been rendered which might be useful here if anything needs to be done about synchronization.jdm commentedon Jan 16, 2019
Complication: the transactions that set a display list are initiated in the content process and then serialized over IPC to the chrome process. In the process, this silently discards any notifiers that were added to the transaction.
nical commentedon Jan 21, 2019
Ah, right. The notify stuff passes closures which doesn't work in a cross-process setup. The other similar mechanism is ApiMsg::ExternalEvent, that uses an opaque handle which can be used across processes. It's passed to the
RenderNotifier::external_eventhook and the meaning of the event is really up to the embedder. It's not part of the transaction but it goes through the same queues as transactions and does not race ahead of them so you could use this as a mechanism to know that the asynchronous part of scene building has happened. by assigning meanings like "render and screenshot" to ExternalEvent values.It wouldn't be hard to add it (or something similar) to transactions themselves if it makes things easier for servo.
jdm commentedon Nov 13, 2019
Happily, this stopped affecting us earlier this year.