Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when zooming for an aux sensor #211

Open
Iey4iej3 opened this issue Dec 20, 2022 · 1 comment
Open

Crash when zooming for an aux sensor #211

Iey4iej3 opened this issue Dec 20, 2022 · 1 comment

Comments

@Iey4iej3
Copy link

Iey4iej3 commented Dec 20, 2022

Describe the bug
The app crashes when I zoom an aux camera.

To Reproduce
Steps to reproduce the behavior:

  1. Switch to Back Camera 4.
  2. Switch the zooming level

Expected behavior
Perform a proper zooming

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: Mi 10T Pro
  • OS: LineageOS 19.1
  • Version 4.3.82

Additional context
Add any other context about the problem here.

logcat:

FATAL EXCEPTION: CaptureSessionHandler
Process: troop.com.freedcam, PID: 9236
java.lang.IllegalArgumentException: x must be nonnegative
	at com.android.internal.util.Preconditions.checkArgumentNonnegative(Preconditions.java:324)
	at android.hardware.camera2.params.MeteringRectangle.<init>(MeteringRectangle.java:92)
	at android.hardware.camera2.marshal.impl.MarshalQueryableMeteringRectangle$MarshalerMeteringRectangle.unmarshal(MarshalQueryableMeteringRectangle.java:67)
	at android.hardware.camera2.marshal.impl.MarshalQueryableMeteringRectangle$MarshalerMeteringRectangle.unmarshal(MarshalQueryableMeteringRectangle.java:35)
	at android.hardware.camera2.marshal.impl.MarshalQueryableArray$MarshalerArray.unmarshal(MarshalQueryableArray.java:157)
	at android.hardware.camera2.impl.CameraMetadataNative.getBase(CameraMetadataNative.java:611)
	at android.hardware.camera2.impl.CameraMetadataNative.get(CameraMetadataNative.java:471)
	at android.hardware.camera2.impl.CameraMetadataNative.get(CameraMetadataNative.java:447)
	at android.hardware.camera2.CaptureResult.getProtected(CaptureResult.java:331)
	at android.hardware.camera2.CaptureResult.getProtected(CaptureResult.java:54)
	at android.hardware.camera2.CameraMetadata.getKeys(CameraMetadata.java:199)
	at android.hardware.camera2.CameraMetadata.getKeys(CameraMetadata.java:146)
	at android.hardware.camera2.CaptureResult.getKeys(CaptureResult.java:364)
	at freed.cam.apis.camera2.CameraValuesChangedCaptureCallback.processQcomAEValues(CameraValuesChangedCaptureCallback.java:450)
	at freed.cam.apis.camera2.CameraValuesChangedCaptureCallback.onCaptureCompleted(CameraValuesChangedCaptureCallback.java:219)
	at android.hardware.camera2.impl.CameraCaptureSessionImpl$1.lambda$onCaptureCompleted$3$CameraCaptureSessionImpl$1(CameraCaptureSessionImpl.java:693)
	at android.hardware.camera2.impl.CameraCaptureSessionImpl$1$$ExternalSyntheticLambda6.run(Unknown Source:8)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.os.HandlerThread.run(HandlerThread.java:67)
@Iey4iej3 Iey4iej3 changed the title Crash when zooming Crash when zooming for an aux sensor Dec 20, 2022
@Iey4iej3
Copy link
Author

Seemingly the specific Camera ID does not support zooming, but this is not recognized by FreeDCam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant