Skip to content

[Flutter GPU] Standardize a message error pattern. #143891

Closed

Description

@bdero

Part of #130921

Right now, we have a mix of error handling that may be confusing to users.

  • Sometimes a success boolean is returned.
  • Sometimes an exception is thrown if there's a problem.
  • Sometimes Impeller validation will catch problems and rendering will fail.
  • Sometimes the Impeller backend will allow something invalid to happen and rendering will silently fail unless the user has Metal or Vulkan validations enabled.

Recommendation: Bias heavily towards exception throwing.

Activity

  1. added
    e: impellerImpeller rendering backend issues and features requests
    on Feb 21, 2024
  2. added
    engineflutter/engine related. See also e: labels.
    c: proposalA detailed proposal for a change to Flutter
    on Feb 22, 2024
  3. changed the title [-][Impeller] Flutter GPU: Standardize a message error pattern.[/-] [+][Flutter GPU] Standardize a message error pattern.[/+] on Feb 24, 2024
  4. removed
    e: impellerImpeller rendering backend issues and features requests
    on Feb 24, 2024
  5. added
    P2Important issues not at the top of the work list
    on Feb 26, 2024
  6. moved this from 🤔 Needs Triage to 🔧 Internals in Flutter GPUon Feb 27, 2024
  7. bdero commented on Sep 24, 2024

    @bdero
    MemberAuthor

    For dart-side parameter guards, use message asserts instead of exception branches.

  8. moved this from 🔧 Internals to ✅ Done in Flutter GPUon Feb 1, 2025
  9. added
    r: fixedIssue is closed as already fixed in a newer version
    on Feb 4, 2025
  10. github-actions commented on Feb 18, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  11. locked as resolved and limited conversation to collaborators on Feb 18, 2025
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

    P2Important issues not at the top of the work listc: proposalA detailed proposal for a change to Flutterengineflutter/engine related. See also e: labels.flutter-gpur: fixedIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions