alibaba / alibaba/flutter_boost
android 使用 flutter attach 命令调试时,启动一个页面显示正常,但是有报错 log 'package:flutter_boost/src/boost_channel.dart': Failed assertion: line 50 pos 12: 'containerId.isNotEmpty': is not true.
- Dominant language
- Dart
- Stars
- 7.2k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
The following assertion was thrown during a platform message callback:
'package:flutter_boost/src/boost_channel.dart': Failed assertion: line 50 pos 12:
'containerId.isNotEmpty': is not true.
When the exception was thrown, this was the stack:
#2 BoostChannel.enablePopGesture (package:flutter_boost/src/boost_channel.dart:50:12)
#3 BoostLifecycleBinding.containerDidShow
(package:flutter_boost/src/boost_lifecycle_binding.dart:103:12)
#4 FlutterBoostAppState.onContainerShow (package:flutter_boost/src/flutter_boost_app.dart:626:38)
#5 BoostFlutterRouterApi.onContainerShow.
(package:flutter_boost/src/boost_flutter_router_api.dart:74:16)
#6 BoostFlutterRouterApi._addInOperationQueueOrExcute
(package:flutter_boost/src/boost_flutter_router_api.dart:95:17)
#7 BoostFlutterRouterApi.onContainerShow
(package:flutter_boost/src/boost_flutter_router_api.dart:73:5)
#8 FlutterRouterApi.setup. (package:flutter_boost/src/messages.dart:468:15)
#9 FlutterRouterApi.setup. (package:flutter_boost/src/messages.dart:463:35)
#10 BasicMessageChannel.setMessageHandler.
(package:flutter/src/services/platform_channel.dart:77:49)
#11 BasicMessageChannel.setMessageHandler.
(package:flutter/src/services/platform_channel.dart:76:47)
#12 _DefaultBinaryMessenger.setMessageHandler.
(package:flutter/src/services/binding.dart:380:35)
#13 _DefaultBinaryMessenger.setMessageHandler.
(package:flutter/src/services/binding.dart:377:46)
#14 _invoke2. (dart:ui/hooks.dart:190:15)
#18 _invoke2 (dart:ui/hooks.dart:189:10)
#19 _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:42:5)
#20 _Channel.push (dart:ui/channel_buffers.dart:132:31)
#21 ChannelBuffers.push (dart:ui/channel_buffers.dart:329:17)
#22 PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:589:22)
#23 _dispatchPlatformMessage (dart:ui/hooks.dart:89:31)
(elided 5 frames from class _AssertionError and dart:async)
════════════════════════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter_boost/src/boost_channel.dart': Failed assertion: line 50
pos 12: 'containerId.isNotEmpty': is not true.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the Android case using flutter attach and inspect the assertion at package:flutter_boost/src/boost_channel.dart:50. Trace the call from BoostLifecycleBinding.containerDidShow in boost_lifecycle_binding.dart:103 through FlutterBoostAppState.onContainerShow and BoostFlutterRouterApi.onContainerShow. Done means the page still starts normally without the empty-containerId assertion log.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100