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

facemesh solution example crash on Android #3769

Closed
baien opened this issue Oct 14, 2022 · 9 comments
Closed

facemesh solution example crash on Android #3769

baien opened this issue Oct 14, 2022 · 9 comments
Assignees
Labels
legacy:face mesh Issues related to Face Mesh platform:android Issues with Android as Platform type:bug Bug in the Source Code of MediaPipe Solution

Comments

@baien
Copy link

baien commented Oct 14, 2022

Facemesh solution example crashes on all android phones when RUN_ON_GPU is set false from 0.8.10, 0.8.9-alpha-5 is OK.
Facemesh solution example crashes on mtk android phones when RUN_ON_GPU is set true.

@baien baien added the type:bug Bug in the Source Code of MediaPipe Solution label Oct 14, 2022
@kuaashish kuaashish added legacy:face mesh Issues related to Face Mesh platform:android Issues with Android as Platform platform::gpu::opengl labels Oct 14, 2022
@kuaashish
Copy link
Collaborator

Hi @baien, Could you please share the following:

Also please try this on the latest MediaPipe release 0.8.11. Thank you!

@kuaashish kuaashish added the stat:awaiting response Waiting for user response label Oct 14, 2022
@baien
Copy link
Author

baien commented Oct 14, 2022

Hi, @kuaashish

  1. It crashes on all my 10 devices from Android N to Android R. including S7 edge(Android N), SONY H8296(Android10), Mi 10 (Android11), Mi 11 Pro(Android12)... I think it will also crash on what device you have.
  2. It crash from 0.8.10 and above inlucding newest 0.8.11-alpha-1. My targetSDK 31 Compile SDK 32.
  3. I also built the example hands, same result.
  4. It crashes on all MTK phones no matter what type of phone it is.

@google-ml-butler google-ml-butler bot removed the stat:awaiting response Waiting for user response label Oct 14, 2022
@kuaashish
Copy link
Collaborator

Hi @baien, Could you share the complete error log w.r.t to any of the devices and complete steps followed to reproduce the issue from our end. Thank you!

@kuaashish kuaashish added the stat:awaiting response Waiting for user response label Oct 17, 2022
@baien
Copy link
Author

baien commented Oct 18, 2022

Hi @baien, Could you share the complete error log w.r.t to any of the devices and complete steps followed to reproduce the issue from our end. Thank you!

