Cannot set 'scaleX' to Float.NaN

34 views
Skip to first unread message

LINGA venkatesh

unread,
Apr 29, 2021, 2:23:49 AMApr 29
to Android CameraX Discussion Group
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.

LINGA venkatesh

unread,
Apr 29, 2021, 2:25:45 AMApr 29
to Android CameraX Discussion Group, LINGA venkatesh
Crash stack in formatted form

LINGA venkatesh

unread,
Apr 29, 2021, 2:36:22 AMApr 29
to Android CameraX Discussion Group, LINGA venkatesh
CameraX version : 1.0.0-rc02 & alpha20

LINGA venkatesh

unread,
Apr 29, 2021, 5:29:19 AMApr 29
to Android CameraX Discussion Group, LINGA venkatesh

Xi Zhang (张熹)

unread,
Apr 30, 2021, 12:51:15 PMApr 30
to LINGA venkatesh, Android CameraX Discussion Group
This is fixed in view alpha23. Please upgrade to the latest version and try again.

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/0d8b13bb-a1e2-4c81-a4f5-6f809c46416dn%40android.com.

LINGA venkatesh

unread,
May 7, 2021, 2:17:59 AMMay 7
to Android CameraX Discussion Group, Xi Zhang, Android CameraX Discussion Group, LINGA venkatesh
Thanks for update Xi Zhang
Reply all
Reply to author
Forward
0 new messages