Skip to content

During SCREEN_OFF flutter deadlock and not show new frames or crash on android #183887

Description

@reidbaker

During SCREEN_OFF event a deadlock preventing new frames or crash can occur on android devices running Android 16 March Security update.

A race condition between Flutter's Impeller engine and the system surface destruction sequence causes a main-thread deadlock during a SCREEN_OFF or backgrounding event and a video is playing in Flutter layer

This is characterized by ErrorSurfaceLostKHR in logs and results in an ANR because the main thread is blocked while detaching from a lost surface.

External copy of internal bug b/488786379

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listteam-engineOwned by Engine team

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions