react-native-fast-tflite icon indicating copy to clipboard operation
react-native-fast-tflite copied to clipboard

Example App is Crashing When running in Release Mode [Android]

Open saurav-aggarwal opened this issue 11 months ago • 2 comments

steps

  1. go to example/android/app/build.gradle
  2. go to line 56 and change enableProguardInReleaseBuilds to true

crash

2024-03-19 17:19:48.426 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.scroll.ReactHorizontalScrollContainerViewManager
2024-03-19 17:19:48.427 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.progressbar.ReactProgressBarViewManager
2024-03-19 17:19:48.427 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.progressbar.b
2024-03-19 17:19:48.427 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.scroll.ReactScrollViewManager
2024-03-19 17:19:48.428 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager
2024-03-19 17:19:48.428 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.switchview.ReactSwitchManager$b
2024-03-19 17:19:48.428 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.swiperefresh.SwipeRefreshLayoutManager
2024-03-19 17:19:48.429 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageViewManager
2024-03-19 17:19:48.429 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class x3.a
2024-03-19 17:19:48.429 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.image.ReactImageManager
2024-03-19 17:19:48.429 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.modal.ReactModalHostManager
2024-03-19 17:19:48.429 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.modal.b
2024-03-19 17:19:48.430 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.text.ReactRawTextManager
2024-03-19 17:19:48.430 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.text.k
2024-03-19 17:19:48.430 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.textinput.ReactTextInputManager
2024-03-19 17:19:48.431 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.textinput.d0
2024-03-19 17:19:48.431 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.text.ReactTextViewManager
2024-03-19 17:19:48.431 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.text.r
2024-03-19 17:19:48.432 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
2024-03-19 17:19:48.432 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
2024-03-19 17:19:48.432 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.text.a0
2024-03-19 17:19:48.432 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.facebook.react.views.unimplementedview.ReactUnimplementedViewManager
2024-03-19 17:19:48.432 23925-23950 unknown:Vi...rtyUpdater com.tfliteexample                    W  Could not find generated setter for class com.mrousavy.camera.CameraViewManager
2024-03-19 17:19:48.443 23925-23945 OpenGLRenderer          com.tfliteexample                    W  Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2024-03-19 17:19:48.443 23925-23945 OpenGLRenderer          com.tfliteexample                    W  Failed to initialize 101010-2 format, error = EGL_SUCCESS
2024-03-19 17:19:48.449 23925-23945 Gralloc4                com.tfliteexample                    I  mapper 4.x is not supported
2024-03-19 17:19:48.451 23925-23950 ReactNativeJS           com.tfliteexample                    I  Running "TfliteExample
2024-03-19 17:19:48.454 23925-23950 ReactNativeJS           com.tfliteexample                    I  Loading react-native-worklets-core...
2024-03-19 17:19:48.454 23925-23945 OpenGLRenderer          com.tfliteexample                    E  Unable to match the desired swap behavior.
2024-03-19 17:19:48.458 23925-23950 ReactNativeJS           com.tfliteexample                    I  Worklets loaded successfully
2024-03-19 17:19:48.465 23925-23950 VisionCameraProxy       com.tfliteexample                    I  Initializing VisionCameraProxy...
2024-03-19 17:19:48.465 23925-23950 VisionCameraProxy       com.tfliteexample                    I  Creating Worklet Context...
2024-03-19 17:19:48.468 23925-23950 VisionCameraProxy       com.tfliteexample                    I  Worklet Context created!
2024-03-19 17:19:48.469 23925-23950 Compatibil...geReporter com.tfliteexample                    D  Compat change id reported: 250678880; UID 10185; state: ENABLED
2024-03-19 17:19:48.535 23925-23950 Compatibil...geReporter com.tfliteexample                    D  Compat change id reported: 206033068; UID 10185; state: ENABLED
2024-03-19 17:19:48.548 23925-23950 ReactNativeJS           com.tfliteexample                    I  Installing bindings...
2024-03-19 17:19:48.549 23925-23950 Tflite                  com.tfliteexample                    I  Loading C++ library...
2024-03-19 17:19:48.549 23925-23950 Tflite                  com.tfliteexample                    I  Installing JSI Bindings for VisionCamera Tflite plugin...
2024-03-19 17:19:48.550 23925-23950 Tflite                  com.tfliteexample                    I  Successfully installed JSI Bindings!
2024-03-19 17:19:48.550 23925-23950 ReactNativeJS           com.tfliteexample                    I  Successfully installed!
2024-03-19 17:19:48.550 23925-23950 FrameProce...inRegistry com.tfliteexample                    I  Looking up Frame Processor Plugin "resize"...
2024-03-19 17:19:48.550 23925-23950 FrameProce...inRegistry com.tfliteexample                    I  Frame Processor Plugin "resize" found! Initializing...
2024-03-19 17:19:48.550 23925-23950 ReactNativeJS           com.tfliteexample                    I  Model: loading (false)
2024-03-19 17:19:48.553 23925-23950 ReactNativeJS           com.tfliteexample                    I  Loading Tensorflow Lite Model 1
2024-03-19 17:19:48.554 23925-23950 ReactNativeJS           com.tfliteexample                    I  Resolved Model path: assets_efficientdet
2024-03-19 17:19:48.554 23925-23968 Tflite                  com.tfliteexample                    I  Loading byte data from URL: assets_efficientdet...
2024-03-19 17:19:48.554 23925-23968 Tflite                  com.tfliteexample                    I  Parsing resourceId...
2024-03-19 17:19:48.554 23925-23968 Tflite                  com.tfliteexample                    I  Parsed resourceId: 2131558400
2024-03-19 17:19:48.560 23925-23925 PreviewView             com.tfliteexample                    I  Creating PreviewView...
2024-03-19 17:19:48.561 23925-23925 PreviewView             com.tfliteexample                    I  PreviewView is 0x0, rendering 1080x1920 content. Resizing to: 0x0 (COVER)
2024-03-19 17:19:48.562 23925-23925 CameraView              com.tfliteexample                    I  Updating CameraSession...
2024-03-19 17:19:48.563 23925-23963 CameraSession           com.tfliteexample                    I  configure { ... }: Waiting for lock...
2024-03-19 17:19:48.563 23925-23963 CameraSession           com.tfliteexample                    I  configure { ... }: Updating CameraSession Configuration... Difference(deviceChanged=true, outputsChanged=true, sidePropsChanged=true, isActiveChanged=true)
2024-03-19 17:19:48.564 23925-23963 CameraSession           com.tfliteexample                    I  Need to rebuild CameraDevice and CameraCaptureSession...
2024-03-19 17:19:48.564 23925-23963 CameraSession           com.tfliteexample                    I  CameraDevice and CameraCaptureSession is torn down but Camera is not active, skipping update...
2024-03-19 17:19:48.564 23925-23963 CameraSession           com.tfliteexample                    I  Successfully updated CameraSession Configuration! isActive: false
2024-03-19 17:19:48.564 23925-23963 CameraView              com.tfliteexample                    I  invokeOnInitialized()
2024-03-19 17:19:48.567 23925-23925 CameraView              com.tfliteexample                    I  Updating CameraSession...
2024-03-19 17:19:48.567 23925-23963 CameraSession           com.tfliteexample                    I  configure { ... }: Waiting for lock...
2024-03-19 17:19:48.567 23925-23963 CameraSession           com.tfliteexample                    I  configure { ... }: Updating CameraSession Configuration... Difference(deviceChanged=true, outputsChanged=true, sidePropsChanged=true, isActiveChanged=true)
2024-03-19 17:19:48.567 23925-23963 CameraSession           com.tfliteexample                    I  Need to rebuild CameraDevice and CameraCaptureSession...
2024-03-19 17:19:48.567 23925-23963 CameraSession           com.tfliteexample                    I  Need to rebuild CameraDevice and CameraCaptureSession...
2024-03-19 17:19:48.567 23925-23963 CameraSession           com.tfliteexample                    I  Configuring Camera #10...
2024-03-19 17:19:48.568 23925-23963 CameraManager           com.tfliteexample                    I  Camera #10: Opening...
2024-03-19 17:19:48.568 23925-23925 PreviewView             com.tfliteexample                    I  PreviewView is 1440x2891, rendering 1080x1920 content. Resizing to: 1626x2891 (COVER)
2024-03-19 17:19:48.570 23925-23925 CameraSession           com.tfliteexample                    I  PreviewView Surface created! Surface(name=null)/@0x29c2de0
2024-03-19 17:19:48.570 23925-23925 CameraSession           com.tfliteexample                    I  Setting Preview Output...
2024-03-19 17:19:48.570 23925-23925 CameraSession           com.tfliteexample                    I  PreviewView Surface updated! Surface(name=null)/@0x29c2de0 1626 x 2891
2024-03-19 17:19:48.577 23925-23951 CameraDevices           com.tfliteexample                    I  Camera #10 is now unavailable.
2024-03-19 17:19:48.578 23925-23963 CameraSession           com.tfliteexample                    I  configure { ... }: Waiting for lock...
2024-03-19 17:19:48.578 23925-23963 CameraManager           com.tfliteexample                    I  Camera #10: Opened!
2024-03-19 17:19:48.579 23925-23963 CameraSession           com.tfliteexample                    I  Successfully configured Camera #10!
2024-03-19 17:19:48.579 23925-23963 CameraSession           com.tfliteexample                    I  Destroying previous outputs...
2024-03-19 17:19:48.580 23925-23963 CameraSession           com.tfliteexample                    I  Creating outputs for Camera #10...
2024-03-19 17:19:48.580 23925-23963 CameraSession           com.tfliteexample                    I  Adding 1280x960 Video Output in YUV_420_888...
2024-03-19 17:19:48.580 23925-23963 VideoPipeline           com.tfliteexample                    I  Initializing 1280 x 960 Video Pipeline (format: YUV)
2024-03-19 17:19:48.580 23925-23963 VideoPipeline           com.tfliteexample                    I  Using ImageReader round-trip (format: #35)
2024-03-19 17:19:48.581 23925-23963 VideoPipeline           com.tfliteexample                    I  Using API 29 for GPU ImageReader...
2024-03-19 17:19:48.581 23925-23968 tflite                  com.tfliteexample                    I  Initialized TensorFlow Lite runtime.
2024-03-19 17:19:48.581 23925-23963 Compatibil...geReporter com.tfliteexample                    D  Compat change id reported: 236825255; UID 10185; state: ENABLED
2024-03-19 17:19:48.582 23925-23963 CreateCaptureSession    com.tfliteexample                    I  Camera #10: Creating Capture Session #1... (Hardware Level: 0 | Outputs: [VIDEO (1280x960 in YUV)])
2024-03-19 17:19:48.582 23925-23963 CreateCaptureSession    com.tfliteexample                    I  Using new API (>=28)
2024-03-19 17:19:48.582 23925-23950 ReactNativeJS           com.tfliteexample                    I  Model: loading (false)
2024-03-19 17:19:48.803 23925-23950 ReactNativeJS           com.tfliteexample                    E  Error: Exception in HostFunction: java.lang.NoSuchMethodError: no non-static method "Lcom/mrousavy/camera/frameprocessor/FrameProcessor;.<init>(Lcom/facebook/jni/HybridData;)V", js engine: hermes
2024-03-19 17:19:48.804 23925-23950 ReactNativeJS           com.tfliteexample                    I  Model: loaded (true)
2024-03-19 17:19:48.812 23925-23950 ReactNativeJS           com.tfliteexample                    I  Model loaded! Shape:
                                                                                                    TFLite Model (default):
                                                                                                    - Inputs: 
                                                                                                      - uint8 serving_default_images:0[1,320,320,3]
                                                                                                    - Outputs: 
                                                                                                      - float32 StatefulPartitionedCall:3[1,25,4]
                                                                                                      - float32 StatefulPartitionedCall:2[1,25]
                                                                                                      - float32 StatefulPartitionedCall:1[1,25]
                                                                                                      - float32 StatefulPartitionedCall:0[1]]
2024-03-19 17:19:48.812 23925-23950 ReactNativeJS           com.tfliteexample                    E  Error: Exception in HostFunction: java.lang.NoSuchMethodError: no non-static method "Lcom/mrousavy/camera/frameprocessor/FrameProcessor;.<init>(Lcom/facebook/jni/HybridData;)V"
                                                                                                    
                                                                                                    This error is located at:
                                                                                                        in Camera
                                                                                                        in RCTView
                                                                                                        in Unknown
                                                                                                        in App
                                                                                                        in RCTView
                                                                                                        in Unknown
                                                                                                        in RCTView
                                                                                                        in Unknown
                                                                                                        in AppContainer, js engine: hermes
2024-03-19 17:19:48.813 23925-23950 ReactNativeJS           com.tfliteexample                    E  'Failed to load Tensorflow Model 1!', { [Error: Exception in HostFunction: java.lang.NoSuchMethodError: no non-static method "Lcom/mrousavy/camera/frameprocessor/FrameProcessor;.<init>(Lcom/facebook/jni/HybridData;)V"]
                                                                                                      componentStack: '\n    in Camera\n    in RCTView\n    in Unknown\n    in App\n    in RCTView\n    in Unknown\n    in RCTView\n    in Unknown\n    in AppContainer',
                                                                                                      isComponentError: true }
2024-03-19 17:19:48.840 23925-23951 AndroidRuntime          com.tfliteexample                    E  FATAL EXCEPTION: mqt_native_modules
                                                                                                    Process: com.tfliteexample, PID: 23925
                                                                                                    com.facebook.react.common.JavascriptException: Error: Exception in HostFunction: java.lang.NoSuchMethodError: no non-static method "Lcom/mrousavy/camera/frameprocessor/FrameProcessor;.<init>(Lcom/facebook/jni/HybridData;)V", js engine: hermes, stack:
                                                                                                    setFrameProcessor@1:602717
                                                                                                    onViewReady@1:602821
                                                                                                    invokeGuardedCallbackImpl@1:284974
                                                                                                    invokeGuardedCallback@1:285031
                                                                                                    invokeGuardedCallbackAndCatchFirstError@1:285063
                                                                                                    executeDispatch@1:285192
                                                                                                    executeDispatchesAndReleaseTopLevel@1:289361
                                                                                                    forEachAccumulated@1:286650
                                                                                                    anonymous@1:289724
                                                                                                    batchedUpdatesImpl@1:348771
                                                                                                    batchedUpdates@1:289279
                                                                                                    _receiveRootNodeIDEvent@1:289562
                                                                                                    receiveEvent@1:343266
                                                                                                    __callFunction@1:41328
                                                                                                    anonymous@1:39633
                                                                                                    __guard@1:40589
                                                                                                    callFunctionReturnFlushedQueue@1:39591
                                                                                                    
                                                                                                    	at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(Unknown Source:75)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.facebook.react.bridge.JavaMethodWrapper.invoke(Unknown Source:142)
                                                                                                    	at com.facebook.react.bridge.JavaModuleWrapper.invoke(Unknown Source:21)
                                                                                                    	at com.facebook.jni.NativeRunnable.run(Native Method)
                                                                                                    	at android.os.Handler.handleCallback(Handler.java:958)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:99)
                                                                                                    	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(Unknown Source:0)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:205)
                                                                                                    	at android.os.Looper.loop(Looper.java:294)
                                                                                                    	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(Unknown Source:37)
                                                                                                    	at java.lang.Thread.run(Thread.java:1012)
2024-03-19 17:19:48.845 23925-23963 CreateCaptureSession    com.tfliteexample                    I  Camera #10: Successfully created CameraCaptureSession #1!
2024-03-19 17:19:48.845 23925-23963 CameraSession           com.tfliteexample                    I  Successfully configured Session with 1 outputs for Camera #10!
2024-03-19 17:19:48.845 23925-23963 CameraSession           com.tfliteexample                    I  Updating Video Outputs...
2024-03-19 17:19:48.845 23925-23963 VideoPipeline           com.tfliteexample                    I  Removing FrameProcessor Output...
2024-03-19 17:19:48.845 23925-23963 VideoPipeline           com.tfliteexample                    I  Removing RecordingSession Output...
2024-03-19 17:19:48.847 23925-23963 CameraView              com.tfliteexample                    I  invokeOnStarted()
2024-03-19 17:19:48.847 23925-23963 CameraSession           com.tfliteexample                    I  Successfully updated CameraSession Configuration! isActive: true
2024-03-19 17:19:48.847 23925-23963 CameraView              com.tfliteexample                    I  invokeOnInitialized()
2024-03-19 17:19:48.848 23925-23963 CameraSession           com.tfliteexample                    I  configure { ... }: Updating CameraSession Configuration... Difference(deviceChanged=false, outputsChanged=true, sidePropsChanged=true, isActiveChanged=false)
2024-03-19 17:19:48.848 23925-23963 CameraSession           com.tfliteexample                    I  Destroying previous outputs...
2024-03-19 17:19:48.848 23925-23963 SurfaceOutput           com.tfliteexample                    I  Closing 1280x960 Video Pipeline..
2024-03-19 17:19:48.849 23925-23963 CameraView              com.tfliteexample                    I  invokeOnStopped()
2024-03-19 17:19:48.849 23925-23974 BufferQueueProducer     com.tfliteexample                    E  [ImageReader-1280x960f23m3-23925-0](id:5d7500000003,api:4,p:449,c:23925) dequeueBuffer: BufferQueue has been abandoned
2024-03-19 17:19:48.851 23925-23963 CameraSession           com.tfliteexample                    I  Creating outputs for Camera #10...
2024-03-19 17:19:48.852 23925-23963 CameraSession           com.tfliteexample                    I  Adding 1280x960 Video Output in YUV_420_888...
2024-03-19 17:19:48.852 23925-23963 VideoPipeline           com.tfliteexample                    I  Initializing 1280 x 960 Video Pipeline (format: YUV)
2024-03-19 17:19:48.852 23925-23963 VideoPipeline           com.tfliteexample                    I  Using ImageReader round-trip (format: #35)
2024-03-19 17:19:48.852 23925-23963 VideoPipeline           com.tfliteexample                    I  Using API 29 for GPU ImageReader...
2024-03-19 17:19:48.853 23925-23963 CameraSession           com.tfliteexample                    I  Adding 1280x960 Preview Output...
2024-03-19 17:19:48.854 23925-23925 PreviewView             com.tfliteexample                    I  Setting PreviewView Surface Size to 1626 x 2891...
2024-03-19 17:19:48.855 23925-23963 CreateCaptureSession    com.tfliteexample                    I  Camera #10: Creating Capture Session #2... (Hardware Level: 0 | Outputs: [VIDEO (1280x960 in YUV), PREVIEW (1280 x 960)])
2024-03-19 17:19:48.855 23925-23963 CreateCaptureSession    com.tfliteexample                    I  Using new API (>=28)
2024-03-19 17:19:48.860 23925-23925 CameraSession           com.tfliteexample                    I  PreviewView Surface updated! Surface(name=null)/@0x29c2de0 1280 x 960
2024-03-19 17:19:48.869 23925-23951 Process                 com.tfliteexample                    I  Sending signal. PID: 23925 SIG: 9
2024-03-19 17:19:52.308 24103-24128 AndroidRuntime          pid-24103                            E  FATAL EXCEPTION: mqt_native_modules
                                                                                                    Process: com.tfliteexample, PID: 24103
                                                                                                    com.facebook.react.common.JavascriptException: Error: Exception in HostFunction: java.lang.NoSuchMethodError: no non-static method "Lcom/mrousavy/camera/frameprocessor/FrameProcessor;.<init>(Lcom/facebook/jni/HybridData;)V", js engine: hermes, stack:
                                                                                                    setFrameProcessor@1:602717
                                                                                                    onViewReady@1:602821
                                                                                                    invokeGuardedCallbackImpl@1:284974
                                                                                                    invokeGuardedCallback@1:285031
                                                                                                    invokeGuardedCallbackAndCatchFirstError@1:285063
                                                                                                    executeDispatch@1:285192
                                                                                                    executeDispatchesAndReleaseTopLevel@1:289361
                                                                                                    forEachAccumulated@1:286650
                                                                                                    anonymous@1:289724
                                                                                                    batchedUpdatesImpl@1:348771
                                                                                                    batchedUpdates@1:289279
                                                                                                    _receiveRootNodeIDEvent@1:289562
                                                                                                    receiveEvent@1:343266
                                                                                                    __callFunction@1:41328
                                                                                                    anonymous@1:39633
                                                                                                    __guard@1:40589
                                                                                                    callFunctionReturnFlushedQueue@1:39591
                                                                                                    
                                                                                                    	at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(Unknown Source:75)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.facebook.react.bridge.JavaMethodWrapper.invoke(Unknown Source:142)
                                                                                                    	at com.facebook.react.bridge.JavaModuleWrapper.invoke(Unknown Source:21)
                                                                                                    	at com.facebook.jni.NativeRunnable.run(Native Method)
                                                                                                    	at android.os.Handler.handleCallback(Handler.java:958)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:99)
                                                                                                    	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(Unknown Source:0)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:205)
                                                                                                    	at android.os.Looper.loop(Looper.java:294)
                                                                                                    	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(Unknown Source:37)
                                                                                                    	at java.lang.Thread.run(Thread.java:1012)
2024-03-19 17:19:52.437 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.467 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.500 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.534 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.566 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.601 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.632 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.666 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.700 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.734 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.766 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.800 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.834 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.867 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.899 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.932 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.965 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:52.999 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.033 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.066 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.081 24103-24122 EGL_emulation           com.tfliteexample                    D  app_time_stats: avg=10.84ms min=0.81ms max=71.05ms count=51
2024-03-19 17:19:53.101 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.134 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.168 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.201 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.234 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.266 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.300 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.335 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.367 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.401 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.433 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.467 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.500 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.534 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.567 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.602 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.635 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.670 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.703 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.736 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.767 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.801 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.834 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.868 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.900 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.933 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:53.967 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.000 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.032 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.068 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.102 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.103 24103-24122 EGL_emulation           com.tfliteexample                    D  app_time_stats: avg=2.39ms min=1.08ms max=6.75ms count=49
2024-03-19 17:19:54.135 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.168 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.200 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.234 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.269 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.300 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.334 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.366 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.402 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.433 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.467 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.502 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.537 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.569 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.602 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.634 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.668 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.702 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.735 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.769 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.802 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.834 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.869 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.924 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.938 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:54.972 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.006 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.039 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.075 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.107 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.108 24103-24122 EGL_emulation           com.tfliteexample                    D  app_time_stats: avg=2.68ms min=0.82ms max=7.11ms count=46
2024-03-19 17:19:55.141 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.173 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.207 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.240 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.273 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.307 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.340 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.373 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.408 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.441 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.474 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.507 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.541 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.574 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.606 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.638 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.672 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.705 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.738 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.773 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.805 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.837 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.870 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.904 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.939 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:55.974 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:56.008 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:56.040 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:56.076 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:56.106 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:56.114 24103-24122 EGL_emulation           com.tfliteexample                    D  app_time_stats: avg=3.53ms min=0.94ms max=14.37ms count=39
2024-03-19 17:19:56.143 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!
2024-03-19 17:19:56.204 24103-24138 VideoPipeline           com.tfliteexample                    I  ImageReader::onImageAvailable!

saurav-aggarwal avatar Mar 19 '24 11:03 saurav-aggarwal

Do you have ProGuard enabled?

mrousavy avatar Mar 21 '24 15:03 mrousavy

Maybe add this to your proguard-rules.pro:

-keep class com.mrousavy.camera.** { *; }

mrousavy avatar Mar 21 '24 15:03 mrousavy