HarmonyOS flutter崩溃问题处理

flutter多次销毁重构之后,给切换的一个flutter发消息,就会崩溃,崩溃日志如下,是什么问题造成的。

发送消息的代码:this.channel?.invokeMethod("TdxActivity", "");

#00 pc 00000000002341ac /data/storage/el1/bundle/libs/arm64/libflutter.so(90c2f10c31055d810a7a3d4dacaa91805ddd865a)
#01 pc 0000000000227f78 /data/storage/el1/bundle/libs/arm64/libflutter.so(90c2f10c31055d810a7a3d4dacaa91805ddd865a)
#02 pc 000000000021f728 /data/storage/el1/bundle/libs/arm64/libflutter.so(90c2f10c31055d810a7a3d4dacaa91805ddd865a)
#03 pc 000000000002b948 /system/lib64/platformsdk/libace_napi.z.so(ArkNativeFunctionCallBack(panda::JsiRuntimeCallInfo*)+168)(20e5f1576305d0c6fb1934f4bbe2d1f3)
#04 pc 0000000000140c50 /system/lib64/module/arkcompiler/stub.an
#05 at dispatchPlatformMessage (entry|flutter|1.0.0|src/main/ets/embedding/engine/FlutterNapi.ts:113:13)
#06 at send (entry|flutter|1.0.0|src/main/ets/embedding/engine/dart/DartMessenger.ts:82:17)
#07 at send (entry|flutter|1.0.0|src/main/ets/embedding/engine/dart/DartExecutor.ts:261:9)
#08 at invokeMethod (entry|flutter|1.0.0|src/main/ets/plugin/common/MethodChannel.ts:44:9)
#09 at anonymous (entry|tdxflutter|1.0.0|src/main/ets/flutterUtil/TdxFlutterView.ts:298:13)
#10 at onActivity (entry|tdxcore|1.0.0|src/main/ets/Common/TdxBaseState.ts:49:13)
#11 at onActivity (entry|tdxcore|1.0.0|src/main/ets/Common/TdxBaseState.ts:54:17)
#12 at onActivity (entry|tdxcore|1.0.0|src/main/ets/Common/TdxBaseState.ts:54:17)
#13 at changeIndex (entry|tdxcore|1.0.0|src/main/ets/Common/TdxBaseState.ts:115:17)
#14 at changeSelectTab (entry|tdxtap|1.0.0|src/main/ets/Controller/TdxTapController.ts:208:9)
#15 at anonymous (entry|tdxtap|1.0.0|src/main/ets/Controller/TdxTapController.ts:55:13)
#16 at anonymous (entry|tdxtap|1.0.0|src/main/ets/Common/TdxTabBarItemVIew.ts:113:17)
#17 pc 000000000029e2f8 /system/lib64/platformsdk/libark_jsruntime.so(panda::ecmascript::InterpreterAssembly::Execute(panda::ecmascript::EcmaRuntimeCallInfo*)+408)(c6b7d03bf28ec19f3fdd4cd68a94a2bb)
#18 pc 00000000003e17dc /system/lib64/platformsdk/libark_jsruntime.so(panda::FunctionRef::Call(panda::ecmascript::EcmaVM const*, panda::Local<panda::JSValueRef>, panda::Local<panda::JSValueRef> const*, int)+840)(c6b7d03bf28ec19f3fdd4cd68a94a2bb)
#19 pc 000000000214f988 /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::Framework::JsiFunction::Call(OHOS::Ace::Framework::JsiRef<OHOS::Ace::Framework::JsiValue>, int, OHOS::Ace::Framework::JsiRef<OHOS::Ace::Framework::JsiValue>*) const+192)(d1e2d2334d704c62fcb19a0c7ffa5d83)
#20 pc 0000000001d4fcd4 /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::Framework::JsFunction::ExecuteJS(int, OHOS::Ace::Framework::JsiRef<OHOS::Ace::Framework::JsiValue>*)+284)(d1e2d2334d704c62fcb19a0c7ffa5d83)
#21 pc 0000000001d43810 /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::Framework::JsClickFunction::Execute(OHOS::Ace::GestureEvent const&)+1716)(d1e2d2334d704c62fcb19a0c7ffa5d83)
#22 pc 0000000001d7f840 /system/lib64/platformsdk/libace_compatible.z.so(std::__h::__function::__func<OHOS::Ace::Framework::JSButton::JsOnClick(OHOS::Ace::Framework::JsiCallbackInfo const&)::$_0, std::__h::allocator<OHOS::Ace::Framework::JSButton::JsOnClick(OHOS::Ace::Framework::JsiCallbackInfo const&)::$_0>, void (OHOS::Ace::GestureEvent&)>::operator()(OHOS::Ace::GestureEvent&) (.e27654ad734a21b385193705c3d74fb4)+208)(d1e2d2334d704c62fcb19a0c7ffa5d83)
#23 pc 00000000010a5a90 /system/lib64/platformsdk/libace_compatible.z.so(std::__h::__function::__func<OHOS::Ace::NG::ClickEventActuator::GetClickEvent()::$_0, std::__h::allocator<OHOS::Ace::NG::ClickEventActuator::GetClickEvent()::$_0>, void (OHOS::Ace::GestureEvent&)>::operator()(OHOS::Ace::GestureEvent&) (.39825ea780275da307ab07e871dc526f)+168)(d1e2d2334d704c62fcb19a0c7ffa5d83)
#24 pc 00000000010f1640 /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::NG::ClickRecognizer::SendCallbackMsg(std::__h::unique_ptr<std::__h::function<void (OHOS::Ace::GestureEvent&)>, std::__h::default_delete<std::__h::function<void (OHOS::Ace::GestureEvent&)>>> const&)+1676)(d1e2d2334d704c62fcb19a0c7ffa5d83)
#25 pc 00000000010f043c /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::NG::ClickRecognizer::OnAccepted()+792)(d1e2d2334d704c62fcb19a0c7ffa5d83)
HarmonyOS
8天前
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
shlp

根据崩溃日志中以下信息推测,可能是由于NULL指针引用造成的,请排查下发送消息的代码,this.channel?.invokeMethod("TdxActivity", ""),执行发送消息时是否有指向的对象属性已经被销毁或不存在了。

分享
微博
QQ
微信
回复
8天前
相关问题
HarmonyOS 运行Flutter项目崩溃
148浏览 • 1回复 待解决
鸿蒙webview 崩溃怎么处理
6405浏览 • 1回复 待解决
eglSwapBuffers崩溃问题
573浏览 • 1回复 待解决
HarmonyOS Flutter插件问题
180浏览 • 1回复 待解决
HarmonyOS引用flutter问题
114浏览 • 1回复 待解决
HarmonyOS 崩溃收集问题咨询
585浏览 • 1回复 待解决
HarmonyOS 全局崩溃捕获问题
213浏览 • 1回复 待解决
HarmonyOS 应用崩溃日志问题
512浏览 • 1回复 待解决
HarmonyOS API调用崩溃问题
549浏览 • 1回复 待解决
HarmonyOS flutter_inappwebview问题
124浏览 • 1回复 待解决
HarmonyOS 找不到崩溃日志问题
335浏览 • 1回复 待解决
HarmonyOS 接入崩溃服务-异常问题
603浏览 • 1回复 待解决
HarmonyOS flutter类的问题
108浏览 • 1回复 待解决
HarmonyOS Flutter版本适配问题
118浏览 • 1回复 待解决
HarmonyOS so库的崩溃反解如何处理
85浏览 • 1回复 待解决
HarmonyOS Flutter项目开发相关问题
132浏览 • 1回复 待解决
HarmonyOSFlutter】插件使用问题咨询
145浏览 • 1回复 待解决
HarmonyOS 关于flutter开发问题
121浏览 • 1回复 待解决
Flutter - EventChannel回调问题
320浏览 • 1回复 待解决
Flutter 开发资料相关问题
574浏览 • 1回复 待解决
HarmonyOS flutter plugin开发联调问题
148浏览 • 1回复 待解决
flutter混合遇到的问题
446浏览 • 1回复 待解决
咨询下Flutter工程问题
336浏览 • 1回复 待解决