HMS-Core / hms-scan-demo

Sample code for demonstrating Huawei HMS ScanKit capabilities. It illustrates how to help developers quickly build code scanning capabilities.
https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/scan-introduction-4?ha_source=hms1
Apache License 2.0
306 stars 56 forks source link

native层报错 #1229002 SIGABRT #01 pc 000000000015a818 /data/user_de/0/com.huawei.android.hsf/modules/external/huawei_module_scankit/20400302/arm64-v8a/libscannative.so [arm64-v #79

Open houweijia opened 2 years ago

houweijia commented 2 years ago

使用的版本是 2.1.0.300

报错日志

00 pc 000000000007066c /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) [arm64-v8a::b91c775ccc9b0556e91bc575a2511cd0]

2

01 pc 000000000015a818 /data/user_de/0/com.huawei.android.hsf/modules/external/huawei_module_scankit/20400303/arm64-v8a/libscannative.so [arm64-v8a::64838cef879dd4de6c7688779befbf22]

3

02 pc 000000000015a970 /data/user_de/0/com.huawei.android.hsf/modules/external/huawei_module_scankit/20400303/arm64-v8a/libscannative.so [arm64-v8a::64838cef879dd4de6c7688779befbf22]

4

03 pc 0000000000157bf4 /data/user_de/0/com.huawei.android.hsf/modules/external/huawei_module_scankit/20400303/arm64-v8a/libscannative.so [arm64-v8a::64838cef879dd4de6c7688779befbf22]

5

04 pc 00000000001572f8 /data/user_de/0/com.huawei.android.hsf/modules/external/huawei_module_scankit/20400303/arm64-v8a/libscannative.so [arm64-v8a::64838cef879dd4de6c7688779befbf22]

6

05 pc 0000000000157278 /data/user_de/0/com.huawei.android.hsf/modules/external/huawei_module_scankit/20400303/arm64-v8a/libscannative.so (__cxa_throw+120) [arm64-v8a::64838cef879dd4de6c7688779befbf22]

7

06 pc 000000000008dafc /data/user_de/0/com.huawei.android.hsf/modules/external/huawei_module_scankit/20400303/arm64-v8a/libscannative.so [arm64-v8a::64838cef879dd4de6c7688779befbf22]

8

07 pc 0000000000004c90 /system/bin/app_process64 [arm64-v8a::e844be217eb39b34490d3798328d1f12]

9

08 pc 0000000000000634 [vdso]

bugly上提示 abort program SIG是信号名的通用前缀。ABRT是abort program的缩写。

当操作系统发现不安全的情况时,它能够对这种情况进行更多的控制,必要的话,它能要求进程进行清理工作。在调试造成此信号的底层错误时,并没有什么妙招。 如 cocos2d 或 UIKit 等框架通常会在特定的前提条件没有满足或一些糟糕的情况出现时调用 C 函数 abort (由它来发送此信号)。

xuxiapu commented 2 years ago

@houweijia 尊敬的开发者,您好, 请升级至2.8.0.300版本,再进行尝试~