Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Multiple Flutter Engine: destroy flutter engine making live flutter stop response user interaction #76597

@zhangxu-mag

Description

@zhangxu-mag

Steps to Reproduce

  1. User FlutterEngineGroup create new flutter engine
  2. Say we have Activity1 associated with flutter engine 1, Activity2 associated with flutter engine 2
  3. when user open the app, Activity1 is created and it create flutter engine 1 to render the view
  4. user interact with Activity1 to open Activity2
  5. Activity2 is created and it created flutter engine 2 to render view
  6. user navigate back
  7. Activity2 is destroy triggering flutter enige 2 destroy
  8. User back to Activity1
  9. User interact with Activity1 and no any response

Expected results:
User can continue interact with Activity1

Actual results:
User can not continue interact with Activity1

comments out "flutterJNI.detachFromNativeAndReleaseResources();" in FlutterEngine.destory helps fix @@@@@this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: existing-appsIntegration with existing apps via the add-to-app flowengineflutter/engine related. See also e: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions