Skip to content

Fix invalid WeakPtr usage in Shell::CreateShellOnPlatformThread() #42948

@gw280

Description

@gw280

Shell::CreateShellOnPlatformThread() calls into PlatformView::CreateResourceContext which requires us to be on the IO thread (and so it does so in an IO task) and derefs the PlatformView's WeakPtr inside that lambda, which was created on the platform thread.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listengineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions