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