[fuchsia][flatland] Remove always-false debug assertions [chromium/src : main]

0 views
Skip to first unread message

Zijie He (Gerrit)

unread,
Sep 18, 2025, 10:15:29 PMSep 18
to David Song, Chromium LUCI CQ, Robert Kroeger, David Worsham, AyeAye, fuchsia...@chromium.org, spang...@chromium.org, emi...@google.com, ozone-...@chromium.org
Attention needed from David Song and Wez

Zijie He voted and added 1 comment

Votes added by Zijie He

Auto-Submit+1

1 comment

Commit Message
Line 9, Patchset 2:It's known that the sequence-checker fails on the object. So this CL removes it in favor of unblocking the enablement of DCHECK in the fyi builders.
David Song . resolved

To be clear, this CL removes an always-failing debug assertion, which was never caught because we don't run dchecks on the builders?

Zijie He

Yes, enabling the dcheck would stop the bleeding.

Open in Gerrit

Related details

Attention is currently required from:
  • David Song
  • Wez
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I2db628f9f59edbdac2236a8417feaefc9221bee7
Gerrit-Change-Number: 6965663
Gerrit-PatchSet: 3
Gerrit-Owner: Zijie He <zij...@google.com>
Gerrit-Reviewer: David Song <winter...@google.com>
Gerrit-Reviewer: Wez <w...@chromium.org>
Gerrit-Reviewer: Zijie He <zij...@google.com>
Gerrit-CC: David Worsham <dwor...@google.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Wez <w...@chromium.org>
Gerrit-Attention: David Song <winter...@google.com>
Gerrit-Comment-Date: Fri, 19 Sep 2025 02:15:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: David Song <winter...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Wez (Gerrit)

unread,
Sep 19, 2025, 3:47:35 AMSep 19
to Zijie He, David Song, Chromium LUCI CQ, Robert Kroeger, David Worsham, AyeAye, fuchsia...@chromium.org, spang...@chromium.org, emi...@google.com, ozone-...@chromium.org
Attention needed from David Song and Zijie He

Wez added 2 comments

File ui/ozone/platform/flatland/client_native_pixmap_factory_flatland.cc
Line 28, Patchset 3 (Latest):// TODO(crbug.com/436930319): It's known that this class needs to be thread-safe
// based on the current gfx implementation. It's still unclear if it's expected
// to be thread-safe or the callers are not correctly using it.
// See https://crbug.com/436930319 and https://crbug.com/436929831 for two
// examples of issues.
Wez . unresolved

The issue is that the sequence-checker makes this class thread-_hostile_ (i.e. incapable of being used multi-threaded), whereas the `gfx` expectation appears to be that it is thread-_unsafe_ (i.e. is not intrinsically thread-safe, but can be used multi-threaded if the caller synchronizes access).

Line 205, Patchset 3 (Parent): SEQUENCE_CHECKER(sequence_checker_);
Wez . unresolved

As mentioned offline, ideally we'd leave a sequence checker in place and apply it to create/destroy, then have a separate one for use, to enforce those two thread-affine properties - or whatever arrangement reflects the actual undocumented expectation on implementations.

Open in Gerrit

Related details

