Closed
Description
Scene
- Custom FlutterEngine instance created by the developer is used in FlutterActivity
- Flutter UI uses PlatformView
Steps to Reproduce
- Open developer mode, Turn on the 'Don't keep activities' option
- Open the app, Press the button to jump to FlutterActivity page
- Turn the app to the background, open another app (several apps are better )
- Turn the app to foreground and the app will crash
Code sample
Logs
Crash Log : https://github.com/a1017480401/crash_demo/blob/main/crash_log
[√] Flutter (Channel stable, 3.3.2, on Microsoft Windows [版本 10.0.19044.2006], locale zh-CN)
• Flutter version 3.3.2 on channel stable at D:\code\flutter\SDK\flutter_windows_3.3.0-stable\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision e3c29ec00c (9 days ago), 2022-09-14 08:46:55 -0500
• Engine revision a4ff2c53d8
• Dart version 2.18.1
• DevTools version 2.15.0
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
• Android SDK at D:\code\android\AndroidSDK
• Platform android-33, build-tools 32.1.0-rc1
• Java binary at: D:\code\android\AS\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.6)
• Visual Studio at D:\tools\Visual Studio\2022\Components
• Visual Studio Community 2022 version 17.1.32421.90
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2021.2)
• Android Studio at D:\code\android\AS
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
[√] Connected device (5 available)
• V2055A (mobile) • 343470231100DGT • android-arm64 • Android 11 (API 30)
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 12 (API 31) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [版本 10.0.19044.2006]
• Chrome (web) • chrome • web-javascript • Google Chrome 105.0.5195.127
• Edge (web) • edge • web-javascript • Microsoft Edge 105.0.1343.27
[√] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
Metadata
Metadata
Assignees
Labels
Important issues not at the top of the work listEmbedding Android/iOS views in Flutter appsStack traces logged to the consoleCrashes that terminate the processOnly manifests on certain devicesflutter/engine repository. See also e: labels.Found to occur in 3.3The issue has been confirmed reproducible and is ready to work onAndroid applications specificallyOwned by Android platform teamTriaged by Android platform team