Skip to content

Intermittent failure in /css/CSS2/positioning/bottom-113.xht (one of the screenshots is a big black box) #22062

Closed

Description

@jdm

Testcase:
screen shot 2018-10-31 at 7 48 07 am

Reference:
screen shot 2018-10-31 at 7 48 18 am

The reference rendering is in the wrong here, and it's rather confusing.

Activity

  1. added
    I-intermittent
    on Oct 31, 2018
  2. jdm commented on Nov 9, 2018

    @jdm
    MemberAuthor

    I found another failure like this in /css/CSS2/normal-flow/height-050.xht. The non-reference rendering was a big black window.

  3. 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
  4. jdm commented on Nov 9, 2018

    @jdm
    MemberAuthor

    Also seen in the reference rendering for /css/CSS2/fonts/font-148.xht.

  5. jdm commented on Nov 12, 2018

    @jdm
    MemberAuthor

    #22158 (comment) has the results of my regression range calculations so far.

  6. jdm commented on Nov 12, 2018

    @jdm
    MemberAuthor

    #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.

  7. jdm commented on Nov 12, 2018

    @jdm
    MemberAuthor

    I spoke too soon. #21613 is absolved.

  8. jdm commented on Nov 14, 2018

    @jdm
    MemberAuthor

    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.

  9. jdm commented on Nov 15, 2018

    @jdm
    MemberAuthor

    I have reproduced it on Oct 19 (2304f02).

  10. jdm commented on Nov 15, 2018

    @jdm
    MemberAuthor

    Have not reproduced it on Oct 10 (35bf180).

  11. jdm commented on Nov 15, 2018

    @jdm
    MemberAuthor

    Reproduced it on Oct 15 (f88f312).

  12. jdm commented on Nov 15, 2018

    @jdm
    MemberAuthor

    Have not reproduced it on Oct 13 (e4657c1).

  13. jdm commented on Nov 15, 2018

    @jdm
    MemberAuthor

    Bisecting between e4657c1 and f88f312, I have reproduced on a949e9e.

  14. jdm commented on Nov 15, 2018

    @jdm
    MemberAuthor

    I am doubting the results for Oct 13, so I'm rerunning that.

  15. jdm commented on Nov 15, 2018

    @jdm
    MemberAuthor

    Reproduced the problem on Oct 13 (e4657c1).

  16. 4 remaining items

  17. jdm commented on Nov 16, 2018

    @jdm
    MemberAuthor

    I'm pretty sure that this is a regression from #21725.

  18. jdm commented on Nov 17, 2018

    @jdm
    MemberAuthor

    Cannot reproduce after >24 attempts on 69e5243. This looks solid to me!

  19. jdm commented on Nov 17, 2018

    @jdm
    MemberAuthor

    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.

  20. jdm commented on Nov 18, 2018

    @jdm
    MemberAuthor

    I predict it's going to be servo/webrender#2992 and that we'll need to fix #21896.

  21. jdm commented on Nov 18, 2018

    @jdm
    MemberAuthor

    servo/webrender@2d082df looks extremely relevant, however.

  22. jdm commented on Nov 19, 2018

    @jdm
    MemberAuthor

    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.

  23. jdm commented on Nov 23, 2018

    @jdm
    MemberAuthor

    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:

    ┌ Display List
    │  ├─ ClipScrollNodes
    │  │  ├─ ClipScrollNode { parent_index: ClipScrollNodeIndex(0), clip: ClippingRegion::Empty, content_rect: TypedRect(0.0×0.0 at (0.0,0.0)), node_type: Placeholder }
    │  │  └─ ClipScrollNode { parent_index: ClipScrollNodeIndex(0), clip: ClippingRegion::Empty, content_rect: TypedRect(0.0×0.0 at (0.0,0.0)), node_type: Placeholder }
    │  ├─ Items
    │  │  ├─ PushStackingContext(StackingContext at TypedRect(800.0×600.0 at (0.0,0.0)) with overflow TypedRect(800.0×600.0 at (0.0,0.0)): StackingContextId(0)) StackingContext: StackingContextId(0) ClippingAndScrolling { scrolling: ClipScrollNodeIndex(1), clipping: None }
    │  │  ├─ Rectangle @ TypedRect(800.0×600.0 at (0.0,0.0)) TypedRect(800.0×600.0 at (0.0,0.0)) StackingContext: StackingContextId(0) ClippingAndScrolling { scrolling: ClipScrollNodeIndex(1), clipping: None }
    │  │  ├─ Rectangle @ TypedRect(784.0×18.633333 at (8.0,16.0)) TypedRect(784.0×18.633333 at (8.0,16.0)) StackingContext: StackingContextId(0) ClippingAndScrolling { scrolling: ClipScrollNodeIndex(1), clipping: None }
    │  │  ├─ Rectangle @ TypedRect(784.0×18.633333 at (8.0,16.0)) TypedRect(784.0×18.633333 at (8.0,16.0)) StackingContext: StackingContextId(0) ClippingAndScrolling { scrolling: ClipScrollNodeIndex(1), clipping: None }
    │  │  ├─ Text @ TypedRect(463.75×18.616667 at (8.0,16.016666)) TypedRect(17895698.0×17895698.0 at (-8947849.0,-8947849.0)) StackingContext: StackingContextId(0) ClippingAndScrolling { scrolling: ClipScrollNodeIndex(1), clipping: None }
    │  │  └─ PopStackingContext(StackingContextId(0) StackingContext: StackingContextId(0) ClippingAndScrolling { scrolling: ClipScrollNodeIndex(1), clipping: None }
    

    Which looks like the expected display list for that test file.

  24. jdm commented on Nov 23, 2018

    @jdm
    MemberAuthor

    @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?

  25. nical commented on Nov 24, 2018

    @nical
    Contributor

    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.

  26. jdm commented on Jan 16, 2019

    @jdm
    MemberAuthor

    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.

  27. nical commented on Jan 21, 2019

    @nical
    Contributor

    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.

  28. jdm commented on Nov 13, 2019

    @jdm
    MemberAuthor

    Happily, this stopped affecting us earlier this year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-intermittent

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions