MNN
MNN copied to clipboard
android平台运行NPU推理闪退问题
平台(如果交叉编译请再附上交叉编译目标平台):
Platform(Include target platform as well if cross-compiling):
使用arm64-v8a版本在mate 40 pro(麒麟9000,NPU vertion 100.511.020.100)手机安装MNN的NPU运行环境。 但是运行时cpu推理运行正常。npu推理时app出现闪退情况。 按照语雀的文档说明,将libMNN_NPU.so, libhiai_ir_build.so, libhiai_ir.so, libhiai.so动态加载。运行时提示缺少libhiai_om.so 以及libc++.so的动态库。动态加载这两个库后还是不能正常运行。
错误日志:
查看log的时候出现如下错误
I/WZT_MNN: model path:/data/user/0/com.tencent.yolomnn/cache/inception.mnn
I/WZT_MNN: Start to load session
I/AI_FMK: /initializer.cpp Init(45)::"load cl libs:libcpucl.so"
I/HCL_INTERFACE: openned libhcl.so success
libhcl.so load symbols success
HclItfObj inited success
I/ENGINE: RegisterTensor(112)::"Tensor register success! type is :AISimpleTensor. "
RegisterTensor(112)::"Tensor register success! type is :AINeuralNetworkBuffer. "
RegisterTensor(112)::"Tensor register success! type is :AIImageBuffer. "
I/ENGINE: RegisterTensor(112)::"Tensor register success! type is :AINeuralNetworkBuffer. "
I/AINeuralNetworkBufferHIDL: RegisterFunc(135)::"Tensor Serializer register success! type is :AINeuralNetworkBuffer."
I/ENGINE: RegisterTensor(112)::"Tensor register success! type is :AINeuralNetworkIonBuffer. "
I/AINeuralNetworkBufferHIDL: RegisterFunc(135)::"Tensor Serializer register success! type is :AINeuralNetworkIonBuffer."
I/ENGINE: RegisterTensor(112)::"Tensor register success! type is :AINeuralNetworkIonBuffer. "
I/AINeuralNetworkBufferHIDL: RegisterFunc(135)::"Tensor Serializer register success! type is :AINeuralNetworkIonBuffer."
I/DedicatedMMListener: [HIAI][DedicatedMMListener]DedicatedMMListener: "DedicatedMMListener construct"
I/ENGINE: RegisterTensor(246)::"Tensor register success! type is :AINeuralNetworkBuffer."
I/HIAI_DDK_MSG: open client 64
LoadSymbols success
I/aiclient: HIAI_GetVersion_Config ERROR __system_property_get <= 0
success
I/HIAI_DDK_MSG: legacy: isNpuSupported[1], version[100.511.020.100], isNeedBuildIrModel[0]
I/aiclient: AiModelManagerImpl constructor
I/aiclient: AiModelManagerImpl::CreateInstanceID create instance id: 0
I/aiclient: AiModelManagerImpl::Register: clientID:0x79d89ff330(sync), total client num:1
success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Create
try calling HIAI_OM_RegisterListener
I/: OM constructor
I/MNNJNI: [NPU] ddk currentversion : 100.511.020.100
I/HIAI_DDK_MSG: Model manager client destructor calls unload model
I/aiclient: ret[0].
I/HIAI_DDK_MSG: ModelManagerClientImplLegacy::UnLoad taskStamp = 0
Model manager client destructor calls destroy model manager
I/aiclient: AiModelManagerImpl::Unregister: clientID:0x79d89ff330, total client num:0
AiModelManagerImpl::DeInit no client using, client impl DeInit
I/aiclient: success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Destroy
I/HCL_INTERFACE: HclItfObj has been inited
I/aiclient: AiModelManagerImpl::CreateInstanceID create instance id: 0
I/aiclient: AiModelManagerImpl::Register: clientID:0x79d89ff330(sync), total client num:1
success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Create
try calling HIAI_OM_RegisterListener
I/MNNJNI: [NPU] ddk currentversion : 100.511.020.100
I/HIAI_DDK_MSG: Model manager client destructor calls unload model
I/aiclient: ret[0].
I/HIAI_DDK_MSG: ModelManagerClientImplLegacy::UnLoad taskStamp = 0
Model manager client destructor calls destroy model manager
I/aiclient: AiModelManagerImpl::Unregister: clientID:0x79d89ff330, total client num:0
AiModelManagerImpl::DeInit no client using, client impl DeInit
I/aiclient: success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Destroy
I/HCL_INTERFACE: HclItfObj has been inited
I/aiclient: AiModelManagerImpl::CreateInstanceID create instance id: 0
I/aiclient: AiModelManagerImpl::Register: clientID:0x79d89ff330(sync), total client num:1
success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Create
try calling HIAI_OM_RegisterListener
I/MNNJNI: [NPU] ddk currentversion : 100.511.020.100
I/HIAI_DDK_MSG: Model manager client destructor calls unload model
I/aiclient: ret[0].
I/HIAI_DDK_MSG: ModelManagerClientImplLegacy::UnLoad taskStamp = 0
Model manager client destructor calls destroy model manager
I/aiclient: AiModelManagerImpl::Unregister: clientID:0x79d89ff330, total client num:0
AiModelManagerImpl::DeInit no client using, client impl DeInit
I/aiclient: success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Destroy
I/HCL_INTERFACE: HclItfObj has been inited
I/aiclient: AiModelManagerImpl::CreateInstanceID create instance id: 0
I/aiclient: AiModelManagerImpl::Register: clientID:0x79d89ff330(sync), total client num:1
success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Create
try calling HIAI_OM_RegisterListener
I/MNNJNI: [NPU] ddk currentversion : 100.511.020.100
I/HIAI_DDK_MSG: Model manager client destructor calls unload model
I/aiclient: ret[0].
I/HIAI_DDK_MSG: ModelManagerClientImplLegacy::UnLoad taskStamp = 0
Model manager client destructor calls destroy model manager
I/aiclient: AiModelManagerImpl::Unregister: clientID:0x79d89ff330, total client num:0
AiModelManagerImpl::DeInit no client using, client impl DeInit
I/aiclient: success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Destroy
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x796daa4000 in tid 27246 (cent.yolomnn), pid 27246 (cent.yolomnn)
经过尝试,采用hwhiai-ddk-100.320.030.292以及hwhiai-ddk-100.500.010.010两个version的动态链接库都存在一样的问题。 以下部分在log中出现多次,有可能是HIAI_OM的问题
I/jni/hiai_om: try calling HIAI_OM_EventListener_Create
try calling HIAI_OM_RegisterListener
I/MNNJNI: [NPU] ddk currentversion : 100.511.020.100
I/HIAI_DDK_MSG: Model manager client destructor calls unload model
I/aiclient: ret[0].
I/HIAI_DDK_MSG: ModelManagerClientImplLegacy::UnLoad taskStamp = 0
Model manager client destructor calls destroy model manager
I/aiclient: AiModelManagerImpl::Unregister: clientID:0x79d89ff330, total client num:0
AiModelManagerImpl::DeInit no client using, client impl DeInit
I/aiclient: success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Destroy
I/HCL_INTERFACE: HclItfObj has been inited
I/aiclient: AiModelManagerImpl::CreateInstanceID create instance id: 0
I/aiclient: AiModelManagerImpl::Register: clientID:0x79d89ff330(sync), total client num:1
success
但是在语雀的使用说明中并没有提及。
如果遇到这样的问题的话该要如何解决呢?
要放到运行平台里面
@eudora-jia 可以说的具体一点吗 我在配置环境的时候是把libhiai的动态库文件放在android的平台当中 并且在写android的jni的编译的cmakelist的时候也是add了这些动态库文件的。我在编译apk的cmakefile配置如下:
project(yolov5mnn)
cmake_minimum_required(VERSION 3.4.2)
set(CMAKE_SHARED_LINKER_FLAGS "-fuse-ld=gold")
set(lib_DIR ${CMAKE_SOURCE_DIR})
include_directories(${CMAKE_SOURCE_DIR}/include)
add_library( MNN SHARED IMPORTED )
add_library( hiai SHARED IMPORTED )
add_library( hiai_ir SHARED IMPORTED )
add_library( MNN_NPU SHARED IMPORTED )
add_library( hiai_ir_build SHARED IMPORTED )
#add_library( hcl SHARED IMPORTED )
#add_library( cpucl SHARED IMPORTED )
set_target_properties(
MNN
MNN_NPU
hiai
hiai_ir
hiai_ir_build
PROPERTIES IMPORTED_LOCATION
${lib_DIR}/${ANDROID_ABI}/libMNN.so
${lib_DIR}/${ANDROID_ABI}/libMNN_NPU.so
${lib_DIR}/${ANDROID_ABI}/libhiai.so
${lib_DIR}/${ANDROID_ABI}/libhiai_ir.so
${lib_DIR}/${ANDROID_ABI}/libhiai_ir_build.so
)
file(GLOB_RECURSE CPP_SRCS src/main/jni/*.cpp )
add_library( yolov5mnn SHARED yolov5mnn_jni.cpp NanoDet.cpp )
find_library( log-lib log )
find_library( jnigraphics-lib jnigraphics )
add_definitions(-DMNN_USE_LOGCAT)
add_definitions(-DAPP_LDFLAGS=-fuse-ld=gold)
target_link_libraries(yolov5mnn
hiai
hiai_ir
hiai_ir_build
MNN_NPU
MNN
${log-lib} ${jnigraphics-lib})
放进去 库的环境变量也设置了吗
我想偏了 你倒不是出现设置的问题
你全部的奔溃日志有吗
全部的崩溃日志如下:
$ adb shell am start -n "com.tencent.yolov5mnn/com.tencent.yolov5mnn.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 2225 on device '********'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/cent.yolov5mnn: Late-enabling -Xcheck:jni
E/libc: Access denied finding property "persist.device_config.runtime_native.use_app_image_startup_cache"
E/cent.yolov5mnn: LoadAppImageStartupCache enabled : 1
Unknown bits set in runtime_flags: 0x8000
I/cent.yolov5mnn: Reinit property: dalvik.vm.checkjni= false
ReInitProperties: persist.vm.debug.dumpapi= false
D/ActivityThread: Attach thread to application
I/ActivityThread: Init compatible state: true
D/HwFrameworkSecurityPartsFactory: HwFrameworkSecurityPartsFactory in.
I/HwFrameworkSecurityPartsFactory: add HwFrameworkSecurityPartsFactory to memory.
D/BehaviorCollectManager: hook process for AI virus second
D/ApplicationLoaders: createClassLoader zip: /system/framework/org.apache.http.legacy.jar librarySearchPath: /data/app/com.tencent.yolov5mnn-kAr9X90yAQqcAARhgVf_KA==/lib/arm64:/data/app/com.tencent.yolov5mnn-kAr9X90yAQqcAARhgVf_KA==/base.apk!/lib/arm64-v8a libraryPermittedPath: /data/user/0/com.tencent.yolov5mnn parent: java.lang.BootClassLoader@94479e8 targetSdkVersion: 24 isBundled: false classLoaderName: null sharedLibraries: null
I/cent.yolov5mnn: The ClassLoaderContext is a special shared library.
D/ApplicationLoaders: createClassLoader zip: /data/app/com.tencent.yolov5mnn-kAr9X90yAQqcAARhgVf_KA==/base.apk librarySearchPath: /data/app/com.tencent.yolov5mnn-kAr9X90yAQqcAARhgVf_KA==/lib/arm64:/data/app/com.tencent.yolov5mnn-kAr9X90yAQqcAARhgVf_KA==/base.apk!/lib/arm64-v8a libraryPermittedPath: /data/user/0/com.tencent.yolov5mnn parent: java.lang.BootClassLoader@94479e8 targetSdkVersion: 24 isBundled: false classLoaderName: null sharedLibraries: [dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/org.apache.http.legacy.jar"],nativeLibraryDirectories=[/data/app/com.tencent.yolov5mnn-kAr9X90yAQqcAARhgVf_KA==/lib/arm64, /data/app/com.tencent.yolov5mnn-kAr9X90yAQqcAARhgVf_KA==/base.apk!/lib/arm64-v8a, /system/lib64, /hw_product/lib64, /system/product/lib64]]]]
I/BehaviorCollectManager: bindAnalyzerService: huawei.android.security.IAppBehaviorDataAnalyzer$Stub$Proxy@62abca6 pid:2225
I/HwTypeface: updateFont: scale=1.0
D/SystemFonts: areFontsVariable: script=Hans
I/ActivityThread: finishPreloaded preloadStatus 0
D/OpenGLRenderer: disableOutlineDraw is true
I/HwPartIawareFactory: add android.common.HwPartIawareFactoryImpl to memory.
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.tencent.yolov5mnn#10514#256
need clear apicache,because volumes changed,oldCnt=0 newCnt=1
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.tencent.yolov5mnn#10514#0
need clear apicache,because volumes changed,oldCnt=1 newCnt=1
D/YoloV5mnn: JNI_OnLoad
I/OpenGLRenderer: RenderThread: progress name = [com.tencent.yolov5mnn], viewCornerType = 0
V/ActivityThread: callActivityOnCreate
I/iGraphics: [0020080c] pn: com.tencent.yolov5mnn, p: 2225
[0030080c] no spt app: com.tencent.yolov5mnn
E/AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@8750400
I/AwareBitmapCacher: init processName:com.tencent.yolov5mnn pid=2225 uid=10514
I/DecorView[]: pkgName:com.tencent.yolov5mnn old windowMode:0 new windoMode:1, isFixedSize:false
I/RmeSchedManager: init Rme, version is: v1.0
init Rme, version is: v1.0
I/RtgSchedEvent: current pid:2225 AppType:-1
I/OverScrollerOptimization: start init SmartSlideOverScroller and get the overscroller config
get the overscroller config
I/AwareAppScheduleManager: post cache drawable res id to aware, resId = 17301651, packagename = com.tencent.yolov5mnn, cost time = 6536979
W/WindowDecorActionBar: should not do the transition or the transition anim is null or it is running or the mContainer view is null or mContainer view hasn't been drawn to screen
I/Icon_Cache: add:0#com.tencent.yolov5mnn
D/ActivityThread: add activity client record, r= ActivityRecord{eeb7977 token=android.os.BinderProxy@41116e7 {com.tencent.yolov5mnn/com.tencent.yolov5mnn.MainActivity}} token= android.os.BinderProxy@41116e7
I/HwPartMagicWindowFactory: add android.common.HwPartMagicWindowFactoryImpl to memory.
D/MouseWheelSynthesizer: mMoveStepInDp: 64, mMoveStepInPixel: 192, mUpTimeDelayed: 100
D/ViewRootImpl: ViewRootImpl mIsInProductivePCDisplay: false
I/HwPartPowerOfficeFactory: add HwPartPowerOfficeFactoryImpl to memory.
D/InputEventReceiver: dispatchInputInterval 0
I/RmeSchedManager: init Rme, version is: v1.0
I/RtgSchedEvent: current pid:2225 AppType:-1
D/OpenGLRenderer: disableOutlineDraw is true
D/HiTouch_PressGestureDetector: onAttached, package=com.tencent.yolov5mnn, windowType=1, mIsHiTouchRestricted=false
I/: package[com.tencent.yolov5mnn] pid[2225] game[0]
W/Gralloc3: mapper 3.x is not supported
I/HwViewRootImpl: removeInvalidNode jank list is null
D/DecorView: showOrHideHighlightView: hasFocus=true; winMode=1; isMrgNull=true
W/InputMethodManager: startInputReason = 1
W/InputMethodManager: startInputReason = 5
D/stylus: init stylus touchlistener.
I/Hwaps: APS: EventAnalyzed: initAPS: version is 11.0.0.4
D/Hwaps: Fpsrequest create,type:EXACTLY_IDENTIFY
D/Hwaps: Fpsrequest create,type:EXACTLY_IDENTIFY
Fpsrequest create,type:OPENGL_SETTING
FpsController create
D/Hwaps: APS: EventAnalyzed: reInitFpsPara :mBaseFps = 90; mMaxFps = 90
W/Settings: Setting device_provisioned has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
V/HiTouch_HiTouchSensor: User setup is finished.
W/HwApsManager: HwApsManagerService, registerCallback, start !
D/Hwaps: APS: EventAnalyzed: registerCallbackInApsManagerService, mPkgName:com.tencent.yolov5mnn; result = true
V/AudioManager: querySoundEffectsEnabled...
I/WZT_MNN: model path:/data/user/0/com.tencent.yolov5mnn/cache/resnet50.mnn
I/WZT_MNN: Start to load session
I/AI_FMK: /initializer.cpp Init(45)::"load cl libs:libcpucl.so"
I/HCL_INTERFACE: openned libhcl.so success
libhcl.so load symbols success
HclItfObj inited success
I/ENGINE: RegisterTensor(112)::"Tensor register success! type is :AISimpleTensor. "
RegisterTensor(112)::"Tensor register success! type is :AINeuralNetworkBuffer. "
RegisterTensor(112)::"Tensor register success! type is :AIImageBuffer. "
I/ENGINE: RegisterTensor(112)::"Tensor register success! type is :AINeuralNetworkBuffer. "
I/AINeuralNetworkBufferHIDL: RegisterFunc(135)::"Tensor Serializer register success! type is :AINeuralNetworkBuffer."
I/ENGINE: RegisterTensor(112)::"Tensor register success! type is :AINeuralNetworkIonBuffer. "
I/AINeuralNetworkBufferHIDL: RegisterFunc(135)::"Tensor Serializer register success! type is :AINeuralNetworkIonBuffer."
I/ENGINE: RegisterTensor(112)::"Tensor register success! type is :AINeuralNetworkIonBuffer. "
I/AINeuralNetworkBufferHIDL: RegisterFunc(135)::"Tensor Serializer register success! type is :AINeuralNetworkIonBuffer."
I/DedicatedMMListener: [HIAI][DedicatedMMListener]DedicatedMMListener: "DedicatedMMListener construct"
I/ENGINE: RegisterTensor(246)::"Tensor register success! type is :AINeuralNetworkBuffer."
I/HIAI_DDK_MSG: open client 64
LoadSymbols success
I/aiclient: HIAI_GetVersion_Config ERROR __system_property_get <= 0
success
I/HIAI_DDK_MSG: legacy: isNpuSupported[1], version[100.511.020.100], isNeedBuildIrModel[0]
I/aiclient: AiModelManagerImpl constructor
I/aiclient: AiModelManagerImpl::CreateInstanceID create instance id: 0
I/aiclient: AiModelManagerImpl::Register: clientID:0x7a82077600(sync), total client num:1
success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Create
try calling HIAI_OM_RegisterListener
I/: OM constructor
I/MNNJNI: [NPU] ddk currentversion : 100.511.020.100
I/HIAI_DDK_MSG: Model manager client destructor calls unload model
I/aiclient: ret[0].
I/HIAI_DDK_MSG: ModelManagerClientImplLegacy::UnLoad taskStamp = 0
Model manager client destructor calls destroy model manager
I/aiclient: AiModelManagerImpl::Unregister: clientID:0x7a82077600, total client num:0
AiModelManagerImpl::DeInit no client using, client impl DeInit
I/aiclient: success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Destroy
I/HCL_INTERFACE: HclItfObj has been inited
I/aiclient: AiModelManagerImpl::CreateInstanceID create instance id: 0
I/aiclient: AiModelManagerImpl::Register: clientID:0x7a82077600(sync), total client num:1
success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Create
try calling HIAI_OM_RegisterListener
I/MNNJNI: [NPU] ddk currentversion : 100.511.020.100
I/HIAI_DDK_MSG: Model manager client destructor calls unload model
I/aiclient: ret[0].
I/HIAI_DDK_MSG: ModelManagerClientImplLegacy::UnLoad taskStamp = 0
Model manager client destructor calls destroy model manager
I/aiclient: AiModelManagerImpl::Unregister: clientID:0x7a82077600, total client num:0
AiModelManagerImpl::DeInit no client using, client impl DeInit
I/aiclient: success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Destroy
I/HCL_INTERFACE: HclItfObj has been inited
I/aiclient: AiModelManagerImpl::CreateInstanceID create instance id: 0
I/aiclient: AiModelManagerImpl::Register: clientID:0x7a82077600(sync), total client num:1
success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Create
try calling HIAI_OM_RegisterListener
I/MNNJNI: [NPU] ddk currentversion : 100.511.020.100
I/HIAI_DDK_MSG: Model manager client destructor calls unload model
I/aiclient: ret[0].
I/HIAI_DDK_MSG: ModelManagerClientImplLegacy::UnLoad taskStamp = 0
Model manager client destructor calls destroy model manager
I/aiclient: AiModelManagerImpl::Unregister: clientID:0x7a82077600, total client num:0
AiModelManagerImpl::DeInit no client using, client impl DeInit
I/aiclient: success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Destroy
I/HCL_INTERFACE: HclItfObj has been inited
I/aiclient: AiModelManagerImpl::CreateInstanceID create instance id: 0
I/aiclient: AiModelManagerImpl::Register: clientID:0x7a82077600(sync), total client num:1
success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Create
try calling HIAI_OM_RegisterListener
I/MNNJNI: [NPU] ddk currentversion : 100.511.020.100
I/HIAI_DDK_MSG: Model manager client destructor calls unload model
I/aiclient: ret[0].
I/HIAI_DDK_MSG: ModelManagerClientImplLegacy::UnLoad taskStamp = 0
Model manager client destructor calls destroy model manager
I/aiclient: AiModelManagerImpl::Unregister: clientID:0x7a82077600, total client num:0
AiModelManagerImpl::DeInit no client using, client impl DeInit
I/aiclient: success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Destroy
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7a7b4a4000 in tid 2225 (cent.yolov5mnn), pid 2225 (cent.yolov5mnn)
@eudora-jia 如果不动态加载libhiai_om.so 崩溃日志如下:
$ adb shell am start -n "com.tencent.yolov5mnn/com.tencent.yolov5mnn.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 9664 on device '******'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
W/usap64: type=1400 audit(0.0:174930): avc: granted { read } for pid=9664 name="u:object_r:net_dns_prop:s0" dev="tmpfs" ino=13973 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:net_dns_prop:s0 tclass=file
I/cent.yolov5mnn: Late-enabling -Xcheck:jni
W/cent.yolov5mnn: type=1400 audit(0.0:174931): avc: denied { read } for pid=9664 name="u:object_r:device_config_runtime_native_prop:s0" dev="tmpfs" ino=13840 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:device_config_runtime_native_prop:s0 tclass=file permissive=0
E/libc: Access denied finding property "persist.device_config.runtime_native.use_app_image_startup_cache"
E/cent.yolov5mnn: LoadAppImageStartupCache enabled : 1
E/cent.yolov5mnn: Unknown bits set in runtime_flags: 0x8000
I/cent.yolov5mnn: Reinit property: dalvik.vm.checkjni= false
ReInitProperties: persist.vm.debug.dumpapi= false
D/ActivityThread: Attach thread to application
I/HwPartIawareFactory: add android.common.HwPartIawareFactoryImpl to memory.
D/ApplicationLoaders: createClassLoader zip: /system/framework/org.apache.http.legacy.jar librarySearchPath: /data/app/com.tencent.yolov5mnn-aL8r_CSbOZMbLAQxOnXLUA==/lib/arm64:/data/app/com.tencent.yolov5mnn-aL8r_CSbOZMbLAQxOnXLUA==/base.apk!/lib/arm64-v8a libraryPermittedPath: /data/user/0/com.tencent.yolov5mnn parent: java.lang.BootClassLoader@94479e8 targetSdkVersion: 24 isBundled: false classLoaderName: null sharedLibraries: null
I/cent.yolov5mnn: The ClassLoaderContext is a special shared library.
D/ApplicationLoaders: createClassLoader zip: /data/app/com.tencent.yolov5mnn-aL8r_CSbOZMbLAQxOnXLUA==/base.apk librarySearchPath: /data/app/com.tencent.yolov5mnn-aL8r_CSbOZMbLAQxOnXLUA==/lib/arm64:/data/app/com.tencent.yolov5mnn-aL8r_CSbOZMbLAQxOnXLUA==/base.apk!/lib/arm64-v8a libraryPermittedPath: /data/user/0/com.tencent.yolov5mnn parent: java.lang.BootClassLoader@94479e8 targetSdkVersion: 24 isBundled: false classLoaderName: null sharedLibraries: [dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/org.apache.http.legacy.jar"],nativeLibraryDirectories=[/data/app/com.tencent.yolov5mnn-aL8r_CSbOZMbLAQxOnXLUA==/lib/arm64, /data/app/com.tencent.yolov5mnn-aL8r_CSbOZMbLAQxOnXLUA==/base.apk!/lib/arm64-v8a, /system/lib64, /hw_product/lib64, /system/product/lib64]]]]
I/HwTypeface: updateFont: scale=1.0
D/SystemFonts: areFontsVariable: script=Hans
I/ActivityThread: finishPreloaded preloadStatus 0
I/RmeSchedManager: init Rme, version is: v1.0
init Rme, version is: v1.0
I/RtgSchedEvent: current pid:9664 AppType:-1
I/ActivityThread: Init compatible state: true
D/OpenGLRenderer: disableOutlineDraw is true
D/HwFrameworkSecurityPartsFactory: HwFrameworkSecurityPartsFactory in.
I/HwFrameworkSecurityPartsFactory: add HwFrameworkSecurityPartsFactory to memory.
D/BehaviorCollectManager: hook process for AI virus second
I/OpenGLRenderer: RenderThread: progress name = [com.tencent.yolov5mnn], viewCornerType = 0
I/iGraphics: [0020080c] pn: com.tencent.yolov5mnn, p: 9664
[0030080c] no spt app: com.tencent.yolov5mnn
I/BehaviorCollectManager: bindAnalyzerService: huawei.android.security.IAppBehaviorDataAnalyzer$Stub$Proxy@deb5294 pid:9664
D/YoloV5mnn: JNI_OnLoad
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.tencent.yolov5mnn#10514#256
need clear apicache,because volumes changed,oldCnt=0 newCnt=1
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.tencent.yolov5mnn#10514#0
need clear apicache,because volumes changed,oldCnt=1 newCnt=1
I/AwareBitmapCacher: init processName:com.tencent.yolov5mnn pid=9664 uid=10514
V/ActivityThread: callActivityOnCreate
I/DecorView[]: pkgName:com.tencent.yolov5mnn old windowMode:0 new windoMode:1, isFixedSize:false
I/OverScrollerOptimization: start init SmartSlideOverScroller and get the overscroller config
get the overscroller config
W/WindowDecorActionBar: should not do the transition or the transition anim is null or it is running or the mContainer view is null or mContainer view hasn't been drawn to screen
I/Icon_Cache: add:0#com.tencent.yolov5mnn
I/System.out: Well done
D/ActivityThread: add activity client record, r= ActivityRecord{eeb7977 token=android.os.BinderProxy@62abca6 {com.tencent.yolov5mnn/com.tencent.yolov5mnn.MainActivity}} token= android.os.BinderProxy@62abca6
I/HwPartMagicWindowFactory: add android.common.HwPartMagicWindowFactoryImpl to memory.
D/MouseWheelSynthesizer: mMoveStepInDp: 64, mMoveStepInPixel: 192, mUpTimeDelayed: 100
D/ViewRootImpl: ViewRootImpl mIsInProductivePCDisplay: false
I/HwPartPowerOfficeFactory: add HwPartPowerOfficeFactoryImpl to memory.
D/InputEventReceiver: dispatchInputInterval 0
I/RmeSchedManager: init Rme, version is: v1.0
I/RtgSchedEvent: current pid:9664 AppType:-1
D/OpenGLRenderer: disableOutlineDraw is true
D/HiTouch_PressGestureDetector: onAttached, package=com.tencent.yolov5mnn, windowType=1, mIsHiTouchRestricted=false
I/: package[com.tencent.yolov5mnn] pid[9664] game[0]
W/Gralloc3: mapper 3.x is not supported
I/HwViewRootImpl: removeInvalidNode jank list is null
D/DecorView: showOrHideHighlightView: hasFocus=true; winMode=1; isMrgNull=true
W/InputMethodManager: startInputReason = 1
W/InputMethodManager: startInputReason = 5
I/AwareBitmapCacher: init lrucache size: 4194304 pid=9664
D/stylus: init stylus touchlistener.
I/Hwaps: APS: EventAnalyzed: initAPS: version is 11.0.0.4
D/Hwaps: Fpsrequest create,type:EXACTLY_IDENTIFY
Fpsrequest create,type:EXACTLY_IDENTIFY
Fpsrequest create,type:OPENGL_SETTING
FpsController create
D/Hwaps: APS: EventAnalyzed: reInitFpsPara :mBaseFps = 90; mMaxFps = 90
W/Settings: Setting device_provisioned has moved from android.provider.Settings.Secure to android.provider.Settings.Global.
V/HiTouch_HiTouchSensor: User setup is finished.
I/HwViewRootImpl: removeInvalidNode all the node in jank list is out of time
W/HwApsManager: HwApsManagerService, registerCallback, start !
D/Hwaps: APS: EventAnalyzed: registerCallbackInApsManagerService, mPkgName:com.tencent.yolov5mnn; result = true
V/AudioManager: querySoundEffectsEnabled...
I/WZT_MNN: model path:/data/user/0/com.tencent.yolov5mnn/cache/resnet50.mnn
I/WZT_MNN: Start to load session
I/AI_FMK: /initializer.cpp Init(45)::"load cl libs:libcpucl.so"
I/HCL_INTERFACE: openned libhcl.so success
libhcl.so load symbols success
HclItfObj inited success
I/ENGINE: RegisterTensor(112)::"Tensor register success! type is :AISimpleTensor. "
RegisterTensor(112)::"Tensor register success! type is :AINeuralNetworkBuffer. "
RegisterTensor(112)::"Tensor register success! type is :AIImageBuffer. "
I/ENGINE: RegisterTensor(112)::"Tensor register success! type is :AINeuralNetworkBuffer. "
I/AINeuralNetworkBufferHIDL: RegisterFunc(135)::"Tensor Serializer register success! type is :AINeuralNetworkBuffer."
I/ENGINE: RegisterTensor(112)::"Tensor register success! type is :AINeuralNetworkIonBuffer. "
I/AINeuralNetworkBufferHIDL: RegisterFunc(135)::"Tensor Serializer register success! type is :AINeuralNetworkIonBuffer."
I/ENGINE: RegisterTensor(112)::"Tensor register success! type is :AINeuralNetworkIonBuffer. "
I/AINeuralNetworkBufferHIDL: RegisterFunc(135)::"Tensor Serializer register success! type is :AINeuralNetworkIonBuffer."
I/DedicatedMMListener: [HIAI][DedicatedMMListener]DedicatedMMListener: "DedicatedMMListener construct"
I/ENGINE: RegisterTensor(246)::"Tensor register success! type is :AINeuralNetworkBuffer."
I/HIAI_DDK_MSG: open client 64
LoadSymbols success
I/aiclient: HIAI_GetVersion_Config ERROR __system_property_get <= 0
success
I/HIAI_DDK_MSG: legacy: isNpuSupported[1], version[100.511.020.100], isNeedBuildIrModel[0]
I/aiclient: AiModelManagerImpl constructor
I/aiclient: AiModelManagerImpl::CreateInstanceID create instance id: 0
I/aiclient: AiModelManagerImpl::Register: clientID:0x7a8f81a2f0(sync), total client num:1
success
E/jni/hiai_om: dlopen failed: dlopen failed: library "libhiai_om.so" not found
I/jni/hiai_om: try calling HIAI_OM_EventListener_Create
E/jni/hiai_om: dlsym(HIAI_OM_EventListener_Create) failed: (null)
I/MNNJNI: [NPU] ddk currentversion : 100.511.020.100
I/HIAI_DDK_MSG: Model manager client destructor calls unload model
I/aiclient: ret[0].
I/HIAI_DDK_MSG: ModelManagerClientImplLegacy::UnLoad taskStamp = 0
Model manager client destructor calls destroy model manager
I/aiclient: AiModelManagerImpl::Unregister: clientID:0x7a8f81a2f0, total client num:0
AiModelManagerImpl::DeInit no client using, client impl DeInit
I/aiclient: success
I/HCL_INTERFACE: HclItfObj has been inited
I/aiclient: AiModelManagerImpl::CreateInstanceID create instance id: 0
I/aiclient: AiModelManagerImpl::Register: clientID:0x7a8f81a2f0(sync), total client num:1
success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Create
E/jni/hiai_om: dlsym(HIAI_OM_EventListener_Create) failed: (null)
I/MNNJNI: [NPU] ddk currentversion : 100.511.020.100
I/HIAI_DDK_MSG: Model manager client destructor calls unload model
I/aiclient: ret[0].
I/HIAI_DDK_MSG: ModelManagerClientImplLegacy::UnLoad taskStamp = 0
Model manager client destructor calls destroy model manager
I/aiclient: AiModelManagerImpl::Unregister: clientID:0x7a8f81a2f0, total client num:0
AiModelManagerImpl::DeInit no client using, client impl DeInit
I/aiclient: success
I/HCL_INTERFACE: HclItfObj has been inited
I/aiclient: AiModelManagerImpl::CreateInstanceID create instance id: 0
I/aiclient: AiModelManagerImpl::Register: clientID:0x7a8f81a2f0(sync), total client num:1
success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Create
E/jni/hiai_om: dlsym(HIAI_OM_EventListener_Create) failed: (null)
I/MNNJNI: [NPU] ddk currentversion : 100.511.020.100
I/HIAI_DDK_MSG: Model manager client destructor calls unload model
I/aiclient: ret[0].
I/HIAI_DDK_MSG: ModelManagerClientImplLegacy::UnLoad taskStamp = 0
Model manager client destructor calls destroy model manager
I/aiclient: AiModelManagerImpl::Unregister: clientID:0x7a8f81a2f0, total client num:0
AiModelManagerImpl::DeInit no client using, client impl DeInit
I/aiclient: success
I/HCL_INTERFACE: HclItfObj has been inited
I/aiclient: AiModelManagerImpl::CreateInstanceID create instance id: 0
I/aiclient: AiModelManagerImpl::Register: clientID:0x7a8f81a2f0(sync), total client num:1
success
I/jni/hiai_om: try calling HIAI_OM_EventListener_Create
E/jni/hiai_om: dlsym(HIAI_OM_EventListener_Create) failed: (null)
I/MNNJNI: [NPU] ddk currentversion : 100.511.020.100
I/HIAI_DDK_MSG: Model manager client destructor calls unload model
I/aiclient: ret[0].
I/HIAI_DDK_MSG: ModelManagerClientImplLegacy::UnLoad taskStamp = 0
Model manager client destructor calls destroy model manager
I/aiclient: AiModelManagerImpl::Unregister: clientID:0x7a8f81a2f0, total client num:0
AiModelManagerImpl::DeInit no client using, client impl DeInit
I/aiclient: success
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7a7caa4000 in tid 9664 (cent.yolov5mnn), pid 9664 (cent.yolov5mnn)
@fkh12345 请问最后有解决吗?