HarmonyOS Next运行cpp崩溃该怎么排查?
看日志是崩溃在主线程,而且没有我自己动态库的堆栈信息:
Device info:emulatorBuild info:emulator 4.1.0.56(DEVC00E56R4P1log)Fingerprint:66ff87023e7acbc48b8d1aecf87e13967a10e3ed292c55f32a94cb73567e45b4Module name:com.qing.sdkVersion:1.0.0VersionCode:1000000PreInstalled:NoForeground:YesTimestamp:2024-04-09 14:12:13.698Pid:26632Uid:20020041Process name:com.qing.sdkReason:Signal:SIGSEGV(SEGV_MAPERR)@0x46c2fd00450cc400 Fault thread Info:Tid:26632, Name:com.qing.sdk#00 pc 00000000011a270c /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#01 pc 00000000011a289c /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#02 pc 00000000011a3338 /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#03 pc 00000000011a13b0 /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#04 pc 00000000011a0730 /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#05 pc 0000000000f639d8 /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#06 pc 0000000000f582d4 /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#07 pc 00000000009a8824 /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#08 pc 00000000009a8ea4 /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#09 pc 000000000098f5b0 /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#10 pc 000000000094c60c /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#11 pc 000000000094e190 /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#12 pc 0000000000893310 /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#13 pc 00000000008932b0 /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#14 pc 0000000000a37b24 /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#15 pc 0000000000a3793c /system/lib64/platformsdk/libace_compatible.z.so(1759b483c398af5e439827bf6ff2905f)#16 pc 000000000009e8f0 /system/lib64/libwm.z.so(OHOS::Rosen::VsyncStation::VsyncCallbackInner(long)+344)(6927b2f8eef737780b3f671993606847)#17 pc 000000000009e3ac /system/lib64/libwm.z.so(6927b2f8eef737780b3f671993606847)#18 pc 00000000000174d4 /system/lib64/libvsync.z.so(OHOS::Rosen::VSyncCallBackListener::OnReadable(int)+904)(970d78b85ad978f913c6a3b1f3def305)#19 pc 0000000000014b44 /system/lib64/chipset-pub-sdk/libeventhandler.z.so(1dcc3f24bc79124c5c40338fa4205761)#20 pc 0000000000012938 /system/lib64/chipset-pub-sdk/libeventhandler.z.so(OHOS::AppExecFwk::EventHandler::DistributeEvent(std::__h::unique_ptr<OHOS::AppExecFwk::InnerEvent, void (*)(OHOS::AppExecFwk::InnerEvent*)> const&)+840)(1dcc3f24bc79124c5c40338fa4205761)#21 pc 000000000001d7ec /system/lib64/chipset-pub-sdk/libeventhandler.z.so(1dcc3f24bc79124c5c40338fa4205761)#22 pc 000000000001f65c /system/lib64/chipset-pub-sdk/libeventhandler.z.so(OHOS::AppExecFwk::EventRunner::Run()+100)(1dcc3f24bc79124c5c40338fa4205761)#23 pc 0000000000070f48 /system/lib64/platformsdk/libappkit_native.z.so(OHOS::AppExecFwk::MainThread::Start()+708)(94330b8925a9e6b22a4ea57e84134b66)#24 pc 0000000000011030 /system/bin/appspawn(f835d8ac8a017168127045263ddcca76)#25 pc 00000000000336a8 /system/bin/appspawn(f835d8ac8a017168127045263ddcca76)#26 pc 0000000000033518 /system/bin/appspawn(f835d8ac8a017168127045263ddcca76)#27 pc 000000000003020c /system/bin/appspawn(f835d8ac8a017168127045263ddcca76)#28 pc 0000000000017b8c /system/lib64/chipset-pub-sdk/libbegetutil.z.so(5b9333ae8da2ec55e281a1a2a6165325)#29 pc 0000000000017830 /system/lib64/chipset-pub-sdk/libbegetutil.z.so(5b9333ae8da2ec55e281a1a2a6165325)#30 pc 00000000000153ac /system/lib64/chipset-pub-sdk/libbegetutil.z.so(5b9333ae8da2ec55e281a1a2a6165325)#31 pc 0000000000014fc4 /system/lib64/chipset-pub-sdk/libbegetutil.z.so(5b9333ae8da2ec55e281a1a2a6165325)#32 pc 000000000002ec60 /system/bin/appspawn(f835d8ac8a017168127045263ddcca76)#33 pc 000000000001f034 /system/bin/appspawn(f835d8ac8a017168127045263ddcca76)#34 pc 00000000000876fc /system/lib/ld-musl-aarch64.so.1(f53778d3455c921f0e7b0f1426816b31)#35 pc 00000000000104cc /system/bin/appspawn(f835d8ac8a017168127045263ddcca76)Registers:x0:0000007f30b75600 x1:0000007f31e797a8 x2:0000000000000001 x3:0000007ff5676dd8x4:0000007ff5676aa3 x5:65764572656e6e49 x6:65764572656e6e49 x7:746e65764572656ex8:0000000000000000 x9:0000007f30b75690 x10:0000000000000000 x11:46c2fd00450cc400x12:0000007f30b75690 x13:000000558cebf354 x14:0000000000000000 x15:0000000000000000x16:0000007fbd434830 x17:0000007fbec81ec0 x18:0000000000000000 x19:0000007f30b75600x20:0000007fb7220510 x21:0000007f31950000 x22:0000000000000000 x23:0000000000000000x24:0000000000000000 x25:0000007ff5677258 x26:0000007f30b75660 x27:0000007f30b75690x28:0000007fb748ad90 x29:0000007ff5676df8lr:0000007f329e2500 sp:0000007ff5676db0 pc:0000007f329e270cOther thread info:Tid:26633, Name:IPC_0_26633
HarmonyOS Next运行cpp崩溃排查通常涉及以下几个步骤:
libace_compatible.z.so
这个共享库中,具体的位置是pc 00000000011a270c
。libace_compatible.z.so
开始,一直到appspawn
。这可以帮助你定位问题发生的具体位置。Tid:26633, Name:IPC_0_26633
),你还需要检查是否存在多线程相关的问题,如数据竞争、死锁等。综上所述,你需要结合日志、调试工具、代码审查等多种手段来排查HarmonyOS Next中的cpp崩溃问题。这可能是一个复杂的过程,需要耐心和细心。
我试图在选项菜单中从主菜单调用另一个活动。当我从自己的选项菜单中调用主活动时,它将正常工作,但调用另一个意图将产生异常,应用程序将崩溃。我使用了try and catch,发现当它到达这条线时会崩溃: 下面是我的主java文件和应用程序清单文件。 } 对于manirfest: Logcat:
本文向大家介绍Android application捕获崩溃异常怎么办,包括了Android application捕获崩溃异常怎么办的使用技巧和注意事项,需要的朋友参考一下 Android application捕获崩溃异常怎么办? 通用 application 1、收集所有 avtivity 用于彻底退出应用 2、捕获崩溃异常,保存错误日志,并重启应用 以上就是本文的全部内容,希望对大家的学习
HarmonyOS Next升级到Preview2后Contacts Kit中枚举值和之前不一样是怎么回事? 自定义邮箱类型,CUSTOM_LABEL的值,从之前的10000改为0,这是怎么回事?
HarmonyOS Next开发中ArkTs是否支持AOP? 想类似于Android中实现切面编程,比如在方法前后增加日志,统计方法耗时等
A设备利用startAbility拉起B设备的UIAbility时,A设备page里的代码如下: A设备UIAbility的onContinue如下: 我在startAbility时已经保存了参数,onContinue里还需要保存吗?如果需要,应该怎么写才能保存参数? 目前onContinue还没写,A设备startAbility时会报错,错误码401,官网文档错误码链接:通用错误码401
我已经使用Sourceforge存储库在我的Raspberry Pi上编译了OpenCV 2.4.6。我使用以下命令安装它: 我编译时没有错误。我正在使用人脸识别API从通过Raspberry Pi摄像头模块捕获的视频中识别人脸。我正在使用一个名为RaspiCam的C API从相机捕获帧,它与OpenCV兼容,允许您将捕获的帧保存为OpenCV Mat对象。API的文档位于http://www.u