Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Use Markdown for this comment
Set severity, which reflects how much the issue affects the use of the product
Change issue status back to 'Assigned'
Pending code changes (auto-populated)
[ID: 84651]
Story points rate the relative effort of work in a Fibonacci-like format: 0, 0.5, 1, 2, 3, 5, 8, 13, 20, 40, 100. Each team will estimate work on a slightly different scale, which means the values in this field are likely only meaningful to the team that owns the Buganizer component in which the issue resides.
See Atlassian's Agile Coach for more information on how to use story points for estimation: https://www.atlassian.com/agile/project-management/estimation [ID: 746686]
[ID: 977980]
[ID: 1059169]
[ID: 1046958]
Custom Field used by the team for Estimation for planning in go/camerax-inbox [ID: 969766]
Set the version(s) of the product affected by this issue (comma-separated list)
Set the version(s) of the product in which the issue should be fixed (comma-separated list)
Set the version(s) of the product in which the issue fix was verified (comma-separated list)
Set if this issue occurs in production
[ID: 85206]
Set Reporter
Set Type
Set priority, which reflects how soon the issue should be fixed
Set Status
Set Assignee
Set Verifier
Remove item
View or edit staffing
View issue level access limits(Press Alt + Right arrow for more information)
Description
#1STACK TRACE:
Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'androidx.camera.core.impl.CameraInfoInternal androidx.camera.core.impl.CameraInternal.getCameraInfoInternal()' on a null object reference
at androidx.camera.core.UseCase.getRelativeRotation(UseCase.java:313)
at androidx.camera.core.ImageCapture.takePicture(ImageCapture.java:978)
at co.hinge.native_video.camera.CameraControllerImpl.takePhoto(CameraControllerImpl.kt:143)
at co.hinge.native_video.camera.CameraControllerImpl.captureListener$lambda-4(CameraControllerImpl.kt:201)
at co.hinge.native_video.camera.CameraControllerImpl.$r8$lambda$Z7Bzo64OXNqGpIXY5QHitLFRIkI(CameraControllerImpl.kt)
at co.hinge.native_video.camera.CameraControllerImpl$$InternalSyntheticLambda$0$23873afc6e7147f4036a3f6c419c8d5a4530ec3f20159b25a8a53d454207f80f$0.accept(CameraControllerImpl.java:4)
at androidx.camera.video.Recorder$RecordingRecord.lambda$updateVideoRecordEvent$6(Recorder.java:2624)
at androidx.camera.video.Recorder$RecordingRecord.$r8$lambda$Uo40MCKPuma4aZ5df1-_fzufzHg(Recorder.java)
at androidx.camera.video.Recorder$RecordingRecord$$InternalSyntheticLambda$1$e783a4176ab49ebfaa1a77688524b1d8bf60886e8cc14f3df37f7a13164ca840$0.run(Recorder.java:4)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:233)
at android.app.ActivityThread.main(ActivityThread.java:8010)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
CAMERAX VERSION: 1.1.0-beta01 (however we just updated to 1.1.0-beta03, will follow up if crash resolves)
CAMERA APPLICATION NAME AND VERSION: Hinge 8.32.0
ANDROID OS BUILD NUMBER: We are seeing this crash occur on android 5, 6, 7, 8, 9, 10, and 11
DEVICE NAME: This crash is happening on Samsung, Xiaomi, OPPO, and asus phones
DESCRIPTION: This is happening when takePicture() is called on the image capture. Upon investigating the ImageCapture code I believe getCamera() is returning null when we attempt to get the relative rotation on line 978. I'm unsure why that value would be null as it is only nulled out upon binding/releasing use cases. I rebind use cases when I flip the camera. I experimented on taking images while aggressively flipping the camera and was unable to produce a crash.
LIST ANY EXPERIMENTAL FEATURES: We are injecting the ImageCapture and ListenableFuture<ProcessCameraProvider> into the class as opposed to creating them and storing them.
STEPS TO REPRODUCE: I have been unable to reproduce this bug
REPRODUCIBILITY: This crash has occurred 40 times as of the moment I'm filing this bug report.