Skip to content

drawRenderNode called on a context with no surface! #112254

Closed
@Passer-by

Description

@Passer-by

Scene

  1. Custom FlutterEngine instance created by the developer is used in FlutterActivity
  2. Flutter UI uses PlatformView

Steps to Reproduce

  1. Open developer mode, Turn on the 'Don't keep activities' option
  2. Open the app, Press the button to jump to FlutterActivity page
  3. Turn the app to the background, open another app (several apps are better )
  4. Turn the app to foreground and the app will crash
Code sample

Demo Url: https://github.com/a1017480401/crash_demo.git

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

No one assigned

    Labels

    P2Important issues not at the top of the work lista: platform-viewsEmbedding Android/iOS views in Flutter appsc: crashStack traces logged to the consolec: fatal crashCrashes that terminate the processcustomer: triviae: device-specificOnly manifests on certain devicesengineflutter/engine repository. See also e: labels.found in release: 3.3Found to occur in 3.3has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions