Fixed
Status Update
Comments
ar...@gmail.com <ar...@gmail.com>
sc...@google.com <sc...@google.com>
ap...@google.com <ap...@google.com> #2
A couple of questions:
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
1. Have you saw crash in real device or only in simulators?
2. Do you use dynamic feature for language ID?
sc...@google.com <sc...@google.com> #3
Tested on Android 12 Emulator with custom executor, but cannot repro this issue.
ar...@gmail.com <ar...@gmail.com> #4
-
Second crash in the description is from a real device. Experienced it myself on two different Xiaomi phones, plus lots of crashes from users in the Google Play console.
-
Dynamic features are not used in the application.
As a wild guess, I have downgraded build tools from 31.0.0 to 30.0.3, compileSdk from 31 to 30, and moved all work with Language ID to the service in a separate process (just to be sure that crash can kill secondary process instead of main). This combination is in beta for 2 days by now and I don't see any SIGSEGV crashes.
Description
I am using the CameraView which is causing issue specifically when focus is performed.
I have attached the steps to reproduce the error, please review and provide some solution could not fix that from my side even the camera class in final.
2020-05-20 11:10:31.033 14365-14626/
Process:
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
at androidx.camera.camera2.internal.FocusMeteringControl.lambda$executeMeteringAction$3$FocusMeteringControl(FocusMeteringControl.java:530)
at androidx.camera.camera2.internal.-$$Lambda$FocusMeteringControl$myFOvxwuOccCZDq-wHBp6yswlIg.onCaptureResult(Unknown Source:11)
at androidx.camera.camera2.internal.Camera2CameraControl$CameraControlSessionCallback.lambda$onCaptureCompleted$0$Camera2CameraControl$CameraControlSessionCallback(Camera2CameraControl.java:516)
at androidx.camera.camera2.internal.-$$Lambda$Camera2CameraControl$CameraControlSessionCallback$D22-IA_eQmzTWvkNwlgaZNWM8E8.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:201)
at android.os.HandlerThread.run(HandlerThread.java:65)
CAMERAX VERSION:
def camerax_version = "1.0.0-beta03"
implementation "androidx.camera:camera-core:${camerax_version}"
// CameraX Camera2 extensions
implementation "androidx.camera:camera-camera2:${camerax_version}"
// CameraX Lifecycle library
implementation "androidx.camera:camera-lifecycle:${camerax_version}"
// CameraX View class
implementation 'androidx.camera:camera-view:1.0.0-alpha10'
// If you want to additionally use the CameraX Extensions library
implementation "androidx.camera:camera-extensions:1.0.0-alpha10"
CAMERA APPLICATION NAME AND VERSION: Camera V: 3.0
ANDROID OS BUILD NUMBER: Android 9 PKQ1.181021.001
DEVICE NAME: Xiaomi Redmi 7
DESCRIPTION: Application crash when zoom and tap for focus using CameraView class
STEPS TO REPRODUCE:
1. Create demo App with CameraView
2. Pinch zoom atleast 1 or 2 steps
3. Touch/Tap to focus on screen
OBSERVED RESULTS: CRASH
EXPECTED RESULTS: Focus
REPRODUCIBILITY: 100 of 100
ADDITIONAL INFORMATION:
Used Fragment to implement CameraView.