How to reproduce:
Grab an Android phone(which model doesn't matter), Build the newest example facemesh(or hands), set RUN_ON_GPU as false in MainActivity.java, run the example and click START CAMERA.

Following is my error log:
backtrace:
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #00 pc 000000000076d178 /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/lib/arm64/libmediapipe_jni.so
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #1 pc 000000000013810c /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/lib/arm64/libmediapipe_jni.so (Java_com_google_mediapipe_framework_PacketGetter_nativeGetGpuBuffer+376)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #2 pc 0000000000222244 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #3 pc 0000000000218be8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #4 pc 000000000028600c /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+220) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #5 pc 00000000003ea3e8 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+404) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #6 pc 00000000003e4f84 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+828) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #7 pc 000000000076af34 /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+984) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #8 pc 0000000000203994 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #9 pc 00000000009a8126 /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/oat/arm64/base.vdex
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #10 pc 00000000003dcd2c /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool)+312) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #11 pc 000000000074e55c /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #12 pc 0000000000222378 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #13 pc 0000000000211608 /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #14 pc 00000000009b5806 /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/oat/arm64/base.vdex
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #15 pc 00000000002124c4 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #16 pc 00000000009b5f54 /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/oat/arm64/base.vdex
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #17 pc 00000000002124c4 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #18 pc 00000000009b6044 /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/oat/arm64/base.vdex
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #19 pc 00000000002124c4 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #20 pc 000000000091b8e0 /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/oat/arm64/base.vdex
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #21 pc 00000000002124c4 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #22 pc 000000000091b410 /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/oat/arm64/base.vdex
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #23 pc 00000000002132e4 /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #24 pc 00000000009b5944 /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/oat/arm64/base.vdex
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #25 pc 00000000002124c4 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #26 pc 00000000009b5a32 /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/oat/arm64/base.vdex
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #27 pc 0000000000218964 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #28 pc 0000000000285ff0 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+192) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #29 pc 000000000062e23c /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithVarArgsart::ArtMethod*(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+472) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #30 pc 000000000062e3e4 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+96) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #31 pc 00000000004e0970 /apex/com.android.art/lib64/libart.so (art::JNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+624) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #32 pc 000000000044cc00 /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CallMethodV(char const*, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, std::__va_list, art::Primitive::Type, art::InvokeType)+2516) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #33 pc 000000000043ac50 /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list) (.llvm.3094671572786334925)+76) (BuildId: 824f7ca55f9cdc7b2f2fa3478577b69e)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #34 pc 000000000012545c /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/lib/arm64/libmediapipe_jni.so
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #35 pc 0000000000125688 /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/lib/arm64/libmediapipe_jni.so
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #36 pc 000000000073b934 /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/lib/arm64/libmediapipe_jni.so
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #37 pc 000000000075dfac /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/lib/arm64/libmediapipe_jni.so
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #38 pc 0000000000752808 /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/lib/arm64/libmediapipe_jni.so
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #39 pc 00000000007523bc /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/lib/arm64/libmediapipe_jni.so
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #40 pc 00000000007749e0 /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/lib/arm64/libmediapipe_jni.so
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #41 pc 0000000000774748 /data/app/~~fnL6TnJjHBdMk7KnHvN6sQ==/com.google.mediapipe.apps.facemesh-q7IjuEwGWVvgvin846SngQ==/lib/arm64/libmediapipe_jni.so
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #42 pc 00000000000efb14 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+264) (BuildId: 94065bf91428f6ae9fb310c478171302)
2022-10-18 10:07:27.538 30859-30859 DEBUG pid-30859 A #43 pc 000000000008c35c /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: 94065bf91428f6ae9fb310c478171302)
2022-10-18 10:07:27.552 30859-30859 MIUINDBG pid-30859

@google-ml-butler google-ml-butler bot removed the stat:awaiting response Waiting for user response label Oct 18, 2022
@kuaashish kuaashish assigned jiuqiant and gkarpiak and unassigned kuaashish Oct 20, 2022
@kuaashish kuaashish added the stat:awaiting googler Waiting for Google Engineer's Response label Oct 20, 2022
@baien
Copy link
Author

baien commented Mar 31, 2023

Hi, is there any progress yet, I see that it still crashes when RUN_ON_GPU is set to false when running facemesh example on 0.9.2

@kuaashish kuaashish assigned kuaashish and unassigned jiuqiant and gkarpiak Apr 26, 2023
@kuaashish kuaashish removed the stat:awaiting googler Waiting for Google Engineer's Response label Apr 26, 2023
@kuaashish
Copy link
Collaborator

Hello @baien,
We are upgrading the MediaPipe Legacy Solutions to new MediaPipe solutions However, the libraries, documentation, and source code for all the MediapPipe Legacy Solutions will continue to be available in our GitHub repository and through library distribution services, such as Maven and NPM.

You can continue to use those legacy solutions in your applications if you choose. Though, we would request you to check new MediaPipe solutions which can help you more easily build and customize ML solutions for your applications. These new solutions will provide a superset of capabilities available in the legacy solutions. Thank you

@kuaashish kuaashish added the stat:awaiting response Waiting for user response label Apr 26, 2023
@github-actions
Copy link

github-actions bot commented May 4, 2023

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 May 4, 2023
@github-actions
Copy link

This issue was closed due to lack of activity after being marked stale for past 7 days.

@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

@kuaashish kuaashish removed stat:awaiting response Waiting for user response stale labels May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy:face mesh Issues related to Face Mesh platform:android Issues with Android as Platform type:bug Bug in the Source Code of MediaPipe Solution
Projects
None yet
Development

No branches or pull requests

5 participants