HarmonyOS flutter module构建release版本har使用多引擎打开的flutter页面在某些场景下循环打印报错,且UI无法正常展示

flutter_flutter分支dev,flutter module通过命令flutter build har --release构建release版本的har。通过native工程引用har,打开在老版本的debug模式下可以正常打开的dart页面,页面无法正常展示,日志中反复打印如下报错内容:

06-24 16:54:52.783   56478-56478  C03900/Ace          E     [jsi_base_utils.cpp(JsLogPrint)-(100000:100000:scope)] FIX THIS APPLICATION ERROR
06-24 16:54:52.783   56478-56478  C03900/Ace          E      @Component 'FlutterPage'[16]: State variable 'nodeController' has changed during render! It's illegal to change @Component state while build (initial render or re-render) is on-going. Application error!
06-24 16:54:52.797   56478-56478  C03900/Ace       E     [jsi_base_utils.cpp(JsLogPrint)-(100000:100000:scope)] FIX THIS APPLICATION ERROR
HarmonyOS
1天前
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
aquaa
@Component 'FlutterPage'[16]: State variable 'nodeController' has changed during render! It's illegal to change @Component state while build (initial render or re-render) is on-going. Application error! 

debug运行正常,release运行不显示UI界面的情况,是代码混淆导致的。

关闭代码混淆后,在本地运行release模式,验证是否能正常显示UI界面。如果关闭混淆后可以显示,就说明是代码混淆导致的问题。需要检查ohos中和flutter相关的est代码是否被混淆了。

分享
微博
QQ
微信
回复
1天前
相关问题
HarmonyOS 无法使用flutter_html 2.x版本
31浏览 • 1回复 待解决
HarmonyOSflutter无法打开摄像头
60浏览 • 1回复 待解决
flutter url_launcherHarmonyOS报错
37浏览 • 1回复 待解决
HarmonyOS 使用flutter创建packages时报错
41浏览 • 1回复 待解决
HarmonyOS 编译flutter报错
31浏览 • 1回复 待解决
HarmonyOS Flutter版本适配问题
48浏览 • 1回复 待解决
HarmonyOS 如何打开多个flutter界面
31浏览 • 1回复 待解决
HarmonyOS webview_flutter报错
73浏览 • 1回复 待解决