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

Run Android Example Crash!!! #5832

Open
kaka-lin opened this issue Jan 21, 2025 · 2 comments
Open

Run Android Example Crash!!! #5832

kaka-lin opened this issue Jan 21, 2025 · 2 comments
Assignees
Labels
legacy:face detection Issues related to Face Detection legacy:hair segmentation Hair Segmentation related issues platform::android Android Solutions platform:c++ Issues specific to C++ framework in mediapipe stale stat:awaiting response Waiting for user response type:bug Bug in the Source Code of MediaPipe Solution

Comments

@kaka-lin
Copy link

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

No

OS Platform and Distribution

macOS (m2)

Mobile device if the issue happens on mobile device

Google Pixel 6, OPPO CPH2145

Browser and version if the issue happens on browser

No response

Programming Language and version

c++

MediaPipe version

0.10.20

Bazel version

6.5

Solution

facedetectiongpu, hairsegmentationgpu

Android Studio, NDK, SDK versions (if issue is related to building in Android environment)

26.3.11579264

Xcode & Tulsi version (if issue is related to building for iOS)

No response

Describe the actual behavior

Running example of android would be crashed, except basic example

Describe the expected behaviour

Can running any example of android

Standalone code/steps you may have used to try to get what you need

I don't modify any code, only using master branch! commit: cf6e4ec

Other info / Complete Logs

01/21 18:22:24: Launching 'hairsegmentationgpu' on <default>.
$ adb shell am start -n "com.google.mediapipe.apps.hairsegmentationgpu/com.google.mediapipe.apps.basic.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 25163 on device 'oppo-cph2145-87044b4b'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/segmentationgp: Late-enabling -Xcheck:jni
E/segmentationgp: Unknown bits set in runtime_flags: 0x40000000
I/segmentationgp: Using CollectorTypeCC GC.
D/ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
I/OneTrace: Mark active for pid=25163? true
D/cutils-dev: otrace_set_tracing_enabled? true
D/cutils-dev: properties changed in otrace_seq_number_changed!
D/CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10907; state: ENABLED
I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusAutoResolutionFeature
I/oplus.android.OplusFrameworkFactoryImpl: getOplusAutoResolutionFeature
D/LoadedApk: mApplicationInfo overrideDisplayId:null
W/ziparchive: Unable to open '/data/app/~~RXASy1RyKit9dZ6gr8mukg==/com.google.mediapipe.apps.hairsegmentationgpu-FWgcqfs4akVOGwRtm6Bxig==/base.dm': No such file or directory
W/ziparchive: Unable to open '/data/app/~~RXASy1RyKit9dZ6gr8mukg==/com.google.mediapipe.apps.hairsegmentationgpu-FWgcqfs4akVOGwRtm6Bxig==/base.dm': No such file or directory
D/nativeloader: Configuring clns-4 for other apk /data/app/~~RXASy1RyKit9dZ6gr8mukg==/com.google.mediapipe.apps.hairsegmentationgpu-FWgcqfs4akVOGwRtm6Bxig==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~RXASy1RyKit9dZ6gr8mukg==/com.google.mediapipe.apps.hairsegmentationgpu-FWgcqfs4akVOGwRtm6Bxig==/lib/arm64, permitted_path=/data:/mnt/expand:/data/user/0/com.google.mediapipe.apps.hairsegmentationgpu
E/LoadedApk: Unable to instantiate appComponentFactory
    java.lang.ClassNotFoundException: Didn't find class "androidx.core.app.CoreComponentFactory" on path: DexPathList[[zip file "/data/app/~~RXASy1RyKit9dZ6gr8mukg==/com.google.mediapipe.apps.hairsegmentationgpu-FWgcqfs4akVOGwRtm6Bxig==/base.apk"],nativeLibraryDirectories=[/data/app/~~RXASy1RyKit9dZ6gr8mukg==/com.google.mediapipe.apps.hairsegmentationgpu-FWgcqfs4akVOGwRtm6Bxig==/lib/arm64, /system/lib64, /system_ext/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:637)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
        at android.app.LoadedApk.createAppFactory(LoadedApk.java:266)
        at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:989)
        at android.app.LoadedApk.getClassLoader(LoadedApk.java:1080)
        at android.app.LoadedApk.getResources(LoadedApk.java:1338)
        at android.app.ContextImpl.createAppContext(ContextImpl.java:3044)
        at android.app.ContextImpl.createAppContext(ContextImpl.java:3036)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6925)
        at android.app.ActivityThread.access$1800(ActivityThread.java:253)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2183)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:233)
        at android.os.Looper.loop(Looper.java:344)
        at android.app.ActivityThread.main(ActivityThread.java:8191)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
