openkraken / kraken

A web standards-compliant, high-performance rendering engine based on Flutter.
https://openkraken.com
Apache License 2.0
4.92k stars 305 forks source link

刷新北海页面出现问题 #1422

Open Poker-J opened 2 years ago

Poker-J commented 2 years ago

使用的 Kraken 版本 | What version of kraken are you using

kraken: 0.10.2+1

重现步骤 | Steps To Reproduce

'package:flutter/src/widgets/framework.dart': Failed assertion: line 3820 pos 12: '_lifecycleState == _ElementLifecycle.active': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause. In either case, please report this assertion by filing a bug on GitHub: https://github.com/flutter/flutter/issues/new?template=2_bug.md

重现代码 | Code example:

预期结果 | Expected results:

实际结果 | Actual results:

answershuto commented 2 years ago

用了 custom element 吗?什么情况下会出现,看起来是 Flutter Element 的断言错误

Poker-J commented 2 years ago

你是用flutter 给北海定义的组件吗

Poker-J commented 2 years ago

我给你模拟给场景 比如首页tab页面下全是北海页面 然后跳转到登陆页面 登录成功之后调用路由那个清除路由并跳转到首页 就会出现这个错误

Poker-J commented 2 years ago

排查了下 我们flutter给北海定义了一个轮播图组件 导致了这个错误 这种轮播组件定义是否需要什么特殊的写法?

xuzhongpeng commented 2 years ago

@Poker-J 能否提供一个最小复现demo