[问答]AI文字识别 Codelab运行出现的问题

阅读量0
0
0


按照文档写的project,模拟器运行。输入框不能输入,多点两下就退出。运行过程如下:哪位给指点一下
04/15 20:08:58: Launching com.huawei.searchimagebykeywords
$ hdc shell am force-stop com.huawei.searchimagebykeywords
$ hdc shell bm uninstall com.huawei.searchimagebykeywords
$ hdc file send F:harmonyOSDevEcoStudioProjectsMyApplicationentrybuildoutputshapdebugentry-debug-rich-unsigned.hap /sdcard/0bef2cda078c4421a2e9633319acfc48/entry-debug-rich-unsigned.hap
$ hdc shell bm install -p /sdcard/0bef2cda078c4421a2e9633319acfc48/
$ hdc shell rm -rf /sdcard/0bef2cda078c4421a2e9633319acfc48
$ hdc shell am start -n "com.huawei.searchimagebykeywords/com.huawei.searchimagebykeywords.MainAbilityShellActivity"
Connected to process 12714 on device 'huawei-ana_an00-127.0.0.1:18888'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/Zygote: seccomp disabled by setenforce 0
I/imagebykeyword: Late-enabling -Xcheck:jni
E/imagebykeyword: LoadAppImageStartupCache enabled : 1
    Unknown bits set in runtime_flags: 0x8000
I/imagebykeyword: 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.
I/ActivityThread: Init compatible state: true
D/ZrHung.AppEyeUiProbe: apppuip fuction is not enabled
W/imagebykeyword: Can't mmap dex file /data/app/com.huawei.searchimagebykeywords-XIddL7_BYr-S5SwHuRoNTg==/base.apk!classes.dex directly; please zipalign to 4 bytes. Falling back to extracting file.
W/imagebykeyword: JIT profile information will not be recorded: profile file does not exits.
D/HwFrameworkSecurityPartsFactory: HwFrameworkSecurityPartsFactory in.
I/HwFrameworkSecurityPartsFactory: add HwFrameworkSecurityPartsFactory to memory.
D/BehaviorCollectManager: hook process for AI virus second
E/BehaviorCollectManager: Fail to acquire dataAnalyzerService...
W/imagebykeyword: Can't mmap dex file /data/app/com.huawei.searchimagebykeywords-XIddL7_BYr-S5SwHuRoNTg==/feature_entry-debug-rich-unsigned.hap!classes.dex directly; please zipalign to 4 bytes. Falling back to extracting file.
D/SystemFonts: areFontsVariable: script=Hans
I/ActivityThread: finishPreloaded preloadStatus 0
E/RtgSchedIpcFile: RtgSchedIpcFile failed to open /proc/12714/rtg
I/RmeSchedManager: init Rme, version is: v1.0
E/RtgSchedIpcFile: RtgSchedIpcFile failed to open /proc/12714/rtg
I/RmeSchedManager: init Rme, version is: v1.0
E/RtgSchedIpcFile: setCommandByIoctl not opened
I/AppNativeCrash-JNI: initialize_sigaction_handler start
    initialize_sigaction_handler end
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.huawei.searchimagebykeywords#10084#256
    need clear apicache,because volumes changed,oldCnt=0 newCnt=1
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.huawei.searchimagebykeywords#10084#0
    need clear apicache,because volumes changed,oldCnt=1 newCnt=1
D/OpenGLRenderer: disableOutlineDraw is true
E/OpenGLRenderer: RenderThread: progress name = [com.huawei.searchimagebykeywords], get AGPService failed!
I/AwareBitmapCacher: init processName:com.huawei.searchimagebykeywords pid=12714 uid=10084
D/libEGL: Emulator has host GPU support, qemu.gles is set to 1.
E/AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@3a67b33
V/ActivityThread: callActivityOnCreate
D/libEGL: loaded /vendor/lib64/egl/libEGL_emulation.so
D/libEGL: loaded /vendor/lib64/egl/libGLESv1_CM_emulation.so
D/libEGL: loaded /vendor/lib64/egl/libGLESv2_emulation.so
I/AGP: Start to register native methods for AGP
I/AGP: Finish to register native methods for AGP
D/AGP: VsyncSchedulerAndroid:jni is registered.
D/AGP: Typeface:native typeface ptr 0x71622ae420
W/libEGL: loaded /system/lib64/libiGraphicsCore.huawei.so
W/libEGL: loaded /system/lib64/libframeflowload.so
I/iGraphics: [0020080c] pn: com.huawei.searchimagebykeywords, p: 12714
    [0030080c] no spt app: com.huawei.searchimagebykeywords
D/AGP: Typeface:native typeface ptr 0x71622ae420
    Typeface:native typeface ptr 0x71622aea60
    Typeface:native typeface ptr 0x71622ae420
    Typeface:native typeface ptr 0x71622ae6c0
    Typeface:native typeface ptr 0x71622ae540
