Status Update
Comments
uc...@google.com <uc...@google.com>
di...@google.com <di...@google.com> #2
The freeze is caused by "OurIconsCalculatingPool" freezing while trying to compute the sync status.
at com.intellij.facet.FacetManagerBase.getFacetsByType(FacetManagerBase.java:109)
at com.intellij.facet.impl.ProjectFacetManagerImpl.lambda$getFacets$0(ProjectFacetManagerImpl.java:89)
at com.intellij.facet.impl.ProjectFacetManagerImpl$$Lambda$1256/1009864317.fun(Unknown Source)
at com.intellij.util.containers.ContainerUtil.concat(ContainerUtil.java:1712)
at com.intellij.facet.impl.ProjectFacetManagerImpl.getFacets(ProjectFacetManagerImpl.java:89)
at com.android.tools.idea.project.AndroidProjectInfo.requiredAndroidModelMissing(AndroidProjectInfo.java:98)
at com.android.tools.idea.gradle.project.sync.GradleSyncState.lastSyncFailed(GradleSyncState.kt:161)
Yuriy, any ideas on why requiredAndroidModelMissing might be so slow in this case? It caused a 77sec freeze and all the sampling points to that code.
so...@google.com <so...@google.com> #3
I'm not sure what is happening there, but with my recent changes lastSyncFailed
can be simplified. I'll take a look.
so...@google.com <so...@google.com> #4
We usually consider a failed sync to be noop. It does not change the state of the project. It might be imperfect and do not reflect the current configuration, but it is the same as it was moments ago. I'll be able to simplify the implementation of lastSyncFailed
soon, but I don't think this code should depend on it at all. I'm removing this if
.
so...@google.com <so...@google.com> #5
This is the key change I541ecc7aea110d7ecbaa242252f7dac6c89e5bec.
Description
Cause is unclear. Maybe coupled to Find References? Although this instance was when I was trying to delete a private val declaration.
Build: AI-201.8538.31.41.6692364, 202007191539,
AI-201.8538.31.41.6692364, JRE 1.8.0_242-release-1644-b3-6222593x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.15.6, screens 3440x1440
AS: 4.1 Beta 5; Kotlin plugin: 1.4.0-rc-release-Studio4.1-1; Android Gradle Plugin: 4.1.0-beta05; Gradle: 6.5.1; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)Source: user_sentiment_feedback
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply all required information.