We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编译x86_64和arm64_v8a都成功,用作人脸识别时,在x86_64和arm64_v8a都报如下错误并闪退
access denied finding property "ro.hardware.chipname"
macOS 13.3.1 上编译 x86_64 和 arm64_v8a
MNN 2.5.0
#!/bin/bash ./schema/generate.sh export ANDROID_NDK=/Users/jack/Library/Android/sdk/ndk/21.4.7075529 rm -rf build mkdir build cd build function build_android { mkdir $PREFIX cd $PREFIX cmake ../../../ -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE=Release \ -DANDROID_ABI=$ABI -DANDROID_STL=c++_shared -DANDROID_NATIVE_API_LEVEL=android-21 \ -DANDROID_TOOLCHAIN=clang -DMNN_USE_LOGCAT=OFF -DMNN_SEP_BUILD=OFF -DMNN_BUILD_FOR_ANDROID_COMMAND=ON -DNATIVE_LIBRARY_OUTPUT=. \ -DNATIVE_INCLUDE_OUTPUT=. -DMNN_VULKAN=OFF -DMNN_OPENCL=OFF -DMNN_USE_THREAD_POOL=ON -DMNN_BUILD_SHARED_LIBS=ON \ -DMNN_BUILD_CONVERTER=OFF $EXTRCMAKEFLAG ../../ make -j8 cd .. } arm64-v8a PREFIX=arm64-v8a ABI="arm64-v8a" EXTRCMAKEFLAG=-DMNN_ARM82=ON build_android #x86_64 PREFIX=x86_64 ABI="x86_64" EXTRCMAKEFLAG=-DMNN_USE_SSE=OFF build_android
运行日志:
W/libc (15350): Access denied finding property "ro.hardware.chipname" F/libc (15350): Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7626bfaff000 in tid 15450 (1.ui), pid 15350 (om.itaima.app02)
Build fingerprint: 'google/sdk_gphone64_x86_64/emulator64_x86_64_arm64:12/SE1A.211012.001/7818354:userdebug/dev-keys' Revision: '0' ABI: 'x86_64' Timestamp: 2023-04-28 07:55:54.326530000+0800 Process uptime: 0s Cmdline: com.itaima.app02 pid: 15350, tid: 15450, name: 1.ui >>> com.itaima.app02 <<< uid: 10155 signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7626bfaff000 rax 0000000000038420 rbx 00000000000000fa rcx 0000000000038130 rdx 00007626dcbfa690 r8 0000000000000100 r9 0000000000000100 r10 00000000000000f0 r11 00000000000000fe r12 00007626bfac6be0 r13 00007628537a25b3 r14 0000000000000100 r15 00000000000002d0 rdi 00000000000000ef rsi 00007628537a25b0 rbp 000000000000013f rsp 00007626dcbfa4d0 rip 00007626becd2179 backtrace: #00 pc 0000000000179179 /data/app/~~vRjESfc0IpDu3NW4zsscFQ==/com.itaima.app02--7RbiPBFKffa_q4BrwnwTQ==/base.apk!libMNN.so (BuildId: f1d9d02183eb5891f32c4c636fb4e01ac6425651) #1 pc 000000000010893a /data/app/~~vRjESfc0IpDu3NW4zsscFQ==/com.itaima.app02--7RbiPBFKffa_q4BrwnwTQ==/base.apk!libMNN.so (BuildId: f1d9d02183eb5891f32c4c636fb4e01ac6425651) #2 pc 00000000000611a9 /data/app/~~vRjESfc0IpDu3NW4zsscFQ==/com.itaima.app02--7RbiPBFKffa_q4BrwnwTQ==/base.apk!libMNN.so (MNN::CV::ImageProcess::convert(unsigned char const*, int, int, int, void*, int, int, int, int, halide_type_t)+553) (BuildId: f1d9d02183eb5891f32c4c636fb4e01ac6425651) #3 pc 0000000000060f1c /data/app/~~vRjESfc0IpDu3NW4zsscFQ==/com.itaima.app02--7RbiPBFKffa_q4BrwnwTQ==/base.apk!libMNN.so (MNN::CV::ImageProcess::convert(unsigned char const*, int, int, int, MNN::Tensor*)+572) (BuildId: f1d9d02183eb5891f32c4c636fb4e01ac6425651) #4 pc 000000000000c6f5 /data/app/~~vRjESfc0IpDu3NW4zsscFQ==/com.itaima.app02--7RbiPBFKffa_q4BrwnwTQ==/base.apk!libfacensfw.so (Inference_engine::infer_img_face(unsigned char*, int, int, int, int, int, Inference_engine_tensor&)+693) (BuildId: 12aac515590e1a4784025fddb1fdfbb31289592a) #5 pc 00000000000130a4 /data/app/~~vRjESfc0IpDu3NW4zsscFQ==/com.itaima.app02--7RbiPBFKffa_q4BrwnwTQ==/base.apk!libfacensfw.so (UltraFace::detect_face(unsigned char*, int, int, int, std::__ndk1::vector<FaceInfo, std::__ndk1::allocator >&)+244) (BuildId: 12aac515590e1a4784025fddb1fdfbb31289592a) #6 pc 000000000001eaed /data/app/~~vRjESfc0IpDu3NW4zsscFQ==/com.itaima.app02--7RbiPBFKffa_q4BrwnwTQ==/base.apk!libfacensfw.so (detectFaceMem+205) (BuildId: 12aac515590e1a4784025fddb1fdfbb31289592a) #7 pc 00000000000063ea [anon:dart-code]
The text was updated successfully, but these errors were encountered:
这个错误不影响运行结果的,与闪退无关。闪退原因是 convert 传入的 src 有问题(一般是地址无效或者不够大),建议先在 PC 上调通代码
Sorry, something went wrong.
知道了,谢谢!
No branches or pull requests
编译x86_64和arm64_v8a都成功,用作人脸识别时,在x86_64和arm64_v8a都报如下错误并闪退
access denied finding property "ro.hardware.chipname"
平台(如果交叉编译请再附上交叉编译目标平台):
Platform(Include target platform as well if cross-compiling):
macOS 13.3.1 上编译 x86_64 和 arm64_v8a
Github版本:
Github Version:
MNN 2.5.0
编译方式:
Compiling Method
运行日志:
W/libc (15350): Access denied finding property "ro.hardware.chipname"
F/libc (15350): Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7626bfaff000 in tid 15450 (1.ui), pid 15350 (om.itaima.app02)
Build fingerprint: 'google/sdk_gphone64_x86_64/emulator64_x86_64_arm64:12/SE1A.211012.001/7818354:userdebug/dev-keys'
Revision: '0'
ABI: 'x86_64'
Timestamp: 2023-04-28 07:55:54.326530000+0800
Process uptime: 0s
Cmdline: com.itaima.app02
pid: 15350, tid: 15450, name: 1.ui >>> com.itaima.app02 <<<
uid: 10155
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7626bfaff000
rax 0000000000038420 rbx 00000000000000fa rcx 0000000000038130 rdx 00007626dcbfa690
r8 0000000000000100 r9 0000000000000100 r10 00000000000000f0 r11 00000000000000fe
r12 00007626bfac6be0 r13 00007628537a25b3 r14 0000000000000100 r15 00000000000002d0
rdi 00000000000000ef rsi 00007628537a25b0
rbp 000000000000013f rsp 00007626dcbfa4d0 rip 00007626becd2179
backtrace:
#00 pc 0000000000179179 /data/app/~~vRjESfc0IpDu3NW4zsscFQ==/com.itaima.app02--7RbiPBFKffa_q4BrwnwTQ==/base.apk!libMNN.so (BuildId: f1d9d02183eb5891f32c4c636fb4e01ac6425651)
#1 pc 000000000010893a /data/app/~~vRjESfc0IpDu3NW4zsscFQ==/com.itaima.app02--7RbiPBFKffa_q4BrwnwTQ==/base.apk!libMNN.so (BuildId: f1d9d02183eb5891f32c4c636fb4e01ac6425651)
#2 pc 00000000000611a9 /data/app/~~vRjESfc0IpDu3NW4zsscFQ==/com.itaima.app02--7RbiPBFKffa_q4BrwnwTQ==/base.apk!libMNN.so (MNN::CV::ImageProcess::convert(unsigned char const*, int, int, int, void*, int, int, int, int, halide_type_t)+553) (BuildId: f1d9d02183eb5891f32c4c636fb4e01ac6425651)
#3 pc 0000000000060f1c /data/app/~~vRjESfc0IpDu3NW4zsscFQ==/com.itaima.app02--7RbiPBFKffa_q4BrwnwTQ==/base.apk!libMNN.so (MNN::CV::ImageProcess::convert(unsigned char const*, int, int, int, MNN::Tensor*)+572) (BuildId: f1d9d02183eb5891f32c4c636fb4e01ac6425651)
#4 pc 000000000000c6f5 /data/app/~~vRjESfc0IpDu3NW4zsscFQ==/com.itaima.app02--7RbiPBFKffa_q4BrwnwTQ==/base.apk!libfacensfw.so (Inference_engine::infer_img_face(unsigned char*, int, int, int, int, int, Inference_engine_tensor&)+693) (BuildId: 12aac515590e1a4784025fddb1fdfbb31289592a)
#5 pc 00000000000130a4 /data/app/~~vRjESfc0IpDu3NW4zsscFQ==/com.itaima.app02--7RbiPBFKffa_q4BrwnwTQ==/base.apk!libfacensfw.so (UltraFace::detect_face(unsigned char*, int, int, int, std::__ndk1::vector<FaceInfo, std::__ndk1::allocator >&)+244) (BuildId: 12aac515590e1a4784025fddb1fdfbb31289592a)
#6 pc 000000000001eaed /data/app/~~vRjESfc0IpDu3NW4zsscFQ==/com.itaima.app02--7RbiPBFKffa_q4BrwnwTQ==/base.apk!libfacensfw.so (detectFaceMem+205) (BuildId: 12aac515590e1a4784025fddb1fdfbb31289592a)
#7 pc 00000000000063ea [anon:dart-code]
The text was updated successfully, but these errors were encountered: