HarmonyOS 如何解读Null Pointer dereference闪退类型,是否有最佳实践例子?
如何解读Null Pointer dereference闪退类型,是否有最佳实践例子?
相关闪退日志:
#00 pc 0000000000005990 /system/lib64/module/arkcompiler/stub.an(BCStub_HandleIstrue+32)
#01 at getLog (xxx|@xxx/msc|1.42.62|src/main/ets/utils/logger/Logger.ts:54:54)
#02 at outLog (xxx|@xxx/msc|1.42.62|src/main/ets/utils/logger/Logger.ts:64:64)
#03 at mscLogErrorWithTag (xxx|@xxx/msc|1.42.62|src/main/ets/utils/logger/Logger.ts:38:38)
#04 at getTopPageContainerVM (xxx|@xxx/msc|1.42.62|src/main/ets/modules/pageManager/PageManager.ts:85:85)
#05 at getRouterContext (xxx|@xxx/msc|1.42.62|src/main/ets/modules/pageManager/PageManager.ts:354:354)
#06 at getRouterContext (xxx|@xxx/msc|1.42.62|src/main/ets/interface/IPageManager.ts:128:128)
#07 at getRouterContext (xxx|@xxx/msc|1.42.62|src/main/ets/modules/msi/provider/ContentProvider.ts:332:332)
#08 at getPageInfo (xxx|@xxx/msc|1.42.62|src/main/ets/modules/msi/provider/ContentProvider.ts:271:271)
#09 at anonymous (xxx|@xxx/msc|1.42.62|src/main/ets/modules/msi/provider/ContentProvider.ts:254:254)
#10 at anonymous (xxx|@msi/runtime|1.2.2|src/main/ets/util/common/index.ts:60:60)
#11 at anonymous (xxx|@msi/runtime|1.2.2|src/main/ets/reporter/ApiLog.ts:158:158)
#12 at anonymous (xxx|@msi/runtime|1.2.2|src/main/ets/reporter/ApiLog.ts:32:32)
#13 at generateMetricsParams (xxx|@msi/runtime|1.2.2|src/main/ets/middleware/Logger.ts:22:22)
#14 at run (xxx|@msi/runtime|1.2.2|src/main/ets/middleware/Logger.ts:35:35)
#15 at anonymous (xxx|@msi/runtime|1.2.2|src/main/ets/manager/MiddlewareManager.ts:82:82)
#16 at n1124 (xxx|@msi/runtime|1.2.2|src/main/ets/manager/MiddlewareManager.ts:42:1)
#17 at i1124 (xxx|@msi/runtime|1.2.2|src/main/ets/manager/MiddlewareManager.ts:45:45)
#18 at runSync (xxx|@msi/runtime|1.2.2|src/main/ets/manager/MiddlewareManager.ts:90:90)
#19 at invoke (xxx|@msi/runtime|1.2.2|src/main/ets/ApiPortal.ts:203:1)
#20 at syncInvoke (xxx|@xxx/msc|1.42.62|src/main/ets/modules/msi/executor/MSIAPIExecutor.ts:19:19)
#21 at syncInvoke (xxx|@xxx/msc|1.42.62|src/main/ets/modules/msi/MSIApiPortalManager.ts:33:33)
#22 at syncInvoke (xxx|@xxx/msc|1.42.62|src/main/ets/modules/msi/MSIManagerImpl.ts:22:22)
#23 at onRequest (xxx|@xxx/msc|1.42.62|src/main/ets/interface/IMSIManager.ts:223:223)
#24 at onAcceptMessage (xxx|@xxx/msc|1.42.62|src/main/ets/moduleManager/ModuleManager.ts:56:56)
#25 at onAcceptRequest (xxx|@xxx/msc|1.42.62|src/main/ets/moduleManager/Channel.ts:117:117)
#26 at onRequest (xxx|@xxx/msc|1.42.62|src/main/ets/moduleManager/Channel.ts:102:102)
#27 at anonymous (xxx|@xxx/msc|1.42.62|src/main/ets/moduleManager/Channel.ts:142:142)
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
是否有组件的统一依赖管理最佳实践?
207浏览 • 1回复 待解决
网络监听的最佳实践有哪些?
484浏览 • 1回复 待解决
HarmonyOS jsBridge 最佳实践
313浏览 • 1回复 待解决
HarmonyOS应用闪退问题
736浏览 • 1回复 待解决
HarmonyOS 事件传递最佳实践咨询
68浏览 • 1回复 待解决
HarmonyOS 最佳实践应用导航设计 如何解决目标页面都是组件而不是页面
460浏览 • 1回复 待解决
HarmonyOS 应用开发ArkUI布局最佳实践
42浏览 • 1回复 待解决
闪退和报错日记获取有了解的吗?
2782浏览 • 1回复 待解决
HarmonyOS number toFixed方法闪退
42浏览 • 1回复 待解决
HarmonyOS 使用Webview会闪退
21浏览 • 1回复 待解决
web写入customUseragent最佳实践
273浏览 • 1回复 待解决
HarmonyOS c++线程同步调用js方法有最佳实践吗?
102浏览 • 1回复 待解决
HarmonyOS 沉浸式状态栏最佳实践
313浏览 • 1回复 待解决
分组列表最佳实践,希望提供一个完善的分组列表最佳实践。
1035浏览 • 1回复 待解决
应用内整体换肤的最佳实践
517浏览 • 1回复 待解决
视频和直播播放HarmonyOS最佳实践
842浏览 • 1回复 待解决
输出静态库的最佳实践
262浏览 • 1回复 待解决
HarmonyOS 关于音频播放器的最佳实践
36浏览 • 1回复 待解决
HarmonyOS 申请短时后台任务闪退
41浏览 • 1回复 待解决
HarmonyOS 页面返回时应用闪退报错
631浏览 • 1回复 待解决
HarmonyOS 连接蓝牙耳机通话,应用闪退
85浏览 • 1回复 待解决
HarmonyOS 是否有rsa加解密的例子?
45浏览 • 1回复 待解决
HarmonyOS 有没有比较好的使用@ObservedV2的最佳实践呢,或者更为完整的例子
61浏览 • 1回复 待解决
加载FFMpeg后APP出现闪退
213浏览 • 1回复 待解决
HarmonyOS 单列和瀑布流的最佳实践
281浏览 • 1回复 待解决
最佳实践可以参考文档: https://developer.huawei.com/consumer/cn/doc/best-practices-V5/bpta-cppcrash-guidance-V5
另外,也可以从信号维度分析问题,可参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/cppcrash-guidelines-V5#从信号维度分析问题