D/AGP: Initialize system fonts.
E/libdnetwork: GetLocalBasicInfo: get local node basic info binder invoke failed
I/HwPhoneWindow: updateLayoutParamsColor true mSpecialSet=true,mForcedNavigationBarColor=false, navigationBarColor=fffcfcfc
I/DecorView[]:  old windowMode:0 new windoMode:1
I/OverScrollerOptimization: start init SmartSlideOverScroller and get the overscroller config
I/OverScrollerOptimization: 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:2130771968#com.huawei.searchimagebykeywords
D/HwGalleryCacheManagerImpl: mIsEffect:false
D/ActivityThread: add activity client record, r= ActivityRecord{3f1d561 token=android.os.BinderProxy@fa2ae84 {com.huawei.searchimagebykeywords/com.huawei.searchimagebykeywords.MainAbilityShellActivity}} token= android.os.BinderProxy@fa2ae84
D/AGP: Initialize system language.
D/AGP: BF:Client
E/AGP: GetHorizaontalCoordinate::ubidi_setPara: return error
E/AGP: GetHorizaontalCoordinate::ubidi_setPara: return error
D/AGP: Setup drag recognizer mode is 3
D/AGP: Setup drag recognizer mode is 2
E/AGP: GetHorizaontalCoordinate::ubidi_setPara: return error
D/AGP: GetCursorCoordsByPosition textLayout_ is not ready.
    GetCursorCoordsByPosition textLayout_ is not ready.
    Error UpdatePivot not in scene
E/AGP: GetHorizaontalCoordinate::ubidi_setPara: return error
E/AGP: GetHorizaontalCoordinate::ubidi_setPara: return error
E/AGP: GetHorizaontalCoordinate::ubidi_setPara: return error
D/AGP: Setup drag recognizer mode is 3
D/AGP: Setup drag recognizer mode is 2
D/AGP: BF:AGPWindow back to top(flag=1)
E/AGP: BF:AGPWindow OnTop fail
I/HwPartMagicWindowFactory: add android.common.HwPartMagicWindowFactoryImpl to memory.
D/MouseWheelSynthesizer: mMoveStepInDp: 64, mMoveStepInPixel: 192, mUpTimeDelayed: 100
D/HwAppInnerBoostImpl: set config for com.huawei.searchimagebykeywords BOOST_FLAG=true REPORT_DURATION_CLICK=1000 REPORT_TIMES_CLICK=3 REPORT_DURATION_SLIDE=5000 REPORT_TIMES_SLIDE=16
D/ViewRootImpl: ViewRootImpl mIsInProductivePCDisplay: false
I/HwPartPowerOfficeFactory: add HwPartPowerOfficeFactoryImpl to memory.
D/InputEventReceiver: dispatchInputInterval 1000000
E/RtgSchedIpcFile: RtgSchedIpcFile failed to open /proc/12714/rtg
I/RmeSchedManager: init Rme, version is: v1.0
E/RtgSchedIpcFile: setCommandByIoctl not opened
D/OpenGLRenderer: disableOutlineDraw is true
I/ViewRootImpl[MainAbilityShellActivity]: first performTraversals
I/ViewRootImpl[MainAbilityShellActivity]: relayoutWindow reason: mFirst = true
W/HiTouch_HiTouchSensor: depended package hiTouch does n't exist!
I/HiTouch_HiTouchSensor: HiTouch restricted: system app HiTouch don't exist.
D/HiTouch_PressGestureDetector: onAttached, package=com.huawei.searchimagebykeywords, windowType=1, mHiTouchRestricted=true
I/ViewRootImpl[MainAbilityShellActivity]: relayoutWindow relayoutResult 7
D/: HostConnection::get() New Host Connection established 0x715e0539a0, tid 12831
I/ViewRootImpl[MainAbilityShellActivity]: windowFocusChanged: hasFocus true inTouchMode true
D/: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object ANDROID_EMU_gles_max_version_3_0
I/SurfaceView: 228246994 Changes: creating=true format=true size=true visibleChanged=true mVisible=false mRequestedVisible=true mViewVisibility=true left=true top=true
D/RenderService: RCS is disable
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
I/SurfaceView: 228246994 visibleChanged -- surfaceCreated
I/SurfaceView: 228246994 surfaceChanged -- format=4 w=1080 h=1917
E/AGP: VsyncSchedulerAndroid:can not find method postRenderThreadInfo.
D/: HostConnection::get() New Host Connection established 0x715e054260, tid 13019
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0x715e054080: maj 3 min 0 rcv 3
D/EGL_emulation: eglMakeCurrent: 0x715e054080: ver 3 0 (tinfo 0x715e10f0a0)
E/RtgIoctl: RtgIoctl invalid path
D/: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object ANDROID_EMU_gles_max_version_3_0
W/Gralloc3: mapper 3.x is not supported
D/HAL: loaded HAL id=gralloc path=/vendor/lib64/hw/gralloc.ranchu.so hmi=0x70f69df010 handle=0xc92141c32a19d3df
D/: createUnique: call
D/: HostConnection::get() New Host Connection established 0x715e0544e0, tid 12831
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0x715e054300: maj 3 min 0 rcv 3
D/: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object ANDROID_EMU_gles_max_version_3_0
D/EGL_emulation: eglMakeCurrent: 0x715e054300: ver 3 0 (tinfo 0x715e10f620)
D/AGP: Surface created: width:1080, height:1917, ptr: 0x715e18b200
D/EGL_emulation: eglMakeCurrent: 0x715e054300: ver 3 0 (tinfo 0x715e10f620)
D/AGP: BF:Client register new ability
D/AGP: BF:Client register new contentView
    BF:Client Register
