HarmonyOS 鸿蒙Next使用router跳转页面程序崩溃
HarmonyOS 鸿蒙Next使用router跳转页面程序崩溃
使用next beta进行开发时遇到一个问题,在entry模块中通过router调用feature模块page页面,程序崩溃。
entry模块中有引入feature模块,main_pages中也有注册页面,router跳转填写url正确,编译打包时deploy multi hap也有设置
报错信息如下:
Device info:emulator
Build info:emulator 5.0.0.25(SP63DEVC00E25R4P11log)
Fingerprint:39e00fb1bfa07d0098a25ad7150f6fbe00dffd1a172653121bc090df23ed8d3b
Module name:com.ciyun.lovepolice
Version:3.0.0
VersionCode:3
PreInstalled:No
Foreground:No
Timestamp:2024-06-27 11:40:31.617
Pid:9943
Uid:20020037
Process name:com.ciyun.lovepolice
Process life time:6s
Reason:Signal:SIGABRT(SI_TKILL)@0x01317b45000026d7 from:9943:20020037
LastFatalMessage:[default] [LoadJSPandaFile:100] resolveBufferCallback get hsp buffer failed, hsp path:/data/storage/el1/bundle/personal/ets/modules.abc
Fault thread info:
Tid:9943, Name:iyun.lovepolice
#00 pc 00000000000fd1bd /system/lib/ld-musl-x86_64.so.1(raise+141)(172e2ecbd625438924ccb062390f19f1)
#01 pc 00000000000a4f31 /system/lib/ld-musl-x86_64.so.1(abort+17)(172e2ecbd625438924ccb062390f19f1)
#02 pc 00000000003d178e /system/lib64/platformsdk/libark_jsruntime.so(c179278aa1591bf6af94929bcf01a25e)
#03 pc 00000000003f07e5 /system/lib64/platformsdk/libark_jsruntime.so(c179278aa1591bf6af94929bcf01a25e)
#04 pc 000000000054f58d /system/lib64/platformsdk/libark_jsruntime.so(panda::JSNApi::Execute(panda::ecmascript::EcmaVM const*, std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, bool, bool)+1101)(c179278aa1591bf6af94929bcf01a25e)
#05 pc 00000000028cec09 /system/lib64/platformsdk/libace_compatible.z.so(147d82f01d8702a69b8b03a0ab12cb2f)
#06 pc 00000000027c6c37 /system/lib64/platformsdk/libace_compatible.z.so(147d82f01d8702a69b8b03a0ab12cb2f)
#07 pc 00000000027c71c6 /system/lib64/platformsdk/libace_compatible.z.so(147d82f01d8702a69b8b03a0ab12cb2f)
#08 pc 0000000000f5f379 /system/lib64/platformsdk/libace_compatible.z.so(147d82f01d8702a69b8b03a0ab12cb2f)
#09 pc 0000000000f8b83a /system/lib64/platformsdk/libace_compatible.z.so(147d82f01d8702a69b8b03a0ab12cb2f)
#10 pc 0000000000f9729e /system/lib64/platformsdk/libace_compatible.z.so(147d82f01d8702a69b8b03a0ab12cb2f)
#11 pc 0000000001161da4 /system/lib64/platformsdk/libace_compatible.z.so(147d82f01d8702a69b8b03a0ab12cb2f)
#12 pc 0000000000015f9d /system/lib64/chipset-pub-sdk/libeventhandler.z.so(OHOS::AppExecFwk::EventHandler::DistributeEvent(std::__h::unique_ptr<OHOS::AppExecFwk::InnerEvent, void ()(OHOS::AppExecFwk::InnerEvent)> const&)+1277)(c12b61703df4d66a1802f90b475c0ddd)
#13 pc 0000000000024ecf /system/lib64/chipset-pub-sdk/libeventhandler.z.so(c12b61703df4d66a1802f90b475c0ddd)
#14 pc 00000000000245bd /system/lib64/chipset-pub-sdk/libeventhandler.z.so(c12b61703df4d66a1802f90b475c0ddd)
#15 pc 00000000000276e5 /system/lib64/chipset-pub-sdk/libeventhandler.z.so(OHOS::AppExecFwk::EventRunner::Run()+181)(c12b61703df4d66a1802f90b475c0ddd)
#16 pc 00000000000bf68e /system/lib64/platformsdk/libappkit_native.z.so(OHOS::AppExecFwk::MainThread::Start()+894)(5b9f1467ea7d76bccbf320034f6e3484)
#17 pc 0000000000004e34 /system/lib64/appspawn/appspawn/libappspawn_ace.z.so(571088929e5514cd6112bf6949f8c558)
#18 pc 0000000000008bf7 /system/bin/appspawn(2bba052ff2bd06a652486600c626446b)
#19 pc 00000000000089cb /system/bin/appspawn(2bba052ff2bd06a652486600c626446b)
#20 pc 000000000000f162 /system/bin/appspawn(2bba052ff2bd06a652486600c626446b)
#21 pc 000000000000eaaa /system/bin/appspawn(2bba052ff2bd06a652486600c626446b)
关于HarmonyOS 鸿蒙Next使用router跳转页面程序崩溃的问题,您也可以访问:https://www.itying.com/category-93-b0.html 联系官网客服。
更多关于HarmonyOS 鸿蒙Next使用router跳转页面程序崩溃的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
更多关于HarmonyOS 鸿蒙Next使用router跳转页面程序崩溃的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
看看modules.abc文件是否存在于/data/storage/el1/bundle/personal/ets/路径,并且没被损坏,
找不到这个路径
总的来说,HarmonyOS是一款非常优秀的操作系统,期待它能在未来带给我们更多惊喜!
已经放弃了,换了其他调用方式
其他什么方式,可以说说么
router不能跳har,只能跳hsp和hap。所以跟换了动态库