Project: appceleratorstudio
Issue TISTUD-3514: Studio becomes sluggish & we get  'Out of memory error'  
This has happened to me 4-5 times as of now Description: 1.Start the version of studio mentioned in the environment 2.Build & run some apps 3.Notice the performance of studio Actual Result: 1.The studio becomes sluggish & we get the out of memory error We get the following errors in the log: {code} !ENTRY org.eclipse.core.jobs 4 2 2013-02-20 13:54:11.963 !MESSAGE An internal error occurred during: "Decoration Calculation". !STACK 0 java.lang.OutOfMemoryError: Java heap space org.eclipse.core.runtime.Path.toOSString(Path.java:905) com.aptana.git.core.model.ChangedFile.(ChangedFile.java:49) com.aptana.git.core.model.ChangedFile.(ChangedFile.java:38) com.aptana.git.core.model.GitIndex.changedFiles(GitIndex.java:325) com.aptana.git.core.model.GitIndex.resourceOrChildHasChanges(GitIndex.java:634) com.aptana.git.core.model.GitRepository.resourceOrChildHasChanges(GitRepository.java:1729) com.aptana.git.ui.internal.GitLightweightDecorator.decorateFolder(GitLightweightDecorator.java:150) com.aptana.git.ui.internal.GitLightweightDecorator.decorate(GitLightweightDecorator.java:126) org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263) org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365) org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347) org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:370) org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:330) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !ENTRY org.eclipse.core.jobs 4 2 2013-02-20 13:55:32.871 !MESSAGE An internal error occurred during: "Decoration Calculation". !STACK 0 java.lang.OutOfMemoryError: Java heap space java.lang.String.substring(String.java:1939) org.eclipse.core.runtime.Path.computeSegments(Path.java:486) org.eclipse.core.runtime.Path.initialize(Path.java:602) org.eclipse.core.runtime.Path.fromPortableString(Path.java:106) com.aptana.git.core.model.ChangedFile.(ChangedFile.java:49) com.aptana.git.core.model.ChangedFile.(ChangedFile.java:38) com.aptana.git.core.model.GitIndex.changedFiles(GitIndex.java:325) com.aptana.git.core.model.GitIndex.resourceOrChildHasChanges(GitIndex.java:634) com.aptana.git.core.model.GitRepository.resourceOrChildHasChanges(GitRepository.java:1729) com.aptana.git.ui.internal.GitLightweightDecorator.decorateFolder(GitLightweightDecorator.java:150) com.aptana.git.ui.internal.GitLightweightDecorator.decorate(GitLightweightDecorator.java:126) org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:263) org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365) org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347) org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:370) org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:330) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) !ENTRY org.eclipse.core.jobs 4 2 2013-02-20 13:56:26.074 !MESSAGE An internal error occurred during: "Attaching Git repos". !STACK 0 java.lang.NullPointerException org.eclipse.core.internal.resources.WorkspaceRoot.getFileForLocation(WorkspaceRoot.java:137) com.aptana.git.core.model.GitIndex.getResourceForChangedFile(GitIndex.java:697) com.aptana.git.core.model.GitIndex.getChangedResources(GitIndex.java:684) com.aptana.git.core.model.GitRepository.getChangedResources(GitRepository.java:1779) com.aptana.git.ui.internal.GitLightweightDecorator.repositoryAdded(GitLightweightDecorator.java:374) com.aptana.git.core.model.GitRepositoryManager.fireRepositoryAddedEvent(GitRepositoryManager.java:227) com.aptana.git.core.model.GitRepositoryManager.attachExisting(GitRepositoryManager.java:213) com.aptana.git.core.GitResourceListener$GitAutoAttachProjectJob.run(GitResourceListener.java:193) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code} Expected Result: 1.The studio should run properly
Story points: 13