E/AGP: GetHorizaontalCoordinate::ubidi_setPara: return error
    GetHorizaontalCoordinate::ubidi_setPara: return error
E/AGP: GetHorizaontalCoordinate::ubidi_setPara: return error
    GetHorizaontalCoordinate::ubidi_setPara: return error
D/AGP: Error UpdatePivot not in scene
E/AGP: GetHorizaontalCoordinate::ubidi_setPara: return error
    GetHorizaontalCoordinate::ubidi_setPara: return error
E/EGL_emulation: eglQuerySurface 313d  EGL_BAD_ATTRIBUTE
I/ViewRootImpl[MainAbilityShellActivity]: reportNextDraw set callback
D/EGL_emulation: eglMakeCurrent: 0x715e054080: ver 3 0 (tinfo 0x715e10f0a0)
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 0
E/imagebykeyword: GcSupervisor: parse parameters failed
I/OpenGLRenderer: Davey! duration=1593ms; Flags=1, IntendedVsync=11824656785647, Vsync=11824656785647, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=11824657401060, AnimationStart=11824657474320, PerformTraversalsStart=11824657480000, DrawStart=11824937548520, SyncQueued=11824939844120, SyncStart=11824954324760, IssueDrawCommandsStart=11825059469220, SwapBuffers=11825599152320, FrameCompleted=11826264584800, DequeueBufferDuration=46199000, QueueBufferDuration=224745000,
I/ViewRootImpl[MainAbilityShellActivity]: nextDraw finished callback
D/ActionMenuPresenter: initForMenu: width = mWidthLimit = 540
D/ActionMenuPresenter: initForMenu: width -= mHwOverflowButton.getMeasuredWidth() width: 420
    initForMenu: mActionItemWidthLimit = width: 420
    initForMenu:  MIN_CELL_SIZE: 56 density: 3.0
D/ActionMenuPresenter: flagActionItems: widthLimit = mActionItemWidthLimit = 420
    flagActionItems: mStrictWidthLimit: false
I/Choreographer: Skipped 31 frames!  The application may be doing too much work on its main thread.
I/ViewRootImpl[MainAbilityShellActivity]: relayoutWindow reason: params != null
I/ViewRootImpl[MainAbilityShellActivity]: relayoutWindow relayoutResult 1
I/HwViewRootImpl: removeInvalidNode jank list is null
I/ViewRootImpl[MainAbilityShellActivity]: handleWindowFocusChanged: hasWindowFocus true inTouchMode true
D/DecorView: showOrHideHighlightView: hasFocus=true; winMode=1; isMrgNull=true
W/InputMethodManager: startInputReason = 1
D/AGP: can not find focus in [UILinearLayout ID(259) Id(-1)]
I/LoadedApk: makePaths: outLibPaths=[/hw_product/region_comm/china/app/HwHiAiEngine/lib/arm64, /hw_product/region_comm/china/app/HwHiAiEngine/HwHiAiEngine.apk!/lib/arm64-v8a, /system/lib64:/hw_product/lib64:/system/product/lib64]
D/ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.hidl.base-V1.0-java.jar
    Returning zygote-cached class loader: /system/framework/android.hidl.manager-V1.0-java.jar
    Returning zygote-cached class loader: /system/framework/android.hidl.base-V1.0-java.jar
