Skip to content
New issue

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

GPU examples don't work correctly on android #232

Closed
NickTaSpy opened this issue Nov 8, 2019 · 6 comments
Closed

GPU examples don't work correctly on android #232

NickTaSpy opened this issue Nov 8, 2019 · 6 comments
Labels
gpu MediaPipe GPU related issues platform:android Issues with Android as Platform

Comments

@NickTaSpy
Copy link

NickTaSpy commented Nov 8, 2019

I've managed to build and install a few examples that come with mediapipe on my Samsung Galaxy A3 2016 and it looks like most GPU applications don't work correctly like the CPU ones do.

I am running android studio on Linux Mint using VirtualBox but I doubt this is an issue.

Is my phone's GPU not supported?

My bazel flags are like this (my phone doesn't support arm64):
-c opt --config=android_arm

The black shapes in the pictures below are just post processing of the screenshots.

ObjectDetectionCPU_Works
HandDetectionGPU_Broken
ObjectDetectionGPU_Broken

@eknight7 eknight7 added platform:android Issues with Android as Platform bug gpu MediaPipe GPU related issues labels Nov 14, 2019
@NickTaSpy
Copy link
Author

Here are some logs. I hope this helps.

11/17 17:54:49: Launching 'ObjectDetectionGPU'.
$ adb shell am start -n "com.google.mediapipe.apps.objectdetectiongpu/com.google.mediapipe.apps.objectdetectiongpu.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.google.mediapipe.apps.objectdetectiongpu
Connecting to com.google.mediapipe.apps.objectdetectiongpu
Connected to the target VM, address: 'localhost:8600', transport: 'socket'
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
E/Zygote: v2
I/libpersona: KNOX_SDCARD checking this for 10234
    KNOX_SDCARD not a persona
E/Zygote: accessInfo : 0
W/SELinux: SELinux selinux_android_compute_policy_index : Policy Index[2],  Con:u:r:zygote:s0 RAM:SEPF_SECMOBILE_7.0_0010, [-1 -1 -1 -1 0 1]
I/SELinux: SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.google.mediapipe.apps.objectdetectiongpu 
I/art: Late-enabling -Xcheck:jni
D/TimaKeyStoreProvider: TimaKeyStore is not enabled: cannot add TimaSignature Service and generateKeyPair Service
W/ActivityThread: Application com.google.mediapipe.apps.objectdetectiongpu is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/art: Debugger is active
I/System.out: Debugger has connected
    waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1355)
W/System: ClassLoader referenced unknown path: /data/app/com.google.mediapipe.apps.objectdetectiongpu-2/lib/arm
I/art: Do partial code cache collection, code=30KB, data=26KB
    After code cache collection, code=24KB, data=22KB
    Increasing code cache capacity to 128KB
V/StubApplication: StubApplication created. Android package is com.google.mediapipe.apps.objectdetectiongpu, real application class is android.app.Application.
V/StubApplication: Found external resources at /data/local/tmp/incrementaldeployment/com.google.mediapipe.apps.objectdetectiongpu/resources.ap_
V/StubApplication: Deleting /data/user/0/com.google.mediapipe.apps.objectdetectiongpu/incrementallib/libmediapipe_jni.so
V/StubApplication: Deleting /data/user/0/com.google.mediapipe.apps.objectdetectiongpu/incrementallib/libopencv_java4.so
V/StubApplication: Copying: libmediapipe_jni.so
    Copying /data/local/tmp/incrementaldeployment/com.google.mediapipe.apps.objectdetectiongpu/native/libmediapipe_jni.so -> /data/user/0/com.google.mediapipe.apps.objectdetectiongpu/incrementallib/libmediapipe_jni.so
V/StubApplication: Copying: libopencv_java4.so
V/StubApplication: Copying /data/local/tmp/incrementaldeployment/com.google.mediapipe.apps.objectdetectiongpu/native/libopencv_java4.so -> /data/user/0/com.google.mediapipe.apps.objectdetectiongpu/incrementallib/libopencv_java4.so
V/StubApplication: Copying /data/local/tmp/incrementaldeployment/com.google.mediapipe.apps.objectdetectiongpu/native/native_manifest -> /data/user/0/com.google.mediapipe.apps.objectdetectiongpu/incrementallib/manifest
V/IncrementalClassLoader: Incremental dex path is /data/local/tmp/incrementaldeployment/com.google.mediapipe.apps.objectdetectiongpu/dex/incremental_classes1.dex
    Native lib dir is /data/user/0/com.google.mediapipe.apps.objectdetectiongpu/incrementallib