I/Quality: LaunchTime2.0: com.google.mediapipe.apps.hairsegmentationgpu createOrUpdateClassLoaderLocked took time: 8
V/GraphicsEnvironment: ANGLE Developer option for 'com.google.mediapipe.apps.hairsegmentationgpu' set to: 'default'
V/GraphicsEnvironment: Updatable production driver is not supported on the device.
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
V/StubApplication: StubApplication created. Android package is com.google.mediapipe.apps.hairsegmentationgpu, real application class is android.app.Application.
V/StubApplication: Found external resources at /data/local/tmp/incrementaldeployment/com.google.mediapipe.apps.hairsegmentationgpu/resources.ap_
V/StubApplication: Deleting /data/user/0/com.google.mediapipe.apps.hairsegmentationgpu/incrementallib/libmediapipe_jni.so
V/StubApplication: Deleting /data/user/0/com.google.mediapipe.apps.hairsegmentationgpu/incrementallib/libc++_shared.so
V/StubApplication: Deleting /data/user/0/com.google.mediapipe.apps.hairsegmentationgpu/incrementallib/libopencv_java4.so
V/StubApplication: Copying: libmediapipe_jni.so
V/StubApplication: Copying /data/local/tmp/incrementaldeployment/com.google.mediapipe.apps.hairsegmentationgpu/native/libmediapipe_jni.so -> /data/user/0/com.google.mediapipe.apps.hairsegmentationgpu/incrementallib/libmediapipe_jni.so
V/StubApplication: Copying: libc++_shared.so
V/StubApplication: Copying /data/local/tmp/incrementaldeployment/com.google.mediapipe.apps.hairsegmentationgpu/native/libc++_shared.so -> /data/user/0/com.google.mediapipe.apps.hairsegmentationgpu/incrementallib/libc++_shared.so
V/StubApplication: Copying: libopencv_java4.so
V/StubApplication: Copying /data/local/tmp/incrementaldeployment/com.google.mediapipe.apps.hairsegmentationgpu/native/libopencv_java4.so -> /data/user/0/com.google.mediapipe.apps.hairsegmentationgpu/incrementallib/libopencv_java4.so
V/StubApplication: Copying /data/local/tmp/incrementaldeployment/com.google.mediapipe.apps.hairsegmentationgpu/native/native_manifest -> /data/user/0/com.google.mediapipe.apps.hairsegmentationgpu/incrementallib/manifest
V/IncrementalClassLoader: Incremental dex path is /data/local/tmp/incrementaldeployment/com.google.mediapipe.apps.hairsegmentationgpu/dex/incremental_classes1.dex
V/IncrementalClassLoader: Native lib dir is /data/user/0/com.google.mediapipe.apps.hairsegmentationgpu/incrementallib
E/segmentationgp: Attempt to load writable dex file: /data/local/tmp/incrementaldeployment/com.google.mediapipe.apps.hairsegmentationgpu/dex/incremental_classes1.dex
W/segmentationgp: Unsupported class loader
W/segmentationgp: Unsupported class loader
W/segmentationgp: Accessing hidden field Ljava/lang/ClassLoader;->parent:Ljava/lang/ClassLoader; (unsupported, reflection, allowed)
V/INCREMENTAL: disableContentProviders
W/segmentationgp: Accessing hidden method Landroid/app/ActivityThread;->currentActivityThread()Landroid/app/ActivityThread; (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden field Landroid/app/ActivityThread;->mBoundApplication:Landroid/app/ActivityThread$AppBindData; (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden field Landroid/app/ActivityThread$AppBindData;->providers:Ljava/util/List; (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden field Landroid/app/ActivityThread;->mInitialApplication:Landroid/app/Application; (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden field Landroid/app/ActivityThread;->mAllApplications:Ljava/util/ArrayList; (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden field Landroid/app/LoadedApk;->mApplication:Landroid/app/Application; (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden field Landroid/app/LoadedApk;->mResDir:Ljava/lang/String; (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden field Landroid/app/Application;->mLoadedApk:Landroid/app/LoadedApk; (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden field Landroid/app/ActivityThread;->mPackages:Landroid/util/ArrayMap; (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden field Landroid/app/ActivityThread;->mResourcePackages:Landroid/util/ArrayMap; (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden method Landroid/content/res/AssetManager;-><init>()V (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden method Landroid/content/res/AssetManager;->addAssetPath(Ljava/lang/String;)I (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden method Landroid/app/ResourcesManager;->getInstance()Landroid/app/ResourcesManager; (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden field Landroid/app/ResourcesManager;->mResourceReferences:Ljava/util/ArrayList; (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden field Landroid/content/res/Resources;->mResourcesImpl:Landroid/content/res/ResourcesImpl; (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden field Landroid/content/res/ResourcesImpl;->mAssets:Landroid/content/res/AssetManager; (unsupported, reflection, allowed)
V/INCREMENTAL: enableContentProviders
W/segmentationgp: Accessing hidden method Landroid/app/ActivityThread;->installContentProviders(Landroid/content/Context;Ljava/util/List;)V (unsupported, reflection, allowed)
I/Quality: BindApplication: com.google.mediapipe.apps.hairsegmentationgpu
D/nativeloader: Configuring clns-5 for other apk . target_sdk_version=34, uses_libraries=ALL, library_path=/data/user/0/com.google.mediapipe.apps.hairsegmentationgpu/incrementallib, permitted_path=/data:/mnt/expand
D/nativeloader: Extending system_exposed_libraries: libvraudio_client.qti.so:libbinauralrenderer_wrapper.qti.so:libhoaeffects.qti.so:libQOC.qti.so:libupdateprof.qti.so:libQOC.qti.so:libdiag_system.qti.so:libqape.qti.so:libqesdk_ndk_platform.qti.so:liblistenjni.qti.so
D/nativeloader: Load /data/user/0/com.google.mediapipe.apps.hairsegmentationgpu/incrementallib/libmediapipe_jni.so using isolated ns clns-5 (caller=/data/local/tmp/incrementaldeployment/com.google.mediapipe.apps.hairsegmentationgpu/dex/incremental_classes1.dex): ok
D/nativeloader: Load /data/user/0/com.google.mediapipe.apps.hairsegmentationgpu/incrementallib/libopencv_java4.so using ns clns-5 from class loader (caller=/data/local/tmp/incrementaldeployment/com.google.mediapipe.apps.hairsegmentationgpu/dex/incremental_classes1.dex): ok
I/oplus.android.OplusFrameworkFactoryImpl: Unknow feature:IOplusTextViewRTLUtilForUG
D/ScrollOptimizationHelper: can't find the config file for optimizaiton
D/ScrollOptimizationHelper: will not debug for debug is false
I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusDynamicVsyncFeature
I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusDynamicVsyncFeature
I/oplus.android.OplusFrameworkFactoryImpl: get feature:IOplusDynamicVsyncFeature
W/segmentationgp: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
W/segmentationgp: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
E/OplusCustomizeRestrictionManager: sInstance is null, start a new sInstance
I/native: I0000 00:00:1737454947.809953   25163 asset_manager_util.cc:61] Created global reference to asset manager.
I/AdrenoGLES-0: QUALCOMM build                   : 1159e70389, I1027f1d7d9
    Build Date                       : 04/08/22
    OpenGL ES Shader Compiler Version: EV031.32.02.17
    Local Branch                     : 
    Remote Branch                    : 
    Remote Branch                    : 
    Reconstruct Branch               : 
I/AdrenoGLES-0: Build Config                     : S P 10.0.7 AArch64
I/AdrenoGLES-0: Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
I/AdrenoGLES-0: PFP: 0x016dd093, ME: 0x00000000
E/libEGL: validate_display:537 error 3008 (EGL_BAD_DISPLAY)
I/native: I0000 00:00:1737454947.834066   25163 gl_context_egl.cc:85] Successfully initialized EGL. Major : 1 Minor: 5
I/native: I0000 00:00:1737454947.836010   25267 gl_context.cc:369] GL version: 3.2 (OpenGL ES 3.2 [email protected] (GIT@1159e70389, I1027f1d7d9, 1649418316) (Date:04/08/22)), renderer: Adreno (TM) 620
D/PermissionHelper: checkAndRequestCameraPermissions
D/GlThread: Starting GL thread ExternalTextureConverter
D/OplusInputMethodUtil: init DEBUG to false, update DEBUG_IME to false
D/OplusInputMethodUtil: init DEBUG to false, update DEBUG_IME to false
I/OplusFeatureCache: Milliseconds spent on init(): 23
D/OplusSlideAnimOptHelper: com.google.mediapipe.apps.hairsegmentationgpu scrollEffectOpt enable = false
D/WindowManager: Add to mViews: DecorView@7794309[MainActivity],pkg= com.google.mediapipe.apps.hairsegmentationgpu
D/ExtensionsLoader: createInstance(64bit) : createExtendedFactory
E/ExtensionsLoader: dlopen failed: library "libhwuiextimpl.so" not found
D/ExtensionsLoader: createInstance(64bit) : createExtendedFactory
D/ExtensionsLoader: Opened libSchedAssistExtImpl.so
E/segmentationgp: ofbOpen failed with error=No such file or directory
E/segmentationgp: sysOpen failed with error=No such file or directory
D/GlThread: Stopping GL thread ExternalTextureConverter
D/ExtensionsLoader: createInstance(64bit) : createExtendedFactory
D/ExtensionsLoader: Opened libSchedAssistExtImpl.so
V/OplusZoomWindowDecorViewHelper: setLastReportedMergedConfiguration mZoomDisplayHeight: 2400 getDecorView.125387529
D/hw-ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
D/SurfaceComposerClient: VRR [FRTC] client handle [bufferId:18446744073709551615 framenumber:0] [ffffffff, ffffffff]
D/PermissionHelper: onRequestPermissionsResult
D/PermissionHelper: android.permission.CAMERA permission granted.
D/GlThread: Starting GL thread ExternalTextureConverter
I/CameraManagerExtImpl: getInstance success!
I/CameraManagerExtImpl: packagename is com.google.mediapipe.apps.hairsegmentationgpu
I/OplusCameraManager: saveOpPackageName, mOpPackageName: com.google.mediapipe.apps.hairsegmentationgpu
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
I/OplusCameraManagerGlobal: Connecting to camera service
I/CameraManagerGlobal: Connecting to camera service
I/CameraManagerExtImpl: packagename is com.google.mediapipe.apps.hairsegmentationgpu
I/OplusCameraManager: saveOpPackageName, mOpPackageName: com.google.mediapipe.apps.hairsegmentationgpu
W/libc: Access denied finding property "vendor.camera.aux.packagelist"
W/libc: Access denied finding property "vendor.camera.aux.packagelist"
W/libc: Access denied finding property "vendor.camera.aux.packagelist"
D/OplusCameraUtils: new OplusCameraUtils!
W/libc: Access denied finding property "vendor.camera.aux.packagelist"
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
W/libc: Access denied finding property "vendor.camera.aux.packagelist"
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
D/nativeloader: Load libSchedAssistJni.so using system ns (caller=/system/framework/oplus-framework.jar): ok
D/ExtensionsLoader: createInstance(64bit) : createExtendedFactory
D/ExtensionsLoader: Opened libSchedAssistExtImpl.so
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
W/libc: Access denied finding property "vendor.camera.aux.packagelist"
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
W/libc: Access denied finding property "vendor.camera.aux.packagelist"
D/CameraRepository: Added camera: 0
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
W/libc: Access denied finding property "vendor.camera.aux.packagelist"
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
I/Camera2CameraInfo: Device Level: INFO_SUPPORTED_HARDWARE_LEVEL_3
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
D/CameraRepository: Added camera: 1
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
W/libc: Access denied finding property "vendor.camera.aux.packagelist"
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
I/Camera2CameraInfo: Device Level: INFO_SUPPORTED_HARDWARE_LEVEL_3
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
D/UseCaseAttachState: Active and attached use case: [] for camera: 1
D/UseCaseAttachState: Active and attached use case: [] for camera: 0
D/CameraOrientationUtil: getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=270, isOppositeFacing=false, result=270
D/DeferrableSurface: Surface created[total_surfaces=1, used_surfaces=0](androidx.camera.core.SurfaceRequest$2@5e0e3ce}
D/CameraOrientationUtil: getRelativeImageRotation: destRotationDegrees=0, sourceRotationDegrees=270, isOppositeFacing=false, result=270
D/CameraXPreviewHelper: Received surface request for resolution 1280x720
D/CameraXPreviewHelper: Providing surface
I/Quality: Skipped: true 2
D/UseCaseAttachState: Active and attached use case: [] for camera: 1
D/UseCaseAttachState: All use case: [androidx.camera.core.Preview-724175c8-1797-42bc-8b65-959277743e88222290067] for camera: 1
D/UseCaseAttachState: Active and attached use case: [androidx.camera.core.Preview-724175c8-1797-42bc-8b65-959277743e88222290067] for camera: 1
D/CameraStateRegistry: tryOpenCamera(Camera@a58ab7a[id=1]) [Available Cameras: 1, Already Open: false (Previous state: null)] --> SUCCESS
D/CameraStateRegistry: Recalculating open cameras:
    Camera                                       State                 
    -------------------------------------------------------------------
    Camera@a58ab7a[id=1]                         OPENING               
    Camera@20f9e9[id=0]                          UNKNOWN               
    -------------------------------------------------------------------
    Open count: 1 (Max allowed: 1)
D/UseCaseAttachState: All use case: [androidx.camera.core.Preview-724175c8-1797-42bc-8b65-959277743e88222290067] for camera: 1
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
I/CameraDeviceImplExtImpl: getInstance success!
W/libc: Access denied finding property "persist.vendor.camera.privapp.list"
I/OplusCameraManagerGlobal: setClientInfo, packageName: com.google.mediapipe.apps.hairsegmentationgpu, uid: 10907, pid: 25163
I/OplusCameraUtils: current activityName: com.google.mediapipe.apps.basic.MainActivity
I/OplusCameraUtils: getComponentName, componentName: com.google.mediapipe.apps.hairsegmentationgpu/com.google.mediapipe.apps.basic.MainActivity, packageName:com.google.mediapipe.apps.hairsegmentationgpu, activityName:com.google.mediapipe.apps.basic.MainActivity
W/libc: Access denied finding property "vendor.camera.aux.packagelist"
D/UseCaseAttachState: Active and attached use case: [androidx.camera.core.Preview-724175c8-1797-42bc-8b65-959277743e88222290067] for camera: 1
D/CameraStateRegistry: Recalculating open cameras:
    Camera                                       State                 
    -------------------------------------------------------------------
    Camera@a58ab7a[id=1]                         OPEN                  
    Camera@20f9e9[id=0]                          UNKNOWN               
    -------------------------------------------------------------------
    Open count: 1 (Max allowed: 1)
D/UseCaseAttachState: All use case: [androidx.camera.core.Preview-724175c8-1797-42bc-8b65-959277743e88222290067] for camera: 1
D/OplusCamera2StatisticsManager: addInfo, eventMap: {halLevel=3, cameraId=1, pkgName=com.google.mediapipe.apps.hairsegmentationgpu, connentTime=1737454950980, apLevel=2}
D/DeferrableSurface: New surface in use[total_surfaces=1, used_surfaces=1](androidx.camera.core.SurfaceRequest$2@5e0e3ce}
D/DeferrableSurface: use count+1, useCount=1 androidx.camera.core.SurfaceRequest$2@5e0e3ce
D/CaptureSession: Opening capture session.
D/CaptureSession: Attempting to send capture request onConfigured
D/CaptureSession: Issuing request for session.
D/CaptureSession: CameraCaptureSession.onConfigured() mState=OPENED
D/CaptureSession: CameraCaptureSession.onReady() OPENED
D/ExternalTextureConv: Created output texture: 2 width: 720 height: 1280
I/native: I0000 00:00:1737454951.197089   25286 graph.cc:489] Start running the graph, waiting for inputs.
I/native: I0000 00:00:1737454951.197535   25286 gl_context_egl.cc:85] Successfully initialized EGL. Major : 1 Minor: 5
I/native: I0000 00:00:1737454951.198757   25314 gl_context.cc:369] GL version: 3.2 (OpenGL ES 3.2 [email protected] (GIT@1159e70389, I1027f1d7d9, 1649418316) (Date:04/08/22)), renderer: Adreno (TM) 620
I/native: I0000 00:00:1737454951.209465   25267 resource_util_android.cc:98] Successfully loaded: hair_segmentation.tflite
I/tflite: Initialized TensorFlow Lite runtime.
I/tflite: Created TensorFlow Lite delegate for GPU.
D/ExternalTextureConv: Created output texture: 3 width: 720 height: 1280
I/native: I0000 00:00:1737454951.258667   25311 jni_util.cc:41] GetEnv: not attached
I/tflite: Replacing 259 out of 259 node(s) with delegate (TfLiteGpuDelegate) node, yielding 1 partitions for the whole graph.
I/native: I0000 00:00:1737454951.284127   25312 jni_util.cc:41] GetEnv: not attached
I/native: I0000 00:00:1737454951.317166   25307 jni_util.cc:41] GetEnv: not attached
I/native: I0000 00:00:1737454951.351559   25310 jni_util.cc:41] GetEnv: not attached
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x747b4bc8 in tid 25267 (mediapipe_gl_ru), pid 25163 (segmentationgpu)
D/ExternalTextureConv: Created output texture: 371 width: 720 height: 1280


==========

Locat, Error:


2025-01-21 18:22:32.951  1250-1333  ANDR-PERF-OPTSHANDLER   pid-1250                             E  Error! Perflock failed, invalid request value 79
2025-01-21 18:22:32.952  1250-1333  ANDR-PERF-OPTSHANDLER   pid-1250                             E  Error! Perflock failed, invalid request value 79
2025-01-21 18:22:33.003  1648-29647 ExtensionsLoader        pid-1648                             E  queueBuffer: error queuing buffer, -32
2025-01-21 18:22:33.003  1648-29647 Camera3-OutputStream    pid-1648                             E  returnBufferCheckedLocked: Stream 0: Error queueing buffer to native window: Broken pipe (-32)
2025-01-21 18:22:33.021  1250-1333  ANDR-PERF-OPTSHANDLER   pid-1250                             E  Error! Perflock failed, invalid request value 79
2025-01-21 18:22:33.061  1250-1333  ANDR-PERF-OPTSHANDLER   pid-1250                             E  Error! Perflock failed, invalid request value 79
2025-01-21 18:22:33.070  2530-2684  Theia.NoFocusWindow     pid-2530                             D  FocusWindowErrorScene cancelCheckFreezeScreen
2025-01-21 18:22:33.129 23100-23100 _Arouter                pid-23100                            E  invoke error:com.oplus.theme.OplusThemeApplication.onTrimMemory [int]
2025-01-21 18:22:33.136 23100-23100 _Arouter                pid-23100                            E  invoke error:com.oplus.uxdesign.uxcolor.UxColorApplication.onTrimMemory [int]
2025-01-21 18:22:33.138 23100-23100 _Arouter                pid-23100                            E  invoke error:com.oplus.uxdesign.language.LanguageApplication.onTrimMemory [int]
2025-01-21 18:22:33.140 23100-23100 _Arouter                pid-23100                            E  invoke error:com.oplus.uxdesign.personal.PersonalApplication.onTrimMemory [int]
2025-01-21 18:22:33.141 23100-23100 _Arouter                pid-23100                            E  invoke error:com.oplus.uxdesign.icon.IconStyleApplication.onTrimMemory [int]
2025-01-21 18:22:33.578  1250-1333  ANDR-PERF-OPTSHANDLER   pid-1250                             E  Error! Perflock failed, invalid request value 79
@kaka-lin kaka-lin added the type:bug Bug in the Source Code of MediaPipe Solution label Jan 21, 2025
@kuaashish kuaashish assigned kuaashish and unassigned kalyan2789g Jan 22, 2025
@kuaashish kuaashish added platform:c++ Issues specific to C++ framework in mediapipe platform::android Android Solutions legacy:face detection Issues related to Face Detection legacy:hair segmentation Hair Segmentation related issues labels Jan 22, 2025
@kuaashish
Copy link
Collaborator

Hi @kaka-lin,

We apologize for the inconvenience. Unfortunately, this issue relates to a legacy solution that is no longer maintained or supported. We recommend upgrading to the new Task API. If you encounter similar behavior with the new API, please let us know.

You can find the overview page for the new Task face detection here and an example app here. Additionally, hair segmentation is now part of the Image Segmentation feature, and its overview page is available here. However, please note that an example app for hair segmentation is currently unavailable.

Thank you!!

@kuaashish kuaashish added the stat:awaiting response Waiting for user response label Jan 23, 2025
Copy link

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

@github-actions github-actions bot added the stale label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy:face detection Issues related to Face Detection legacy:hair segmentation Hair Segmentation related issues platform::android Android Solutions platform:c++ Issues specific to C++ framework in mediapipe stale stat:awaiting response Waiting for user response type:bug Bug in the Source Code of MediaPipe Solution
Projects
None yet
Development

No branches or pull requests

3 participants