Comments (7)
打开不是闪退就是ANR
from hms-ml-demo.
2021-11-24 17:49:19.027 18264-18264/com.mlkit.sample.body E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mlkit.sample.body, PID: 18264
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Thread$State java.lang.Thread.getState()' on a null object reference
at com.huawei.mlkit.sample.camera.LensEngine$FrameTransactingRunnable.release(LensEngine.java:254)
at com.huawei.mlkit.sample.camera.LensEngine.release(LensEngine.java:76)
at com.huawei.mlkit.sample.activity.face.FaceDetectionActivity.releaseLensEngine(FaceDetectionActivity.java:211)
at com.huawei.mlkit.sample.activity.face.FaceDetectionActivity.onBackPressed(FaceDetectionActivity.java:206)
at android.app.Activity.onKeyUp(Activity.java:3883)
at android.view.KeyEvent.dispatch(KeyEvent.java:3012)
at android.app.Activity.dispatchKeyEvent(Activity.java:4189)
at androidx.core.app.ComponentActivity.superDispatchKeyEvent(ComponentActivity.java:115)
at androidx.core.view.KeyEventDispatcher.dispatchKeyEvent(KeyEventDispatcher.java:84)
at androidx.core.app.ComponentActivity.dispatchKeyEvent(ComponentActivity.java:133)
at androidx.appcompat.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:558)
at androidx.appcompat.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59)
at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.dispatchKeyEvent(AppCompatDelegateImpl.java:2814)
at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:447)
at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:6442)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:6273)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5738)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5805)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5766)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5928)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5774)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5985)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5742)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5805)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5766)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5774)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5742)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5805)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5766)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5961)
at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:6126)
at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:3397)
at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:2939)
at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:2930)
at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:3374)
at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:143)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:339)
at android.os.Looper.loop(Looper.java:208)
at android.app.ActivityThread.main(ActivityThread.java:8209)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:626)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1015)
from hms-ml-demo.
每次关闭模块界面(例如:人脸检测、人体骨骼、手势识别等模块)必定闪退
from hms-ml-demo.
为了方便我们快速进行问题定位,请提供一份日志,以及使用的SDK版本
from hms-ml-demo.
为了方便我们快速进行问题定位,请提供一份日志,以及使用的SDK版本
我就是克隆的当前工程运行,崩溃日志咱们工程存放到哪里了?
from hms-ml-demo.
运行的MLKit-Sample 工程的这个model
modulebody
|-- com.mlkit.sample
|-- Activity
|-- FaceDetectionActivity //人脸检测
|-- Live3DFaceAnalyseActivity //3D人脸检测
|-- FaceVerificationActivity // 人脸比对
|-- HumanSkeletonActivity //人体骨骼
|-- TemplateActivity //骨骼模板选择类
|-- HumanLivenessDetectionActivity // 活体检测
|-- HandKeypointActivity // 手部关键点
|-- HandKeypointImageActivity // 手部关键点静态检测
|-- GestureActivity // 手势识别
|-- GestureImageActivity // 手势识别静态检测
|-- BaseActivity // Activity基类
|-- StartActivity // 服务入口
|-- SettingActivity // modulebody基本信息
from hms-ml-demo.
基于能力的代码是没有问题的,麻烦您先参考基本能力示例代码:https://developer.huawei.com/consumer/cn/doc/development/hiai-Examples/sample-code-0000001050265470
from hms-ml-demo.
Related Issues (20)
- MLCnIcrCaptureResult
- Is this compatible in Google Play Store? HOT 2
- LivenessCustomDetectionActivity 摄像头预览变形 HOT 2
- 关于Face2D-Sticker的问题 HOT 2
- Face2D-Sticker在手机上运行闪退 HOT 3
- Is there any possibility to record the video with diffrent background (HMS ML Image Segmentation)
- Liveness detection camera facing back HOT 3
- The GraphicOverlay width changes when trying to save the LensEnginePreview as Bitmap HOT 4
- Why the VideoView inside LensEnginePreview is always Stretched HOT 1
- Black Image When setExact is FALSE
- Removing the background from a video takes a long time to finish
- App crash when updating to 3.0.0.301 HOT 1
- Hair Segmentation Not working HOT 1
- IDEA打开引入ApplicationCases后运行报错 HOT 1
- Incomplete README.md HOT 2
- The liveness Camera View not able make as full screen HOT 1
- Hello I am using ML kit Document skew correction and it is crashing on android 9 only HOT 3
- 早上好
- 音源分离端侧报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hms-ml-demo.