HarmonyOS 运行Flutter项目崩溃

运行Flutter项目崩溃,报错如下:

Process life time:1s
Reason:Signal:SIGSEGV(SEGV_MAPERR)@0x0000000000000660  probably caused by NULL pointer dereference
Fault thread info:
  Tid:47096, Name:u.myapplication
#00 pc 00000000001f7ba4 /data/storage/el1/bundle/libs/arm64/libflutter.so(195e02c04db4043735c854f1be675d708aaf4cd8)
#01 pc 00000000001f7b98 /data/storage/el1/bundle/libs/arm64/libflutter.so(195e02c04db4043735c854f1be675d708aaf4cd8)
#02 pc 00000000001f0a40 /data/storage/el1/bundle/libs/arm64/libflutter.so(195e02c04db4043735c854f1be675d708aaf4cd8)
#03 pc 00000000000341f4 /system/lib64/platformsdk/libace_napi.z.so(panda::JSValueRef ArkNativeFunctionCallBack<true>(panda::JsiRuntimeCallInfo*)+220)(9c97d173ea060df8c1c6e0fe75082936)
#04 pc 00000000002dc680 /system/lib64/module/arkcompiler/stub.an(RTStub_PushCallArgsAndDispatchNative+40)
#05 at attachToNative (oh_modules/.ohpm/@ohos+flutter_ohos@m08ahk0j7micugiq7+stxrsads4=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterNapi.ets:78:32)
#06 at attachToNapi (oh_modules/.ohpm/@ohos+flutter_ohos@m08ahk0j7micugiq7+stxrsads4=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngine.ets:144:5)
#07 at init (oh_modules/.ohpm/@ohos+flutter_ohos@m08ahk0j7micugiq7+stxrsads4=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngine.ets:133:7)
HarmonyOS
1天前
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
shlp

更新最新flutter_flutter dev代码,进入工程根目录尝试重新执行运行指令,最新的lutter_flutter的dev分支,编译和运行不需要传–local-engine参数了。

flutter run --local-engine=<DIR>/src/out/ohos_debug_unopt_arm64 -d <device-id>
分享
微博
QQ
微信
回复
1天前
相关问题
HarmonyOS 项目接入flutter后无法运行
62浏览 • 1回复 待解决
HarmonyOS 创建Flutter demo运行报错
37浏览 • 1回复 待解决
HarmonyOS Flutter项目开发相关问题
37浏览 • 1回复 待解决
新建HarmonyOS项目运行不起来
208浏览 • 1回复 待解决
HarmonyOS 项目更换包名后,运行失败
49浏览 • 1回复 待解决
在虚拟机上运行不了鸿蒙项目
6710浏览 • 1回复 待解决
CJSON编译出的库链接运行崩溃
227浏览 • 1回复 待解决
运行flutter doctor -v后显示错误代码
1091浏览 • 1回复 待解决
目前项目有很多未定义的崩溃
206浏览 • 1回复 待解决
Flutter 项目在设备安全区如何适配?
212浏览 • 1回复 待解决