-
-
Notifications
You must be signed in to change notification settings - Fork 970
Description
Describe the bug
Please add a clear description of what the bug is, and fill the list below.
- CameraView version: 2.7.2
- Camera engine used: camera2
- Reproducible in official demo app: no
- Device / Android version: Pixel 6 pro, API 35
- I have read the FAQ page: yes
To Reproduce
Steps to reproduce the behavior, possibly in the demo app:
- I capture images repeatedly, but sometimes it gives an error.
Logs
2025-07-25 10:19:17.113 AndroidRuntime E FATAL EXCEPTION: FallbackCameraThread (Ask Gemini)
Process: com.impca.partner, PID: 11370
java.lang.NullPointerException: Attempt to invoke interface method 'void com.otaliastudios.cameraview.engine.action.ActionHolder.removeAction(com.otaliastudios.cameraview.engine.action.Action)' on a null object reference
at com.otaliastudios.cameraview.engine.action.BaseAction.setState(BaseAction.java:119)
at com.otaliastudios.cameraview.engine.meter.WhiteBalanceMeter.onCaptureCompleted(WhiteBalanceMeter.java:81)
at com.otaliastudios.cameraview.engine.action.TogetherAction.onCaptureCompleted(TogetherAction.java:83)
at com.otaliastudios.cameraview.engine.action.ActionWrapper.onCaptureCompleted(ActionWrapper.java:65)
at com.otaliastudios.cameraview.engine.action.ActionWrapper.onCaptureCompleted(ActionWrapper.java:65)
at com.otaliastudios.cameraview.engine.action.TimeoutAction.onCaptureCompleted(TimeoutAction.java:42)
at com.otaliastudios.cameraview.engine.Camera2Engine$1.onCaptureCompleted(Camera2Engine.java:304)
at android.hardware.camera2.impl.CameraCaptureSessionImpl$1.lambda$onCaptureCompleted$4(CameraCaptureSessionImpl.java:732)
at android.hardware.camera2.impl.CameraCaptureSessionImpl$1.$r8$lambda$oAh73-fY7KfurUWjiXDM7qKCt-8(Unknown Source:0)
at android.hardware.camera2.impl.CameraCaptureSessionImpl$1$$ExternalSyntheticLambda2.run(D8$$SyntheticClass:0)
at android.os.Handler.handleCallback(Handler.java:995)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loopOnce(Looper.java:248)
at android.os.Looper.loop(Looper.java:338)
at android.os.HandlerThread.run(HandlerThread.java:85)