alibaba / alibaba/flutter_boost

android 的degug版本正常, release打开app白屏

Open
#1,719 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.2k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

#937 中的问题,依然存在,环境如下,issue中的解决方案不适用于现在了,api已不存在
flutter_boost 3.1.2
Flutter 2.2.3 • channel stable

release模式启动后一直白屏,无论退出App几次依旧如此,并且控制台抛出异常如下:
注:debug模式下,首次安装也会白屏,也是如下异常,杀进程退出app后,可正常进入

[ +31 ms] I/flutter ( 739): -------初始化----------
[ +4 ms] V/FlutterBoostPlugin( 739): ## onForeground: com.idlefish.flutterboost.Messages$FlutterRouterApi@b5ff690
[ +2 ms] I/flutter ( 739): FlutterBoost#Oops, Failed to update overlay. mode=BoostSpecificEntryRefreshMode.add, BoostContainer(name:/, pages:[BoostPage(name:/, uniqueId:1664272815879_/, arguments:null)])
[ ] I/flutter ( 739): Null check operator used on a null value
[ ] I/flutter ( 739): #0 BoostChannel.addEventListener (package:flutter_boost/src/boost_channel.dart:34)
[ ] I/flutter ( 739): #1 FlutterBoostAppState._addAppLifecycleStateEventListener (package:flutter_boost/src/flutter_boost_app.dart:118)
[ ] I/flutter ( 739): #2 FlutterBoostAppState.initState. (package:flutter_boost/src/flutter_boost_app.dart:107)
[ ] I/flutter ( 739): #3 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144)
[ ] I/flutter ( 739): #4 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1090)
[ ] I/flutter ( 739): #5 SchedulerBinding.scheduleWarmUpFrame. (package:flutter/src/scheduler/binding.dart:865)
[ ] I/flutter ( 739): #13 TickerFuture.whenCompleteOrCancel.thunk (package:flutter/src/scheduler/ticker.dart:407)
[ ] I/flutter ( 739): (elided 10 frames from class _RawReceivePortImpl, class _Timer, and dart:async)
[ ] I/flutter ( 739): AppLifecycleObserver / - onForground
[ +9 ms] I/flutter ( 739): AppLifecycleObserver - splash_page- onPagePush
[ ] I/flutter ( 739): FlutterBoost#Oops, Failed to update overlay. mode=BoostSpecificEntryRefreshMode.add, BoostContainer(name:splash_page, pages:[BoostPage(name:splash_page, uniqueId:264acaea-100f-4a3b-9828-9c667652b2e1_splash_page, arguments:{})])
[ ] I/flutter ( 739): Another exception was thrown: Instance of 'DiagnosticsProperty'

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the release-mode white screen with FlutterBoost 3.1.2 and Flutter 2.2.3, then start from the stack-trace locations package:flutter_boost/src/boost_channel.dart:34 and package:flutter_boost/src/flutter_boost_app.dart:107-118. Compare the lifecycle and overlay initialization path with the reported debug behavior. Done means the app opens without the null-check or overlay exceptions in release mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.