V/INCREMENTAL: disableContentProviders
V/INCREMENTAL: enableContentProviders
D/Camera2Initializer: CameraX initializing with Camera2 ...
I/CameraManagerGlobal: Connecting to camera service
D/CameraRepository: Added camera: 0
D/CameraRepository: Added camera: 1
D/UseCaseAttachState: Active and online use case: [] for camera: 0
D/UseCaseAttachState: Active and online use case: [] for camera: 1
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
I/art: Background sticky concurrent mark sweep GC freed 7141(556KB) AllocSpace objects, 4(3MB) LOS objects, 48% free, 3MB/7MB, paused 10.957ms total 42.215ms
I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener;
        at java.lang.Class dalvik.system.DexFile.defineClassNative(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile) (DexFile.java:-2)
        at java.lang.Class dalvik.system.DexFile.defineClass(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile, java.util.List) (DexFile.java:299)
        at java.lang.Class dalvik.system.DexFile.loadClassBinaryName(java.lang.String, java.lang.ClassLoader, java.util.List) (DexFile.java:292)
        at java.lang.Class dalvik.system.DexPathList.findClass(java.lang.String, java.util.List) (DexPathList.java:418)
        at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:54)
        at java.lang.Class com.google.devtools.build.android.incrementaldeployment.IncrementalClassLoader$DelegateClassLoader.findClass(java.lang.String) (IncrementalClassLoader.java:57)
        at java.lang.Class com.google.devtools.build.android.incrementaldeployment.IncrementalClassLoader.findClass(java.lang.String) (IncrementalClassLoader.java:43)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:367)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:367)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
        at void androidx.core.view.ViewCompat.setBackground(android.view.View, android.graphics.drawable.Drawable) (ViewCompat.java:2559)
        at void androidx.appcompat.widget.ActionBarContainer.<init>(android.content.Context, android.util.AttributeSet) (ActionBarContainer.java:63)
        at java.lang.Object java.lang.reflect.Constructor.newInstance0!(java.lang.Object[]) (Constructor.java:-2)
        at java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[]) (Constructor.java:430)
        at android.view.View android.view.LayoutInflater.createView(java.lang.String, java.lang.String, android.util.AttributeSet) (LayoutInflater.java:652)
        at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:794)
        at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (LayoutInflater.java:734)
        at void android.view.LayoutInflater.rInflate(org.xmlpull.v1.XmlPullParser, android.view.View, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:865)
