alibaba / flutter_boost

FlutterBoost is a Flutter plugin which enables hybrid integration of Flutter for your existing native apps with minimum efforts
https://github.com/alibaba/flutter_boost
MIT License
6.96k stars 1.23k forks source link

[Bug]: Release模式下Flutter页面崩溃。Can't show file for stack frame : <DBGLLDBStackFrame: 0x382dbac00> - stackNumber:2 - name:TextPainter.layout [inlined]. The file path does not exist on the file system: /dart:ui/text.dart #2143

Open yzxcool123 opened 3 hours ago

yzxcool123 commented 3 hours ago

请描述遇到的问题,以及您所期望的正确的结果

debug一切正常,当打包后安装到手机上或者直接在release模式下run,在APP进入Flutter页面后,进行比如切换TabBar这样的操作,就可能会发生崩溃,并不一定是每次都崩溃,但是概率挺大。在release模式下单独运行Flutter工程也没有问题,只是在iOS native中运行的时候才这样。控制台打印信息:Can't show file for stack frame : <DBGLLDBStackFrame: 0x382dbac00> - stackNumber:2 - name:TextPainter.layout [inlined]. The file path does not exist on the file system: /dart:ui/text.dart

image

https://github.com/user-attachments/assets/2e27a469-550c-49cc-96eb-10a509d9dea6

请说明如何操作会遇到上述问题

No response

在下面填入关键复现代码

复现的平台

iOS

Flutter SDK版本

3.22.3

FlutterBoost版本

4.6.4

是否延迟初始化FlutterBoost

No

解决方案

No response

yzxcool123 commented 3 hours ago
image