Closed fengyanWang closed 3 years ago
Can you provide the logcat of the above error?
Can you provide the logcat of the above error?
2021-08-26 14:09:05.291 29250-29311/com.google.mlkit.vision.demo I/native: face_detector_v2_jni.cc:33 Loading models/fssd_25_8bit_v1.tflite 2021-08-26 14:09:05.292 29250-29311/com.google.mlkit.vision.demo I/native: face_detector_v2_jni.cc:33 Loading models/fssd_25_8bit_gray_v1.tflite 2021-08-26 14:09:05.292 29250-29311/com.google.mlkit.vision.demo I/native: face_detector_v2_jni.cc:33 Loading models/LMprec_600.emd 2021-08-26 14:09:05.296 29250-29306/com.google.mlkit.vision.demo W/GooglePlayServicesUtil: Google Play Store is missing. 2021-08-26 14:09:05.310 29250-29311/com.google.mlkit.vision.demo I/native: face_detector_v2_jni.cc:33 Loading models/BCLlefteyeclosed_200.emd 2021-08-26 14:09:05.311 29250-29311/com.google.mlkit.vision.demo I/native: face_detector_v2_jni.cc:33 Loading models/BCLrighteyeclosed_200.emd 2021-08-26 14:09:05.311 29250-29311/com.google.mlkit.vision.demo I/native: face_detector_v2_jni.cc:33 Loading models/BCLjoy_200.emd 2021-08-26 14:09:05.311 29250-29311/com.google.mlkit.vision.demo I/native: face_detector_v2_jni.cc:33 Loading models/MFT_fssd_fastgray.pb 2021-08-26 14:09:05.311 29250-29311/com.google.mlkit.vision.demo I/native: face_detector_v2_jni.cc:33 Loading models/contours.tfl 2021-08-26 14:09:05.321 29250-29250/com.google.mlkit.vision.demo D/InsetsSourceConsumer: setControl -> ITYPE_IME on com.google.mlkit.vision.demo/com.google.mlkit.vision.demo.LivePreviewActivity 2021-08-26 14:09:05.322 29250-29250/com.google.mlkit.vision.demo D/InsetsSourceConsumer: applyHiddenToControl: false 2021-08-26 14:09:05.323 29250-29250/com.google.mlkit.vision.demo D/InsetsSourceConsumer: setControl -> ITYPE_NAVIGATION_BAR on com.google.mlkit.vision.demo/com.google.mlkit.vision.demo.LivePreviewActivity 2021-08-26 14:09:05.324 29250-29250/com.google.mlkit.vision.demo D/InsetsSourceConsumer: setControl -> ITYPE_STATUS_BAR on com.google.mlkit.vision.demo/com.google.mlkit.vision.demo.LivePreviewActivity 2021-08-26 14:09:05.335 29250-29311/com.google.mlkit.vision.demo I/native: face_detector_v2_jni.cc:33 Loading models/blazeface.tfl 2021-08-26 14:09:05.363 29250-29290/com.google.mlkit.vision.demo V/FA: Setting user property: ga_session_number(_sno), 2 2021-08-26 14:09:05.371 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.376 29250-29290/com.google.mlkit.vision.demo V/FA: Setting user property: ga_session_id(_sid), 1629958144 2021-08-26 14:09:05.389 29250-29306/com.google.mlkit.vision.demo W/GooglePlayServicesUtil: Google Play Store is missing. 2021-08-26 14:09:05.397 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.403 29250-29290/com.google.mlkit.vision.demo V/FA: Logging event: origin=auto,name=session_start(_s),params=Bundle[{ga_event_origin(_o)=auto, ga_session_id(_sid)=1629958144}] 2021-08-26 14:09:05.427 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.437 29250-29290/com.google.mlkit.vision.demo V/FA: Upload scheduled in approximately ms: 14028 2021-08-26 14:09:05.438 29250-29290/com.google.mlkit.vision.demo V/FA: Unscheduling upload 2021-08-26 14:09:05.440 29250-29290/com.google.mlkit.vision.demo V/FA: Scheduling upload, millis: 14028 2021-08-26 14:09:05.455 29250-29290/com.google.mlkit.vision.demo V/FA: Background event processing time, ms: 54 2021-08-26 14:09:05.463 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.466 29250-29290/com.google.mlkit.vision.demo V/FA: Logging event: origin=auto,name=screen_view(_vs),params=Bundle[{ga_event_origin(_o)=auto, ga_screen_class(_sc)=LivePreviewActivity, ga_screen_id(_si)=-7600498724134195732}] 2021-08-26 14:09:05.488 29250-29290/com.google.mlkit.vision.demo V/FA: Upload scheduled in approximately ms: 14092 2021-08-26 14:09:05.490 29250-29290/com.google.mlkit.vision.demo V/FA: Unscheduling upload 2021-08-26 14:09:05.494 29250-29290/com.google.mlkit.vision.demo V/FA: Scheduling upload, millis: 14092 2021-08-26 14:09:05.499 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.501 29250-29290/com.google.mlkit.vision.demo V/FA: Background event processing time, ms: 36 2021-08-26 14:09:05.520 29250-29290/com.google.mlkit.vision.demo W/FA: Callable skipped the worker queue. 2021-08-26 14:09:05.532 29250-29290/com.google.mlkit.vision.demo V/FA: Activity resumed, time: 600157944 2021-08-26 14:09:05.533 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.562 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.596 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.631 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.665 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.693 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.729 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.795 29250-29344/com.google.mlkit.vision.demo I/chatty: uid=10223(com.google.mlkit.vision.demo) Thread-10 identical 2 lines 2021-08-26 14:09:05.829 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.861 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.894 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.929 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.963 29250-29344/com.google.mlkit.vision.demo E/MOBED_CameraSource: Exception thrown from receiver. java.lang.NullPointerException: Attempt to invoke interface method 'void com.google.mlkit.vision.demo.VisionImageProcessor.processByteBuffer(java.nio.ByteBuffer, com.google.mlkit.vision.demo.FrameMetadata, com.google.mlkit.vision.demo.GraphicOverlay)' on a null object reference at com.google.mlkit.vision.demo.CameraSource$FrameProcessingRunnable.run(CameraSource.java:737) at java.lang.Thread.run(Thread.java:923) 2021-08-26 14:09:05.969 29250-29266/com.google.mlkit.vision.demo W/System: A resource failed to call close. 2021-08-26 14:09:05.969 29250-29266/com.google.mlkit.vision.demo W/System: A resource failed to call close.
Hello, thank you very much for your open source code. When I compile according to the project you gave, the following problems occur:![image](https://user-images.githubusercontent.com/36984088/130893445-628fc38f-ba36-466b-91a7-597d94ec7906.png)