I/art:     at void android.view.LayoutInflater.rInflateChildren(org.xmlpull.v1.XmlPullParser, android.view.View, android.util.AttributeSet, boolean) (LayoutInflater.java:828)
        at android.view.View android.view.LayoutInflater.inflate(org.xmlpull.v1.XmlPullParser, android.view.ViewGroup, boolean) (LayoutInflater.java:525)
        at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup, boolean) (LayoutInflater.java:427)
        at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup) (LayoutInflater.java:378)
        at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:739)
        at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:649)
        at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:542)
        at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:161)
        at void com.google.mediapipe.apps.objectdetectiongpu.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:74)
        at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6955)
        at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1126)
        at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2927)
        at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:3045)
        at void android.app.ActivityThread.-wrap14(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
        at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1642)
        at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
        at void android.os.Looper.loop() (Looper.java:154)
        at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6776)
        at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
        at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1496)
        at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1386)
    Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[dex file "/data/local/tmp/incrementaldeployment/com.google.mediapipe.apps.objectdetectiongpu/dex/incremental_classes1.dex"],nativeLibraryDirectories=[/data/user/0/com.google.mediapipe.apps.objectdetectiongpu/incrementallib, /system/lib, /vendor/lib]]
        at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
        at java.lang.Class com.google.devtools.build.android.incrementaldeployment.IncrementalClassLoader$DelegateClassLoader.findClass(java.lang.String) (IncrementalClassLoader.java:57)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
        at java.lang.Class dalvik.system.DexFile.defineClassNative(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile) (DexFile.java:-2)
        at java.lang.Class dalvik.system.DexFile.defineClass(java.lang.String, java.lang.ClassLoader, java.lang.Object, dalvik.system.DexFile, java.util.List) (DexFile.java:299)
        at java.lang.Class dalvik.system.DexFile.loadClassBinaryName(java.lang.String, java.lang.ClassLoader, java.util.List) (DexFile.java:292)
        at java.lang.Class dalvik.system.DexPathList.findClass(java.lang.String, java.util.List) (DexPathList.java:418)
        at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:54)
        at java.lang.Class com.google.devtools.build.android.incrementaldeployment.IncrementalClassLoader$DelegateClassLoader.findClass(java.lang.String) (IncrementalClassLoader.java:57)
        at java.lang.Class com.google.devtools.build.android.incrementaldeployment.IncrementalClassLoader.findClass(java.lang.String) (IncrementalClassLoader.java:43)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:367)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:367)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
        at void androidx.core.view.ViewCompat.setBackground(android.view.View, android.graphics.drawable.Drawable) (ViewCompat.java:2559)
        at void androidx.appcompat.widget.ActionBarContainer.<init>(android.content.Context, android.util.AttributeSet) (ActionBarContainer.java:63)
        at java.lang.Object java.lang.reflect.Constructor.newInstance0!(java.lang.Object[]) (Constructor.java:-2)
        at java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[]) (Constructor.java:430)
        at android.view.View android.view.LayoutInflater.createView(java.lang.String, java.lang.String, android.util.AttributeSet) (LayoutInflater.java:652)
        at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:794)
        at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (LayoutInflater.java:734)
        at void android.view.LayoutInflater.rInflate(org.xmlpull.v1.XmlPullParser, android.view.View, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:865)
        at void android.view.LayoutInflater.rInflateChildren(org.xmlpull.v1.XmlPullParser, android.view.View, android.util.AttributeSet, boolean) (LayoutInflater.java:828)
        at android.view.View android.view.LayoutInflater.inflate(org.xmlpull.v1.XmlPullParser, android.view.ViewGroup, boolean) (LayoutInflater.java:525)
        at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup, boolean) (LayoutInflater.java:427)
        at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup) (LayoutInflater.java:378)
        at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:739)
        at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:649)
        at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:542)
        at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:161)
        at void com.google.mediapipe.apps.objectdetectiongpu.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:74)
        at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6955)
        at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1126)
        at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2927)
        at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:3045)
        at void android.app.ActivityThread.-wrap14(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
        at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1642)
        at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
        at void android.os.Looper.loop() (Looper.java:154)
        at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6776)
        at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
        at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1496)
        at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1386)
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
I/native: I1117 17:55:08.838407 25962 asset_manager_util.cc:43] Created global reference to asset manager.
D/libEGL: loaded /vendor/lib/egl/libGLES_mali.so
E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)
I/native: I1117 17:55:09.028206 25962 gl_context_egl.cc:158] Successfully initialized EGL. Major : 1 Minor: 4
I/native: I1117 17:55:09.033291 26385 gl_context.cc:233] GL version: 3.1 (OpenGL ES 3.1 v1.r15p0-00rel0.bdd9e62cdc8c88e0610a16b5901161e9)
D/PermissionHelper: checkAndRequestCameraPermissions
D/GlThread: Starting GL thread ExternalTextureConverter
I/art: Do partial code cache collection, code=62KB, data=58KB
I/art: After code cache collection, code=57KB, data=54KB
    Increasing code cache capacity to 256KB
I/Camera2CameraInfo: Device Level: INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY
D/Camera: Use cases [Preview:androidx.camera.core.Preview-6331e4dd-0907-4991-8a0d-ecc7655c7ea6] ONLINE for camera 0
D/Camera: Opening camera: 0
D/UseCaseAttachState: All use case: [androidx.camera.core.Preview-6331e4dd-0907-4991-8a0d-ecc7655c7ea6] for camera: 0
I/CameraManager: Using legacy camera HAL.
D/Choreographer: init sf_choreo_doframe   debug_Level : 0x4f4cdebug_game_running : false
D/ViewRootImpl@add94f5[MainActivity]: ThreadedRenderer.create() translucent=false
D/InputTransport: Input channel constructed: fd=81
D/ViewRootImpl@add94f5[MainActivity]: setView = DecorView@9351c1d[MainActivity] touchMode=true
D/UseCaseAttachState: Active and online use case: [] for camera: 0
D/UseCaseAttachState: All use case: [androidx.camera.core.Preview-6331e4dd-0907-4991-8a0d-ecc7655c7ea6] for camera: 0
D/Camera: Closing Capture Session
    CameraDevice is null