Attention is currently required from:
  • David Song
  • Zijie He
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2db628f9f59edbdac2236a8417feaefc9221bee7
    Gerrit-Change-Number: 6965663
    Gerrit-PatchSet: 3
    Gerrit-Owner: Zijie He <zij...@google.com>
    Gerrit-Reviewer: David Song <winter...@google.com>
    Gerrit-Reviewer: Wez <w...@chromium.org>
    Gerrit-Reviewer: Zijie He <zij...@google.com>
    Gerrit-CC: David Worsham <dwor...@google.com>
    Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
    Gerrit-Attention: Zijie He <zij...@google.com>
    Gerrit-Attention: David Song <winter...@google.com>
    Gerrit-Comment-Date: Fri, 19 Sep 2025 07:47:19 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Zijie He (Gerrit)

    unread,
    Sep 19, 2025, 2:37:53 PMSep 19
    to David Song, Chromium LUCI CQ, Robert Kroeger, David Worsham, AyeAye, fuchsia...@chromium.org, spang...@chromium.org, emi...@google.com, ozone-...@chromium.org
    Attention needed from David Song and Wez

    Zijie He voted and added 2 comments

    Votes added by Zijie He

    Auto-Submit+1

    2 comments

    File ui/ozone/platform/flatland/client_native_pixmap_factory_flatland.cc
    Line 28, Patchset 3:// TODO(crbug.com/436930319): It's known that this class needs to be thread-safe

    // based on the current gfx implementation. It's still unclear if it's expected
    // to be thread-safe or the callers are not correctly using it.
    // See https://crbug.com/436930319 and https://crbug.com/436929831 for two
    // examples of issues.
    Wez . resolved

    The issue is that the sequence-checker makes this class thread-_hostile_ (i.e. incapable of being used multi-threaded), whereas the `gfx` expectation appears to be that it is thread-_unsafe_ (i.e. is not intrinsically thread-safe, but can be used multi-threaded if the caller synchronizes access).

    Zijie He

    I doubt gfx is the only use of this class, indeed the two known failures come from cc/ but not gfx/. Not sure about the relationship between gfx and cc, but none of them use lock or indicate the thread-affinity immediately.

    Updated the comment here to make it vague and avoid the impression that thread-safety is required.

    Line 205, Patchset 3 (Parent): SEQUENCE_CHECKER(sequence_checker_);
    Wez . resolved

    As mentioned offline, ideally we'd leave a sequence checker in place and apply it to create/destroy, then have a separate one for use, to enforce those two thread-affine properties - or whatever arrangement reflects the actual undocumented expectation on implementations.

    Zijie He

    As mentioned in https://crrev.com/c/6909839, the destructor calls unmap conditionally, using two sequence-checkers. It's the reason I am making a much simpler workaround here and will continue the discussion in https://crrev.com/c/6909839.

    The sequence checker is failing and does not provide its expected functionality other than blocking the enablement of the DCHECK and causes potentially other similar DCHECK failures to slip through.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • David Song
    • Wez
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I2db628f9f59edbdac2236a8417feaefc9221bee7
    Gerrit-Change-Number: 6965663
    Gerrit-PatchSet: 4
    Gerrit-Owner: Zijie He <zij...@google.com>
    Gerrit-Reviewer: David Song <winter...@google.com>
    Gerrit-Reviewer: Wez <w...@chromium.org>
    Gerrit-Reviewer: Zijie He <zij...@google.com>
    Gerrit-CC: David Worsham <dwor...@google.com>
    Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
    Gerrit-Attention: Wez <w...@chromium.org>
    Gerrit-Attention: David Song <winter...@google.com>
    Gerrit-Comment-Date: Fri, 19 Sep 2025 18:37:44 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Wez <w...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    David Song (Gerrit)

    unread,
    Sep 19, 2025, 3:07:31 PMSep 19
    to Zijie He, Chromium LUCI CQ, Robert Kroeger, David Worsham, AyeAye, fuchsia...@chromium.org, spang...@chromium.org, emi...@google.com, ozone-...@chromium.org
    Attention needed from Wez and Zijie He

    David Song voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Wez
    • Zijie He
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I2db628f9f59edbdac2236a8417feaefc9221bee7
      Gerrit-Change-Number: 6965663
      Gerrit-PatchSet: 4
      Gerrit-Owner: Zijie He <zij...@google.com>
      Gerrit-Reviewer: David Song <winter...@google.com>
      Gerrit-Reviewer: Wez <w...@chromium.org>
      Gerrit-Reviewer: Zijie He <zij...@google.com>
      Gerrit-CC: David Worsham <dwor...@google.com>
      Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
      Gerrit-Attention: Wez <w...@chromium.org>
      Gerrit-Attention: Zijie He <zij...@google.com>
      Gerrit-Comment-Date: Fri, 19 Sep 2025 19:07:21 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Zijie He (Gerrit)

      unread,
      Sep 19, 2025, 3:14:35 PMSep 19
      to David Song, Chromium LUCI CQ, Robert Kroeger, David Worsham, AyeAye, fuchsia...@chromium.org, spang...@chromium.org, emi...@google.com, ozone-...@chromium.org
      Attention needed from Wez

      Zijie He voted and added 1 comment

      Votes added by Zijie He

      Commit-Queue+2

      1 comment

      Patchset-level comments
      File-level comment, Patchset 4 (Latest):
      Zijie He . resolved

      Thank you David.
      Wez, let's move the proper fix back to https://crrev.com/c/6909839. I replied the latest comment, and would continue the investigation of the guesses we had.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Wez
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I2db628f9f59edbdac2236a8417feaefc9221bee7
      Gerrit-Change-Number: 6965663
      Gerrit-PatchSet: 4
      Gerrit-Owner: Zijie He <zij...@google.com>
      Gerrit-Reviewer: David Song <winter...@google.com>
      Gerrit-Reviewer: Wez <w...@chromium.org>
      Gerrit-Reviewer: Zijie He <zij...@google.com>
      Gerrit-CC: David Worsham <dwor...@google.com>
      Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
      Gerrit-Attention: Wez <w...@chromium.org>
      Gerrit-Comment-Date: Fri, 19 Sep 2025 19:14:24 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Sep 19, 2025, 3:17:52 PMSep 19
      to Zijie He, David Song, Robert Kroeger, David Worsham, AyeAye, fuchsia...@chromium.org, spang...@chromium.org, emi...@google.com, ozone-...@chromium.org

      Chromium LUCI CQ submitted the change

      Change information

      Commit message:
      [fuchsia][flatland] Remove always-false debug assertions

      These sequence check assertions always fail, but went unnoticed because
      our builders do not run with dcheck_always_on=true (being addressed in
      crbug.com/436929831). Remove them and replace with TODOs to figure out
      the correct assertions in https://crrev.com/c/6909839.
      Bug: 436930319, 436929831
      Change-Id: I2db628f9f59edbdac2236a8417feaefc9221bee7
      Auto-Submit: Zijie He <zij...@google.com>
      Reviewed-by: David Song <winter...@google.com>
      Commit-Queue: Zijie He <zij...@google.com>
      Cr-Commit-Position: refs/heads/main@{#1518113}
      Files:
      • M ui/ozone/platform/flatland/client_native_pixmap_factory_flatland.cc
      Change size: S
      Delta: 1 file changed, 6 insertions(+), 9 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by David Song
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I2db628f9f59edbdac2236a8417feaefc9221bee7
      Gerrit-Change-Number: 6965663
      Gerrit-PatchSet: 5
      Gerrit-Owner: Zijie He <zij...@google.com>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: David Song <winter...@google.com>
      Gerrit-Reviewer: Wez <w...@chromium.org>
      Gerrit-Reviewer: Zijie He <zij...@google.com>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages