Fixed
Status Update
Comments
xi...@google.com <xi...@google.com>
ra...@gmail.com <ra...@gmail.com> #2
This also occurs on stable version Giraffe.
am...@google.com <am...@google.com>
jl...@google.com <jl...@google.com>
jl...@google.com <jl...@google.com> #3
This should now be fixed.
First released version with a fix will be Hedgehog Beta 1.
Thank you for reporting the issue.
Description
####################################################
Please provide all of the following information, otherwise we may not be able to route your bug report.
####################################################
1. Describe the bug or issue that you're seeing.
Debug app crashes sometimes when Layout Inspector is active.
2. Attach log files from Android Studio
2A. In the IDE, select the Help..Collect Logs and Diagnostic Data menu option.
2B. Create a diagnostic report and save it to your local computer.
2C. Attach the report to this bug using the Add attachments button.
3. If you know what they are, write the steps to reproduce:
3A. Open Layout Inspector in Android Studio
3B. Install app via Android Studio
3C. App sometimes crashes on startup or when navigating between activities.
crash log:
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Cannot round NaN value.
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:371)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1975)
at com.android.tools.agent.appinspection.CaptureExecutor.sendLayoutEvent(CaptureExecutor.kt:182)
at com.android.tools.agent.appinspection.CaptureExecutor.executeCapture(CaptureExecutor.kt:145)
at com.android.tools.agent.appinspection.CaptureExecutor.access$executeCapture(CaptureExecutor.kt:42)
at com.android.tools.agent.appinspection.CaptureExecutor$execute$1.run(CaptureExecutor.kt:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.IllegalArgumentException: Cannot round NaN value.
at com.android.tools.idea.kotlin.math.MathKt__MathJVMKt.roundToInt(MathJVM.kt:1165)
at com.android.tools.agent.appinspection.proto.ViewExtensionsKt.toNodeImpl(ViewExtensions.kt:100)
at com.android.tools.agent.appinspection.proto.ViewExtensionsKt.toNodeImpl(ViewExtensions.kt:122)
at com.android.tools.agent.appinspection.proto.ViewExtensionsKt.toNodeImpl(ViewExtensions.kt:122)
at com.android.tools.agent.appinspection.proto.ViewExtensionsKt.toNodeImpl(ViewExtensions.kt:122)
at com.android.tools.agent.appinspection.proto.ViewExtensionsKt.toNodeImpl(ViewExtensions.kt:122)
at com.android.tools.agent.appinspection.proto.ViewExtensionsKt.toNodeImpl(ViewExtensions.kt:122)
at com.android.tools.agent.appinspection.proto.ViewExtensionsKt.toNodeImpl(ViewExtensions.kt:122)
at com.android.tools.agent.appinspection.proto.ViewExtensionsKt.toNodeImpl(ViewExtensions.kt:122)
at com.android.tools.agent.appinspection.proto.ViewExtensionsKt.toNodeImpl(ViewExtensions.kt:122)
at com.android.tools.agent.appinspection.proto.ViewExtensionsKt.toNodeImpl(ViewExtensions.kt:122)
at com.android.tools.agent.appinspection.proto.ViewExtensionsKt.toNodeImpl(ViewExtensions.kt:122)
at com.android.tools.agent.appinspection.proto.ViewExtensionsKt.toNode(ViewExtensions.kt:58)
at com.android.tools.agent.appinspection.CaptureExecutor$sendLayoutEvent$1.invoke(CaptureExecutor.kt:177)
at com.android.tools.agent.appinspection.CaptureExecutor$sendLayoutEvent$1.invoke(CaptureExecutor.kt:176)
at com.android.tools.agent.appinspection.util.ThreadUtils$runOnMainThread$1.run(ThreadUtils.kt:62)
at android.os.Handler.handleCallback(Handler.java:942)
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.app.ActivityThread.main(ActivityThread.java:7872)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
In addition to logs, please attach a screenshot or recording that illustrates the problem.
For more information on how to get your bug routed quickly, see
Build: AI-231.9225.16.2311.10533651, 202307201255
AI-231.9225.16.2311.10533651, JRE 17.0.7+0-17.0.7b829.16-10353782x64 JetBrains s.r.o., OS Mac OS X(aarch64) v13.5, screens 3456.0x2234.0, 2560.0x1440.0
AS: Hedgehog | 2023.1.1 Canary 14
Kotlin plugin: 231-1.8.21-release-380-AS9225.16.2311.10533651
Android Gradle Plugin: 8.1.0
Gradle: 8.2.1
Gradle JDK: JetBrains Runtime version 17.0.7
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
```