D/Camera: Use case Preview:androidx.camera.core.Preview-6331e4dd-0907-4991-8a0d-ecc7655c7ea6 ACTIVE for camera 0
D/UseCaseAttachState: Active and online use case: [androidx.camera.core.Preview-6331e4dd-0907-4991-8a0d-ecc7655c7ea6] for camera: 0
D/Camera: CameraDevice.onOpened(): 0
D/UseCaseAttachState: All use case: [androidx.camera.core.Preview-6331e4dd-0907-4991-8a0d-ecc7655c7ea6] for camera: 0
D/Camera: Closing Capture Session
D/ViewRootImpl@add94f5[MainActivity]: dispatchAttachedToWindow
D/ViewRootImpl@add94f5[MainActivity]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][720,1280] result=0x27 surface={isValid=true -903507968} surfaceGenerationChanged=true
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
D/ViewRootImpl@add94f5[MainActivity]: mHardwareRenderer.initialize() mSurface={isValid=true -903507968} hwInitialized=true
D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000,  [720x1280]-format:1
D/SurfaceView: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,160][720,1280] result=0x7 surface={Surface(name=null)/@0x80d7908 isValid=true -903505920}
D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000,  [720x1120]-format:1
D/ViewRootImpl@add94f5[MainActivity]: Relayout returned: oldFrame=[0,0][720,1280] newFrame=[0,0][720,1280] result=0x1 surface={isValid=true -903507968} surfaceGenerationChanged=false
D/SurfaceView: Relayout returned: oldFrame=[0,160][720,1280] newFrame=[0,160][720,1280] result=0x1 surface={Surface(name=null)/@0x80d7908 isValid=true -903417856}
D/CaptureSession: Opening capture session.
D/ViewRootImpl@add94f5[MainActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 720, 1280) ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 0) or=1
    MSG_WINDOW_FOCUS_CHANGED 1
D/ViewRootImpl@add94f5[MainActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true -903507968}
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@242907b nm : com.google.mediapipe.apps.objectdetectiongpu ic=null
I/CameraDeviceState: Legacy camera service transitioning to state CONFIGURING
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
I/RequestThread-0: Configure outputs: 1 surfaces configured.
D/Camera: app passed NULL surface
D/InputTransport: Input channel constructed: fd=92
D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000,  [960x720]-format:1
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@a636ae nm : com.google.mediapipe.apps.objectdetectiongpu ic=null
I/CameraDeviceState: Legacy camera service transitioning to state IDLE
D/CaptureSession: Attempting to send capture request onConfigured
    Issuing request for session.
I/RequestQueue: Repeating capture request set.
D/CaptureSession: CameraCaptureSession.onConfigured()
    CameraCaptureSession.onReady()
