Project: appceleratorstudio
Issue TISTUD-5465: Studio freezes for a moment when loading Deploy Targets section of tiapp editor
If Studio is closed with an active TiApp editor, then during the restart of Studio, it tries to activate the TiApp editor from the previous session. While it tries to open the TiApp editor, it ends up in loading the Android AVDs and that causes freeze momentarily. Here is the stacktrace excerpt during the startup of Studio : com.aptana.core.util.ProcessUtil.processData(ProcessUtil.java:232) com.aptana.core.util.ProcessUtil.processData(ProcessUtil.java:187) com.aptana.core.util.ProcessUtil.processResult(ProcessUtil.java:142) com.appcelerator.titanium.core.cli.NodeJSExecuter.runCommand(NodeJSExecuter.java:210) com.appcelerator.titanium.core.cli.NodeJSExecuter.runCommandWithNoLogin(NodeJSExecuter.java:410) com.appcelerator.titanium.android.core.launching.AndroidNodeJSCommandsHelper.getAndroidTargets(AndroidNodeJSCommandsHelper.java:118) com.appcelerator.titanium.android.core.AndroidSDKLocator.getAVDs(AndroidSDKLocator.java:254) com.appcelerator.titanium.android.core.AndroidSDKLocator.initialize(AndroidSDKLocator.java:132) com.appcelerator.titanium.core.mobile.SDKLocator.lazyInitialize(SDKLocator.java:149)	- locked <7b0ae4158> (a com.appcelerator.titanium.android.core.AndroidSDKLocator) com.appcelerator.titanium.core.mobile.SDKLocator.getAvailable(SDKLocator.java:274) com.appcelerator.titanium.core.internal.mobile.MobilePlatformsRegistry$LazyMobilePlatform.configurationStatus(MobilePlatformsRegistry.java:310) com.appcelerator.titanium.ui.ide.tiappEditor.TiAppDeployTargetsSection.updateControlsEnablement(TiAppDeployTargetsSection.java:456) com.appcelerator.titanium.ui.ide.tiappEditor.AbstractTiAppSection.initialize(AbstractTiAppSection.java:72) com.appcelerator.titanium.ui.ide.tiappEditor.TiAppDeployTargetsSection.initialize(TiAppDeployTargetsSection.java:208) com.appcelerator.titanium.ui.ide.tiappEditor.AbstractTiAppSection.(AbstractTiAppSection.java:55) com.appcelerator.titanium.ui.ide.tiappEditor.TiAppDeployTargetsSection.(TiAppDeployTargetsSection.java:144) com.appcelerator.titanium.ui.ide.tiappEditor.TiAppFormPage.createFormContent(TiAppFormPage.java:100) org.eclipse.ui.forms.editor.FormPage$1.run(FormPage.java:152) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:150)
Story points: 8