I/OpenGLRenderer: Davey! duration=1737ms; Flags=1, IntendedVsync=11824709040200, Vsync=11826259040200, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=11826281834280, AnimationStart=11826281957680, PerformTraversalsStart=11826286950240, DrawStart=11826338921420, SyncQueued=11826339629040, SyncStart=11826339936160, IssueDrawCommandsStart=11826340023840, SwapBuffers=11826340406880, FrameCompleted=11826446677340, DequeueBufferDuration=23200000, QueueBufferDuration=45344000,
D/HwLoadedApk: libSearchPath: /hw_product/region_comm/china/app/HwHiAiEngine/visionplugin-focusocr-orlando-china-release.apk!/lib/arm64-v8a:/hw_product/region_comm/china/app/HwHiAiEngine/lib/arm64:/hw_product/region_comm/china/app/HwHiAiEngine/HwHiAiEngine.apk!/lib/arm64-v8a:/system/lib64:/hw_product/lib64:/system/product/lib64
W/imagebykeyword: Accessing hidden method Landroid/os/SystemProperties;-><init>()V (greylist, reflection, allowed)
I/HwHiAIEngine_SystemPropertiesUtil: debugOnFlag is:0
D/EngineManager: new EngineManager prepared is  false
D/EngineManager: prepare 659468 com.huawei.searchimagebykeywords
    not prepared to request com.huawei.searchimagebykeywords
E/HwHiAIEngine_HealthCoreManager: HealthCore is null,check setCoreService had been called
D/EngineManager: permitted com.huawei.searchimagebykeywords
I/HwHiAIEngine_postDic: timestamp init start
I/HwHiAIEngine_PostDic.EnglishWordCorrection: FocusShortOCR: get resource correct!
I/HwHiAIEngine_postDic: timestamp init end
D/JNI_FOCUS_OCR: start load library
I/imagebykeywords: type=1400 audit(0.0:6681): avc: denied { read } for pid=12714 name="vendor.huawei.hardware.ai.signature@1.0.so" dev="vdd1" ino=7342 scontext=u:r:untrusted_app:s0:c84,c256,c512,c768 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
I/imagebykeywords: type=1400 audit(0.0:6682): avc: denied { open } for pid=12714 path="/vendor/lib64/vendor.huawei.hardware.ai.signature@1.0.so" dev="vdd1" ino=7342 scontext=u:r:untrusted_app:s0:c84,c256,c512,c768 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
    type=1400 audit(0.0:6683): avc: denied { getattr } for pid=12714 path="/vendor/lib64/vendor.huawei.hardware.ai.signature@1.0.so" dev="vdd1" ino=7342 scontext=u:r:untrusted_app:s0:c84,c256,c512,c768 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
I/imagebykeywords: type=1400 audit(0.0:6684): avc: denied { execute } for pid=12714 path="/vendor/lib64/vendor.huawei.hardware.ai.signature@1.0.so" dev="vdd1" ino=7342 scontext=u:r:untrusted_app:s0:c84,c256,c512,c768 tcontext=u:object_r:vendor_file:s0 tclass=file permissive=1
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/ENGINE: RegisterTensor(246)::"Tensor register success! type is :AINeuralNetworkBuffer."
I/HwHiAIEngine_VisionTextConfiguration: fromBundle isTracking:0
I/HwHiAIEngine_FocusShootOCREngine: focus ocr mode type : MODE_IN
I/HwHiAIEngine_FocusShootOCREngine: app: call getOcrResultByRect(native) in FocusShootOCREngine plugin;
    after rescaled, height:651,width: 650,Config:ARGB_8888
I/aiclient: AiModelManagerImpl constructor
I/ServiceManagement: getService: Trying again for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver...
W/ServiceManagement: Waited one second for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver
I/ServiceManagement: getService: Trying again for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver...
W/ServiceManagement: Waited one second for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver
I/ServiceManagement: getService: Trying again for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver...
W/ServiceManagement: Waited one second for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver
I/ServiceManagement: getService: Trying again for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver...
W/ServiceManagement: Waited one second for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver
I/ServiceManagement: getService: Trying again for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver...
D/EngineManager: release callingUid iscom.huawei.searchimagebykeywords 659468
W/ServiceManagement: Waited one second for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver
I/ServiceManagement: getService: Trying again for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver...
W/ServiceManagement: Waited one second for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver
I/ServiceManagement: getService: Trying again for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver...
W/ServiceManagement: Waited one second for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver
I/ServiceManagement: getService: Trying again for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver...
W/ServiceManagement: Waited one second for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver
I/ServiceManagement: getService: Trying again for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver...
W/ServiceManagement: Waited one second for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver
I/ServiceManagement: getService: Trying again for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver...
W/ServiceManagement: Waited one second for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver
I/ServiceManagement: getService: Trying again for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver...
W/ServiceManagement: Waited one second for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver
I/ServiceManagement: getService: Trying again for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver...
W/ServiceManagement: Waited one second for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver
I/ServiceManagement: getService: Trying again for vendor.huawei.hardware.ai@1.3::IAiEngineService/hiaiserver...

回帖

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容图片侵权或者其他问题,请联系本站作侵删。 侵权投诉
链接复制成功,分享给好友