W/LegacyRequestMapper: convertRequestMetadata - control.awbRegions setting is not supported, ignoring value
W/LegacyRequestMapper: Only received metering rectangles with weight 0.
W/LegacyRequestMapper: convertRequestToMetadata - Ignoring android.lens.focusDistance false, only 0.0f is supported
I/CameraDeviceState: Legacy camera service transitioning to state CAPTURING
D/ExternalTextureConv: Created output texture: 2 width: 840 height: 1120
I/native: I1117 17:55:12.003393 26388 graph.cc:415] Start running the graph, waiting for inputs.
I/native: I1117 17:55:12.006397 26388 gl_context_egl.cc:158] Successfully initialized EGL. Major : 1 Minor: 4
I/native: I1117 17:55:12.009706 26554 gl_context.cc:233] GL version: 3.1 (OpenGL ES 3.1 v1.r15p0-00rel0.bdd9e62cdc8c88e0610a16b5901161e9)
D/ExternalTextureConv: Created output texture: 3 width: 840 height: 1120
I/native: I1117 17:55:12.051671 26551 jni_util.cc:40] GetEnv: not attached
I/native: I1117 17:55:13.277561 26385 resource_util_android.cc:53] Successfully loaded: ssdlite_object_detection.tflite
I/tflite: Initialized TensorFlow Lite runtime.
I/tflite: Created TensorFlow Lite delegate for GPU.
I/tflite: Replacing 114 node(s) with delegate (TfLiteGpuDelegate) node, yielding 1 partitions.
D/ViewRootImpl@add94f5[MainActivity]: ViewPostImeInputStage processPointer 0
W/System: ClassLoader referenced unknown path: /system/framework/QPerformance.jar
E/BoostFramework: BoostFramework() : Exception_1 = java.lang.ClassNotFoundException: Didn't find class "com.qualcomm.qti.Performance" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib, /vendor/lib]]
V/BoostFramework: BoostFramework() : mPerf = null
D/ViewRootImpl@add94f5[MainActivity]: ViewPostImeInputStage processPointer 1
I/art: Background partial concurrent mark sweep GC freed 67895(2MB) AllocSpace objects, 3(192KB) LOS objects, 49% free, 4MB/8MB, paused 1.283ms total 115.794ms
I/native: I1117 17:55:25.601790 26552 resource_util_android.cc:53] Successfully loaded: ssdlite_object_detection_labelmap.txt
W/: g2d fimg library does not exist
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
I/native: I1117 17:55:27.000571 26385 jni_util.cc:40] GetEnv: not attached
I/native: I1117 17:55:27.085674 26550 jni_util.cc:40] GetEnv: not attached
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
I/native: I1117 17:55:27.524381 26552 jni_util.cc:40] GetEnv: not attached
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
I/native: I1117 17:55:28.050240 26553 jni_util.cc:40] GetEnv: not attached
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
I/art: Do full code cache collection, code=125KB, data=124KB
I/art: After code cache collection, code=94KB, data=84KB
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@5bc27a3 nm : com.google.mediapipe.apps.objectdetectiongpu ic=null
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=130
D/InputTransport: Input channel destroyed: fd=92
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
W/: fimg library or stretchFimgApi_v5 symbol can not be loaded
Disconnected from the target VM, address: 'localhost:8600', transport: 'socket'

@eknight7
Copy link

It seems like the problem is with

Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener;

Let's debug this.

Can you try running an example app from Android Jetpack? Here is one: https://github.com/android/sunflower

Other users who faced a similar issue running the example app with Android Jetpack have a related thread here: android/sunflower#295

Please try this and share results. Thanks!

@NickTaSpy
Copy link
Author

Thanks for helping. I ran the sunflower project as you said and here are the logs:

11/18 20:01:32: Launching 'app' on samsung SM-A310F.
$ adb shell am start -n "com.google.samples.apps.sunflower/com.google.samples.apps.sunflower.GardenActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.google.samples.apps.sunflower | com.google.samples.apps.sunflower.test
Waiting for application to come online: com.google.samples.apps.sunflower | com.google.samples.apps.sunflower.test
Connecting to com.google.samples.apps.sunflower
Connected to the target VM, address: 'localhost:8600', transport: 'socket'
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
E/Zygote: v2
I/libpersona: KNOX_SDCARD checking this for 10235
I/libpersona: KNOX_SDCARD not a persona
E/Zygote: accessInfo : 0
W/SELinux: SELinux selinux_android_compute_policy_index : Policy Index[2],  Con:u:r:zygote:s0 RAM:SEPF_SECMOBILE_7.0_0010, [-1 -1 -1 -1 0 1]
I/SELinux: SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.google.samples.apps.sunflower 
I/art: Late-enabling -Xcheck:jni
D/TimaKeyStoreProvider: TimaKeyStore is not enabled: cannot add TimaSignature Service and generateKeyPair Service
W/ActivityThread: Application com.google.samples.apps.sunflower is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/art: Debugger is active
I/System.out: Debugger has connected
    waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1332)
W/System: ClassLoader referenced unknown path: /data/app/com.google.samples.apps.sunflower-1/lib/arm
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$OnUnhandledKeyEventListenerWrapper>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener;
        at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2203)
        at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:637)
        at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:518)
        at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:466)
        at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:140)
        at androidx.databinding.ViewDataBinding androidx.databinding.DataBindingUtil.setContentView(android.app.Activity, int, androidx.databinding.DataBindingComponent) (DataBindingUtil.java:303)
        at androidx.databinding.ViewDataBinding androidx.databinding.DataBindingUtil.setContentView(android.app.Activity, int) (DataBindingUtil.java:284)
        at void com.google.samples.apps.sunflower.GardenActivity.onCreate(android.os.Bundle) (GardenActivity.kt:36)
        at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6955)
        at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1126)
        at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2927)
        at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:3045)
        at void android.app.ActivityThread.-wrap14(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
        at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1642)
        at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
        at void android.os.Looper.loop() (Looper.java:154)
        at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6776)
        at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
        at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1496)
        at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1386)
    Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/com.google.samples.apps.sunflower-1/base.apk"],nativeLibraryDirectories=[/data/app/com.google.samples.apps.sunflower-1/lib/arm, /system/lib, /vendor/lib]]
        at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
