1 Reply Latest reply on May 6, 2008 5:10 AM by Max Rydahl Andersen

    Crash on opening plain text file

    tnine Newbie

      Hi all,
      I have just downloaded a fresh installation of WTP Eclipse and installed JBoss tools via the "links" file. Every time I open a text file I receive this error. The file is only 1.5 megs. Any idea why this is happening? Everything has been running great until today. I have over 1 GB of RAM free when eclipse crashes.

      Versions:
      Eclipse: 3.3.2
      JBoss Tools: 2.0.1GA
      Java: 1.5
      Os: OSX 10.5.2

      eclipse.ini

      -vmargs
      -Xms512m
      -Xmx1024m
      -XX:MaxPermSize=256m
      


      Error
      !ENTRY org.eclipse.core.jobs 4 2 2008-05-02 17:46:33.385
      !MESSAGE An internal error occurred during: "Decoration Calculation".
      !STACK 0
      java.lang.OutOfMemoryError: Java heap space
       at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
       at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)
       at java.lang.StringBuffer.append(StringBuffer.java:225)
       at org.jboss.tools.common.util.FileUtil.readStream(FileUtil.java:108)
       at org.jboss.tools.common.model.ui.editor.XMLContentDescriber.describe(XMLContentDescriber.java:31)
       at org.eclipse.core.internal.content.ContentType.describe(ContentType.java:161)
       at org.eclipse.core.internal.content.ContentTypeCatalog.collectMatchingByContents(ContentTypeCatalog.java:190)
       at org.eclipse.core.internal.content.ContentTypeCatalog.internalFindContentTypesFor(ContentTypeCatalog.java:360)
       at org.eclipse.core.internal.content.ContentTypeCatalog.internalFindContentTypesFor(ContentTypeCatalog.java:407)
       at org.eclipse.core.internal.content.ContentTypeCatalog.getDescriptionFor(ContentTypeCatalog.java:304)
       at org.eclipse.core.internal.content.ContentTypeCatalog.getDescriptionFor(ContentTypeCatalog.java:318)
       at org.eclipse.core.internal.content.ContentTypeMatcher.getDescriptionFor(ContentTypeMatcher.java:86)
       at org.eclipse.core.internal.resources.ContentDescriptionManager.readDescription(ContentDescriptionManager.java:400)
       at org.eclipse.core.internal.resources.ContentDescriptionManager.getDescriptionFor(ContentDescriptionManager.java:339)
       at org.eclipse.core.internal.resources.File.getContentDescription(File.java:269)
       at org.eclipse.ui.internal.ide.model.WorkbenchResource.testContentTypeProperty(WorkbenchResource.java:150)
       at org.eclipse.ui.internal.ide.model.WorkbenchResource.testAttribute(WorkbenchResource.java:117)
       at org.eclipse.ui.internal.ActionExpression$ObjectStateExpression.preciselyMatches(ActionExpression.java:530)
       at org.eclipse.ui.internal.ActionExpression$ObjectStateExpression.isEnabledFor(ActionExpression.java:499)
       at org.eclipse.ui.internal.ActionExpression$OrExpression.isEnabledFor(ActionExpression.java:582)
       at org.eclipse.ui.internal.ActionExpression$AndExpression.isEnabledFor(ActionExpression.java:132)
       at org.eclipse.ui.internal.ActionExpression$SingleExpression.isEnabledFor(ActionExpression.java:743)
       at org.eclipse.ui.internal.ActionExpression.isEnabledFor(ActionExpression.java:1053)
       at org.eclipse.ui.internal.decorators.DecoratorDefinition.isEnabledFor(DecoratorDefinition.java:281)
       at org.eclipse.ui.internal.decorators.DecoratorManager.getDecoratorsFor(DecoratorManager.java:193)
       at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecoratorsFor(LightweightDecoratorManager.java:292)
       at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:315)
       at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:369)
       at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:329)
       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)