google / jetpack-camera-app

Apache License 2.0
116 stars 25 forks source link

Pixel 2 API 28 emulator failing on 1:1 aspect ratio #222

Closed temcguir closed 1 week ago

temcguir commented 1 month ago

We're getting the following test failure in CI:

com.google.jetpackcamera.BackgroundDeviceTest > setAspectRatio_then_background_foreground[pixel2Api28] FAILED 
    java.lang.IllegalArgumentException: androidx.camera.core.internal.CameraUseCaseAdapter$CameraException: java.lang.IllegalArgumentException: No available output size is found for androidx.camera.core.streamsharing.StreamSharingConfig@47a5d94.
        at androidx.camera.lifecycle.LifecycleCameraRepository.bindToLifecycleCamera(LifecycleCameraRepository.java:304)

This is likely due to the ResolutionSelector / AspectRatio changes for non-4:3 or 16:9 aspect ratios.