I/art:     at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
        at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2203)
        at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:637)
        at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:518)
        at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:466)
        at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:140)
        at androidx.databinding.ViewDataBinding androidx.databinding.DataBindingUtil.setContentView(android.app.Activity, int, androidx.databinding.DataBindingComponent) (DataBindingUtil.java:303)
        at androidx.databinding.ViewDataBinding androidx.databinding.DataBindingUtil.setContentView(android.app.Activity, int) (DataBindingUtil.java:284)
        at void com.google.samples.apps.sunflower.GardenActivity.onCreate(android.os.Bundle) (GardenActivity.kt:36)
        at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6955)
        at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1126)
        at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2927)
        at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:3045)
        at void android.app.ActivityThread.-wrap14(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
        at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1642)
        at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
        at void android.os.Looper.loop() (Looper.java:154)
        at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6776)
        at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
        at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1496)
        at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1386)
D/TextView: setTypeface with style : 0
D/Choreographer: init sf_choreo_doframe   debug_Level : 0x4f4cdebug_game_running : false
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ThreadedRenderer.create() translucent=false
D/InputTransport: Input channel constructed: fd=62
D/ViewRootImpl@a4c84cd[GardenActivity]: setView = DecorView@eab71fc[GardenActivity] touchMode=true
D/ViewRootImpl@a4c84cd[GardenActivity]: dispatchAttachedToWindow
D/ViewRootImpl@a4c84cd[GardenActivity]: Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][720,1280] result=0x27 surface={isValid=true -631777280} surfaceGenerationChanged=true
D/ViewRootImpl@a4c84cd[GardenActivity]: mHardwareRenderer.initialize() mSurface={isValid=true -631777280} hwInitialized=true
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/libEGL: loaded /vendor/lib/egl/libGLES_mali.so
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000,  [720x1280]-format:1
D/ViewRootImpl@a4c84cd[GardenActivity]: Relayout returned: oldFrame=[0,0][720,1280] newFrame=[0,0][720,1280] result=0x1 surface={isValid=true -631777280} surfaceGenerationChanged=false
D/ViewRootImpl@a4c84cd[GardenActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 720, 1280) ci=Rect(0, 48 - 0, 0) vi=Rect(0, 48 - 0, 0) or=1
    MSG_WINDOW_FOCUS_CHANGED 1
D/ViewRootImpl@a4c84cd[GardenActivity]: mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true -631777280}
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@e8eba45 nm : com.google.samples.apps.sunflower ic=null
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=72
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@5e4859a nm : com.google.samples.apps.sunflower ic=null
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
W/System: ClassLoader referenced unknown path: /system/framework/QPerformance.jar
E/BoostFramework: BoostFramework() : Exception_1 = java.lang.ClassNotFoundException: Didn't find class "com.qualcomm.qti.Performance" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib, /vendor/lib]]
V/BoostFramework: BoostFramework() : mPerf = null
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
D/ViewRootImpl@a4c84cd[GardenActivity]: Relayout returned: oldFrame=[0,0][720,1280] newFrame=[0,0][720,1280] result=0x1 surface={isValid=true -631777280} surfaceGenerationChanged=false
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@ba1999f nm : com.google.samples.apps.sunflower ic=null
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=78
    Input channel destroyed: fd=72
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
I/art: Do partial code cache collection, code=20KB, data=30KB
    After code cache collection, code=20KB, data=30KB
    Increasing code cache capacity to 128KB
D/ViewRootImpl@a4c84cd[GardenActivity]: Relayout returned: oldFrame=[0,0][720,1280] newFrame=[0,0][720,1280] result=0x1 surface={isValid=true -631777280} surfaceGenerationChanged=false
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@85fe9d8 nm : com.google.samples.apps.sunflower ic=null
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=74
    Input channel destroyed: fd=78
I/art: Compiler allocated 4MB to compile void android.view.ViewRootImpl.performTraversals()
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
I/art: Do partial code cache collection, code=39KB, data=61KB
I/art: After code cache collection, code=38KB, data=61KB
    Increasing code cache capacity to 256KB
D/ViewRootImpl@a4c84cd[GardenActivity]: Relayout returned: oldFrame=[0,0][720,1280] newFrame=[0,0][720,1280] result=0x1 surface={isValid=true -631777280} surfaceGenerationChanged=false
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@315fc33 nm : com.google.samples.apps.sunflower ic=null
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=76
    Input channel destroyed: fd=74
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
I/art: Do full code cache collection, code=101KB, data=124KB
I/art: After code cache collection, code=99KB, data=98KB
I/art: Do partial code cache collection, code=104KB, data=110KB
    After code cache collection, code=104KB, data=110KB
    Increasing code cache capacity to 512KB
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
I/Choreographer: Skipped 72 frames!  The application may be doing too much work on its main thread.
D/TextView: setTypeface with style : 0
W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@63f5ee9 nm : com.google.samples.apps.sunflower ic=null
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=74
    Input channel destroyed: fd=76
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
I/art: Do full code cache collection, code=239KB, data=247KB
I/art: After code cache collection, code=221KB, data=201KB
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
D/TextView: setTypeface with style : 0
I/art: Do partial code cache collection, code=223KB, data=209KB
I/art: After code cache collection, code=223KB, data=209KB
    Increasing code cache capacity to 1024KB
D/TextView: setTypeface with style : 0
I/FloatingActionButton: Setting a custom background is not supported.
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@21083d3 nm : com.google.samples.apps.sunflower ic=null
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=91
    Input channel destroyed: fd=74
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/ViewRootImpl@a4c84cd[GardenActivity]: Relayout returned: oldFrame=[0,0][720,1280] newFrame=[0,0][720,1280] result=0x1 surface={isValid=true -631777280} surfaceGenerationChanged=false
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
I/art: Compiler allocated 4MB to compile void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
    (HTTPLog)-Static: isSBSettingEnabled false
D/TextView: setTypeface with style : 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
I/FloatingActionButton: Setting a custom background is not supported.
D/ViewRootImpl@a4c84cd[GardenActivity]: Relayout returned: oldFrame=[0,0][720,1280] newFrame=[0,0][720,1280] result=0x1 surface={isValid=true -631777280} surfaceGenerationChanged=false
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/ViewRootImpl@a4c84cd[GardenActivity]: Relayout returned: oldFrame=[0,0][720,1280] newFrame=[0,0][720,1280] result=0x1 surface={isValid=true -631777280} surfaceGenerationChanged=false
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
I/art: Do full code cache collection, code=505KB, data=502KB
I/art: After code cache collection, code=420KB, data=377KB
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
D/TextView: setTypeface with style : 0
D/ViewRootImpl@a4c84cd[GardenActivity]: Relayout returned: oldFrame=[0,0][720,1280] newFrame=[0,0][720,1280] result=0x1 surface={isValid=true -631777280} surfaceGenerationChanged=false
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@bbad722 nm : com.google.samples.apps.sunflower ic=null
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=93
    Input channel destroyed: fd=91
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 0
D/ViewRootImpl@a4c84cd[GardenActivity]: ViewPostImeInputStage processPointer 1
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@94ba5f5 nm : com.google.samples.apps.sunflower ic=null
I/InputMethodManager: [IMM] startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=90
    Input channel destroyed: fd=93
Disconnected from the target VM, address: 'localhost:8600', transport: 'socket'

@eknight7
Copy link

Okay, so it seems there is an issue with running Android Jetpack APIs on your device. Can you try and debug this? Here is a thread for reference: android/sunflower#295

@mgyong
Copy link

mgyong commented Nov 22, 2019

@NickTaSpy Can you check out the v0.6.5 release as it has a mali fix that might solve your problem? Appreciate if you could try and let us know the result.

@NickTaSpy
Copy link
Author

@NickTaSpy Can you check out the v0.6.5 release as it has a mali fix that might solve your problem? Appreciate if you could try and let us know the result.

I tried a few GPU examples and they work fine. Thank you!

arttupii pushed a commit to arttupii/mediapipe that referenced this issue Nov 18, 2023
…ting_seperate_model

Update selecting model face stylization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gpu MediaPipe GPU related issues platform:android Issues with Android as Platform
Projects
None yet
Development

No branches or pull requests

4 participants