Fixed
Status Update
Comments
uc...@google.com <uc...@google.com>
xa...@google.com <xa...@google.com> #2
I'm having the same problem. The error highlighting feels very unresponsive. Sometimes I even have to close the file for it to clean the error line from the tab.
xa...@google.com <xa...@google.com> #3
It looks like this might be related to the Mac touchbar support. Both of the freezes are pointing to the same stackframes, where it looks like the touchbar support is busy updating an *icon* related to running activities, which seems to be doing something really expensive (parsing manifests), which is then going into class loading.
This is in the run machinery.
"AWT-EventQueue-0" prio=0 tid=0x0 nid=0x0 runnable
java.lang.Thread.State: RUNNABLE
(in native)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:219)
at java.util.zip.ZipFile.<init>(ZipFile.java:149)
at java.util.zip.ZipFile.<init>(ZipFile.java:120)
at com.intellij.util.lang.JarLoader.getZipFile(JarLoader.java:237)
at com.intellij.util.lang.JarLoader.getResource(JarLoader.java:157)
at com.intellij.util.lang.ClassPath$ResourceStringLoaderIterator.process(ClassPath.java:346)
at com.intellij.util.lang.ClassPath$ResourceStringLoaderIterator.process(ClassPath.java:342)
at com.intellij.util.lang.ClasspathCache.iterateLoaders(ClasspathCache.java:98)
at com.intellij.util.lang.ClassPath.getResource(ClassPath.java:109)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:237)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:147)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:74)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:61)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.android.tools.idea.model.MergedManifest.getApiVersion(MergedManifest.java:540)
at com.android.tools.idea.model.MergedManifest.syncWithReadPermission(MergedManifest.java:499)
at com.android.tools.idea.model.MergedManifest$$Lambda$3188/459221649.run(Unknown Source)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:925)
at com.android.tools.idea.model.MergedManifest.sync(MergedManifest.java:372)
at com.android.tools.idea.model.MergedManifest.getActivities(MergedManifest.java:550)
at com.android.tools.idea.run.activity.DefaultActivityLocator.lambda$computeDefaultActivity$0(DefaultActivityLocator.java:79)
at com.android.tools.idea.run.activity.DefaultActivityLocator$$Lambda$3187/1683877759.compute(Unknown Source)
at com.intellij.openapi.project.DumbService.lambda$runReadActionInSmartMode$0(DumbService.java:79)
at com.intellij.openapi.project.DumbService$$Lambda$1109/1543342817.run(Unknown Source)
at com.intellij.openapi.project.DumbService.runReadActionInSmartMode(DumbService.java:110)
at com.intellij.openapi.project.DumbService.runReadActionInSmartMode(DumbService.java:79)
at com.android.tools.idea.run.activity.DefaultActivityLocator.computeDefaultActivity(DefaultActivityLocator.java:78)
at com.android.tools.idea.run.activity.DefaultActivityLocator.validate(DefaultActivityLocator.java:65)
at com.android.tools.idea.run.editor.DefaultActivityLaunch$State.checkConfiguration(DefaultActivityLaunch.java:49)
at com.android.tools.idea.run.AndroidAppRunConfigurationBase.checkConfiguration(AndroidAppRunConfigurationBase.java:113)
at com.android.tools.idea.run.AndroidRunConfigurationBase.validate(AndroidRunConfigurationBase.java:190)
at com.android.tools.idea.run.AndroidRunConfigurationBase.checkConfiguration(AndroidRunConfigurationBase.java:123)
at com.intellij.execution.impl.RunnerAndConfigurationSettingsImpl.checkSettings(RunnerAndConfigurationSettingsImpl.kt:321)
at com.intellij.execution.RunnerAndConfigurationSettings.checkSettings(RunnerAndConfigurationSettings.java:116)
at com.intellij.execution.impl.TimedIconCache.calcIcon(TimedIconCache.kt:66)
at com.intellij.execution.impl.TimedIconCache.access$calcIcon(TimedIconCache.kt:18)
at com.intellij.execution.impl.TimedIconCache$get$$inlined$write$lambda$1.fun(TimedIconCache.kt:50)
at com.intellij.execution.impl.TimedIconCache$get$$inlined$write$lambda$1.fun(TimedIconCache.kt:18)
at com.intellij.ui.DeferredIconImpl.evaluate(DeferredIconImpl.java:282)
at com.intellij.ui.DeferredIconImpl.retrieveIcon(DeferredIconImpl.java:274)
at com.intellij.openapi.util.IconLoader.getOrigin(IconLoader.java:829)
at com.intellij.openapi.util.IconLoader.getDarkIcon(IconLoader.java:502)
at com.intellij.ui.mac.touchbar.TBItemButton.update(TBItemButton.java:181)
at com.intellij.ui.mac.touchbar.TBItemAnActionButton.updateView(TBItemAnActionButton.java:162)
at com.intellij.ui.mac.touchbar.TouchBar.lambda$updateActionItems$5(TouchBar.java:255)
at com.intellij.ui.mac.touchbar.TouchBar$$Lambda$2023/1091692950.accept(Unknown Source)
at com.intellij.ui.mac.touchbar.ItemsContainer.lambda$forEachDeep$2(ItemsContainer.java:144)
at com.intellij.ui.mac.touchbar.ItemsContainer$$Lambda$2024/329411827.accept(Unknown Source)
at java.util.ArrayList.forEach(ArrayList.java:1251)
at com.intellij.ui.mac.touchbar.ItemsContainer.forEachDeep(ItemsContainer.java:139)
at com.intellij.ui.mac.touchbar.TouchBar.forEachDeep(TouchBar.java:236)
at com.intellij.ui.mac.touchbar.TouchBar.updateActionItems(TouchBar.java:245)
at com.intellij.ui.mac.touchbar.TouchBar.onBeforeShow(TouchBar.java:229)
at com.intellij.ui.mac.touchbar.StackTouchBars$TouchBarHolder._setNextTouchBar(StackTouchBars.java:161)
at com.intellij.ui.mac.touchbar.StackTouchBars$TouchBarHolder.lambda$setTouchBar$0(StackTouchBars.java:145)
at com.intellij.ui.mac.touchbar.StackTouchBars$TouchBarHolder$$Lambda$2004/1459246220.actionPerformed(Unknown Source)
This is in the run machinery.
"AWT-EventQueue-0" prio=0 tid=0x0 nid=0x0 runnable
java.lang.Thread.State: RUNNABLE
(in native)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:219)
at java.util.zip.ZipFile.<init>(ZipFile.java:149)
at java.util.zip.ZipFile.<init>(ZipFile.java:120)
at com.intellij.util.lang.JarLoader.getZipFile(JarLoader.java:237)
at com.intellij.util.lang.JarLoader.getResource(JarLoader.java:157)
at com.intellij.util.lang.ClassPath$ResourceStringLoaderIterator.process(ClassPath.java:346)
at com.intellij.util.lang.ClassPath$ResourceStringLoaderIterator.process(ClassPath.java:342)
at com.intellij.util.lang.ClasspathCache.iterateLoaders(ClasspathCache.java:98)
at com.intellij.util.lang.ClassPath.getResource(ClassPath.java:109)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:237)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:147)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:74)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:61)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.android.tools.idea.model.MergedManifest.getApiVersion(MergedManifest.java:540)
at com.android.tools.idea.model.MergedManifest.syncWithReadPermission(MergedManifest.java:499)
at com.android.tools.idea.model.MergedManifest$$Lambda$3188/459221649.run(Unknown Source)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:925)
at com.android.tools.idea.model.MergedManifest.sync(MergedManifest.java:372)
at com.android.tools.idea.model.MergedManifest.getActivities(MergedManifest.java:550)
at com.android.tools.idea.run.activity.DefaultActivityLocator.lambda$computeDefaultActivity$0(DefaultActivityLocator.java:79)
at com.android.tools.idea.run.activity.DefaultActivityLocator$$Lambda$3187/1683877759.compute(Unknown Source)
at com.intellij.openapi.project.DumbService.lambda$runReadActionInSmartMode$0(DumbService.java:79)
at com.intellij.openapi.project.DumbService$$Lambda$1109/1543342817.run(Unknown Source)
at com.intellij.openapi.project.DumbService.runReadActionInSmartMode(DumbService.java:110)
at com.intellij.openapi.project.DumbService.runReadActionInSmartMode(DumbService.java:79)
at com.android.tools.idea.run.activity.DefaultActivityLocator.computeDefaultActivity(DefaultActivityLocator.java:78)
at com.android.tools.idea.run.activity.DefaultActivityLocator.validate(DefaultActivityLocator.java:65)
at com.android.tools.idea.run.editor.DefaultActivityLaunch$State.checkConfiguration(DefaultActivityLaunch.java:49)
at com.android.tools.idea.run.AndroidAppRunConfigurationBase.checkConfiguration(AndroidAppRunConfigurationBase.java:113)
at com.android.tools.idea.run.AndroidRunConfigurationBase.validate(AndroidRunConfigurationBase.java:190)
at com.android.tools.idea.run.AndroidRunConfigurationBase.checkConfiguration(AndroidRunConfigurationBase.java:123)
at com.intellij.execution.impl.RunnerAndConfigurationSettingsImpl.checkSettings(RunnerAndConfigurationSettingsImpl.kt:321)
at com.intellij.execution.RunnerAndConfigurationSettings.checkSettings(RunnerAndConfigurationSettings.java:116)
at com.intellij.execution.impl.TimedIconCache.calcIcon(TimedIconCache.kt:66)
at com.intellij.execution.impl.TimedIconCache.access$calcIcon(TimedIconCache.kt:18)
at com.intellij.execution.impl.TimedIconCache$get$$inlined$write$lambda$1.fun(TimedIconCache.kt:50)
at com.intellij.execution.impl.TimedIconCache$get$$inlined$write$lambda$1.fun(TimedIconCache.kt:18)
at com.intellij.ui.DeferredIconImpl.evaluate(DeferredIconImpl.java:282)
at com.intellij.ui.DeferredIconImpl.retrieveIcon(DeferredIconImpl.java:274)
at com.intellij.openapi.util.IconLoader.getOrigin(IconLoader.java:829)
at com.intellij.openapi.util.IconLoader.getDarkIcon(IconLoader.java:502)
at com.intellij.ui.mac.touchbar.TBItemButton.update(TBItemButton.java:181)
at com.intellij.ui.mac.touchbar.TBItemAnActionButton.updateView(TBItemAnActionButton.java:162)
at com.intellij.ui.mac.touchbar.TouchBar.lambda$updateActionItems$5(TouchBar.java:255)
at com.intellij.ui.mac.touchbar.TouchBar$$Lambda$2023/1091692950.accept(Unknown Source)
at com.intellij.ui.mac.touchbar.ItemsContainer.lambda$forEachDeep$2(ItemsContainer.java:144)
at com.intellij.ui.mac.touchbar.ItemsContainer$$Lambda$2024/329411827.accept(Unknown Source)
at java.util.ArrayList.forEach(ArrayList.java:1251)
at com.intellij.ui.mac.touchbar.ItemsContainer.forEachDeep(ItemsContainer.java:139)
at com.intellij.ui.mac.touchbar.TouchBar.forEachDeep(TouchBar.java:236)
at com.intellij.ui.mac.touchbar.TouchBar.updateActionItems(TouchBar.java:245)
at com.intellij.ui.mac.touchbar.TouchBar.onBeforeShow(TouchBar.java:229)
at com.intellij.ui.mac.touchbar.StackTouchBars$TouchBarHolder._setNextTouchBar(StackTouchBars.java:161)
at com.intellij.ui.mac.touchbar.StackTouchBars$TouchBarHolder.lambda$setTouchBar$0(StackTouchBars.java:145)
at com.intellij.ui.mac.touchbar.StackTouchBars$TouchBarHolder$$Lambda$2004/1459246220.actionPerformed(Unknown Source)
ud...@google.com <ud...@google.com> #4
I've the toolbar disabled, if that information helps
Instead of showing custom buttons, they are fixed to the traditional layout (play, pause, etc.)
Instead of showing custom buttons, they are fixed to the traditional layout (play, pause, etc.)
je...@google.com <je...@google.com> #5
I'm working on a Mac mini, so no touch bar. I'm not able to give any logs because I'm out of office until next year.
But something is definitively wrong with 3.3 compared with 3.2. It's much more unresponsive.
But something is definitively wrong with 3.3 compared with 3.2. It's much more unresponsive.
ro...@tawacentral.net <ro...@tawacentral.net> #6
Here are the suspects that I've noticed:
1. FrequentEventDetector - Too many events posted, #3. Event: java.awt.event.InvocationE
vent[INVOCATION_DEFAULT,runnable=TransferToEDTQueue[Multiple builds view queue]
The build console view (esp. when it is in tree mode) has had some issues. +cc smithbradley@: Was that issue fixed in 3.3?
2. rpaquay@: I see a constant stream of "DefaultActivityLocator - No launchable activities found, total # of activities: 0".
Miguel - This is not related to touchbar, it is simply the run configuration toolbar doing a check of your current run configuration to see whether it is valid. If you can tell us about why your current run configuration is different that what Studio expects, that may help us. Is your app's default activity not easily locatable due to some special setup you have?
3. Lastly, I see a number of freezes that are supposed to happen once around startup. But it does look like you restarted the IDE multiple times during the day. (e.g 3x on the 19th, 2x on 21st, etc).
I suspect that the biggest issue is probably related to (1) above.
1. FrequentEventDetector - Too many events posted, #3. Event: java.awt.event.InvocationE
vent[INVOCATION_DEFAULT,runnable=TransferToEDTQueue[Multiple builds view queue]
The build console view (esp. when it is in tree mode) has had some issues. +cc smithbradley@: Was that issue fixed in 3.3?
2. rpaquay@: I see a constant stream of "DefaultActivityLocator - No launchable activities found, total # of activities: 0".
Miguel - This is not related to touchbar, it is simply the run configuration toolbar doing a check of your current run configuration to see whether it is valid. If you can tell us about why your current run configuration is different that what Studio expects, that may help us. Is your app's default activity not easily locatable due to some special setup you have?
3. Lastly, I see a number of freezes that are supposed to happen once around startup. But it does look like you restarted the IDE multiple times during the day. (e.g 3x on the 19th, 2x on 21st, etc).
I suspect that the biggest issue is probably related to (1) above.
je...@google.com <je...@google.com> #7
Siva, did you look at the second thread dump in the attachments? It points right to the touchbar support ( com.intellij.ui.mac.touchbar.) If there's no touchbar being used, but it's a Mac, it's probably code which runs regardless of whether an actual touchbar is present. Which means there isn't some simple way of disabling it.
The other freeze dump does seem to be busy spewing exceptions, but I don't see some obvious culprit from the logs.
The other freeze dump does seem to be busy spewing exceptions, but I don't see some obvious culprit from the logs.
ud...@google.com <ud...@google.com>
ud...@google.com <ud...@google.com> #8
My project's structure is described in another bug that I filed the other day -> https://issuetracker.google.com/issues/121006352
The Modules folder contains 26 modules, which I don't think is a lot nowadays. The app depends on some of the modules, and modules have dependencies amongst each other. But, again, nothing out of the ordinary. I don't know if this could be related to the FrequentEventDetector. 26 modules means a lot of tasks written to the build console view.
On the "No launchable activities", I can only think that I don't have a launcher activity in the main manifest, they are in each flavor's manifest
On the reboots, on the 19th I was having issues with some strings not detected. In the end I had to invalidate caches and restart. (I should file a new bug for that problem). I don't know why I rebooted today.
If you come up with more suspects, I'll try to help you.
I'm attaching more thread dumps, I just shared 2 of them before. One of them happened just now, so I'm also attaching the latest log
The Modules folder contains 26 modules, which I don't think is a lot nowadays. The app depends on some of the modules, and modules have dependencies amongst each other. But, again, nothing out of the ordinary. I don't know if this could be related to the FrequentEventDetector. 26 modules means a lot of tasks written to the build console view.
On the "No launchable activities", I can only think that I don't have a launcher activity in the main manifest, they are in each flavor's manifest
On the reboots, on the 19th I was having issues with some strings not detected. In the end I had to invalidate caches and restart. (I should file a new bug for that problem). I don't know why I rebooted today.
If you come up with more suspects, I'll try to help you.
I'm attaching more thread dumps, I just shared 2 of them before. One of them happened just now, so I'm also attaching the latest log
mf...@google.com <mf...@google.com>
hu...@google.com <hu...@google.com> #10
Same issue, some dumps and idea log. Mac OS
Description
Android Studio 3.4 Canary 9
Build #AI-183.4588.61.34.5186062, built on December 17, 2018
JRE: 1.8.0_152-release-1248-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-43-generic
Related to
Steps to Reproduce:
1/ Click menu "Build / Generate signed Bundle / APK..."
2/ Select "APK" and press Next
3/ Make sure "Remember passwords" is not checked (alternatively, check and uncheck to me sure)
4/ Enter passwords and press Next
5/ Select "release" build variant
6/ Select only V1 signature version
7/ Press Finish
Signed APK file is generated correctly. However, the entered passwords are written to the file:
build/intermediates/signing_config/<build-variant>/out/signing-config.json
This is bad for two reasons:
- I explicitly chose not to have the passwords remembered because I don't want them persisted anywhere, precisely because I guessed android studio would not remember them in a secure way
- the next time I generate a signed APK, I get an error if I don't enter the passwords, so saving them is useless anyway
I'm a googler, you can reach out to me at rogerta@google.com for more info.