HarmonyOS 鸿蒙的错误分析怎么看啊
HarmonyOS 鸿蒙的错误分析怎么看啊
下面这段错误,哪里有具体说明位置了,就不能像Android一样把具体位置指明吗 ………
这个是调用系统加解密时报错的,请问有人知道咋回事?
Device info:emulator
Build info:emulator 4.1.0.67(DEVC00E67R4P11log)
Fingerprint:1238aa6b07158d6a636891eb0e63463def8bf0fafd842936b7fea1c20204284c
Module name:com.example.hbcanner_hm
Version:1.0.0
VersionCode:1000000
PreInstalled:No
Foreground:Yes
Timestamp:2024-04-07 18:01:02.421
Pid:15580
Uid:20020033
Process name:com.example.hbcanner_hm
Reason:Signal:SIGSEGV(SEGV_MAPERR)@0x0000000000000070 probably caused by NULL pointer dereference
Fault thread Info:
Tid:15605, Name:ple.hbcanner_hm
#00 pc 0000000000311196 /system/lib64/chipset-pub-sdk/libcrypto_openssl.z.so(EVP_CIPHER_CTX_set_padding+70)(7291138c2fde3e6d1c79c8b516f1e13b)
#01 pc 0000000000035dc6 /system/lib64/platformsdk/libcrypto_openssl_plugin_lib.z.so(7fe31d85dd1d9486203b84ec12ca038f)
#02 pc 0000000000018b15 /system/lib64/module/security/libcryptoframework_napi.z.so(df78b46e2eac852554011d94aa429577)
#03 pc 0000000000050305 /system/lib64/platformsdk/libace_napi.z.so(NativeAsyncWork::AsyncWorkCallback(uv_work_s*)+197)(19e93c5b5dd3c64c2d49e1787c064b5f)
#04 pc 00000000000159fc /system/lib64/platformsdk/libuv.so(97aa20cec7cddf74b13f681315cff7eb)
#05 pc 0000000000114ab7 /system/lib/ld-musl-x86_64.so.1(70f5e1a4df8aa3510e8ec8132b8f901f)
#06 pc 000000000008728e /system/lib/ld-musl-x86_64.so.1(70f5e1a4df8aa3510e8ec8132b8f901f)
Registers:
rax:0000000000000000 rdx:00007f36ceaa65f0 rcx:fffffffffffffeff rbx:0000000000000000
rsi:0000000000000001 rdi:0000000000000000 rbp:00007f36d252f5f0 rsp:00007f363512a850
r8:0000000000000000 r9:0000000000000000 r10:0000000000000000 r11:0000000000000000
r12:0000000000000001 r13:00007f36d2ab1aa0 r14:00007f36ce4f66f0 r15:0000000000000000 rip:00007f36d2411196
大佬,最后解决了吗
问了官方技术支持,我这个是因为异步方法,当作同步方法调用,导致的问题。 init是异步方法 加解密要在init方法完成后才能调用 可以在init方法前加await也可以把加解密写在callback里面
嗯…我试试
没用,catch不住,而且值应该也是对的,同样的代码同样的参数,有时解密成功有时解密失败有时还会这样崩溃,就神奇,不知道怎么搞