alibaba / alibaba/flutter_boost

FlutterFragment作为tab页时,如果关闭所在的Activity会崩溃

Open
#1,683 2 comments 0 reactions 0 assignees View on GitHub
more-information-needed
Dominant language
Dart
Stars
7.2k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

如果从来没进过这个Tab,Fragment#onStart,走不到onResume
打开新的Activity时,回调Fragment#onStop
FlutterActivityAndFragmentDelegate#onDestroyView -> ContainerRecord#onDestroy ,这里检查状态不通过,抛出异常

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the crash by using a FlutterFragment as a tab, opening another Activity, and closing the containing Activity. Trace the Fragment lifecycle through FlutterActivityAndFragmentDelegate#onDestroyView and ContainerRecord#onDestroy, focusing on the state check described in the report. Done means the Activity can close without the exception, including when the tab was never resumed.

Written by the indexing model from the issue text.

Assessment

Tech stack
flutter
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.