Skip to content

fix: [android] Fall back to new engine when cached engine is missing#188233

Draft
mboetger wants to merge 1 commit into
flutter:masterfrom
mboetger:triage-issue-116947
Draft

fix: [android] Fall back to new engine when cached engine is missing#188233
mboetger wants to merge 1 commit into
flutter:masterfrom
mboetger:triage-issue-116947

Conversation

@mboetger

Copy link
Copy Markdown
Contributor

Falls back to creating a new FlutterEngine when a cached engine is specified (e.g. during activity recreation) but does not exist in the FlutterEngineCache, rather than throwing an IllegalStateException. Also ensures the fallback engine is correctly destroyed on activity/fragment destruction to avoid memory leaks.

Fixes: #116947

Falls back to creating a new FlutterEngine when a cached engine is specified (e.g. during activity recreation) but does not exist in the FlutterEngineCache, rather than throwing an IllegalStateException. Also ensures the fallback engine is correctly destroyed on activity/fragment destruction to avoid memory leaks.

Fixes: flutter#116947
@mboetger mboetger added the l:backlog LLM created PR addressing a backlog issue. label Jun 18, 2026
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Jun 18, 2026
@github-actions github-actions Bot added platform-android Android applications specifically engine flutter/engine related. See also e: labels. team-android Owned by Android platform team labels Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD engine flutter/engine related. See also e: labels. l:backlog LLM created PR addressing a backlog issue. platform-android Android applications specifically team-android Owned by Android platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[engine] FlutterFragmentActivity needs a fallback for the cached engine

1 participant