Hi all & Team,
is anyone facing the below crash while staring camera using bindToLifeCyle() api?
--------- beginning of crash
04-27 14:54:14.532 24291 24291 E AndroidRuntime: FATAL EXCEPTION: main
04-27 14:54:14.532 24291 24291 E AndroidRuntime: Process: com.microsoft.office.officelens, PID: 24291
04-27 14:54:14.532 24291 24291 E AndroidRuntime: java.lang.IllegalArgumentException: Cannot set 'scaleX' to Float.NaN
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at android.view.View.sanitizeFloatPropertyValue(View.java:16999)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at android.view.View.sanitizeFloatPropertyValue(View.java:16973)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at android.view.View.setScaleX(View.java:16362)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at androidx.camera.view.z.v(SourceFile:10)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at androidx.camera.view.a0.h(SourceFile:4)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at androidx.camera.view.PreviewView.c(SourceFile:2)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at androidx.camera.view.PreviewView$a.b(SourceFile:6)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at androidx.camera.view.k.onTransformationInfoUpdate(Unknown Source:6)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at androidx.camera.core.SurfaceRequest.g(SourceFile:1)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at androidx.camera.core.g1.run(Unknown Source:4)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7050)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
04-27 14:54:14.532 24291 24291 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
Thanks in advance.
Regards,
Venkatesh.