Andree Wormuth created IVYDE-385:
------------------------------------
Summary: IvyFileContentDescriber hangs with huge XML files
Key: IVYDE-385
URL: https://issues.apache.org/jira/browse/IVYDE-385
Project: IvyDE
Issue Type: Improvement
Affects Versions: 2.2.0.final
Environment: Each of the recent Eclipse versions (Helios. Mars, Neon)
Win 10
Java 8
Reporter: Andree Wormuth
The {{IvyFileContentDescriber}} seems to open each XML it's presented to check
if it's an ivy file:
{quote}java.io.FileInputStream.readBytes line: not available native method
java.io.FileInputStream.read line: 255
org.eclipse.core.internal.resources.ContentDescriptionManager$LazyFileInputStream.read
line: 173
java.io.InputStream.read line: 101
org.eclipse.core.internal.content.LazyInputStream.loadBlock line: 101
org.eclipse.core.internal.content.LazyInputStream.ensureAvailable line: 65
org.eclipse.core.internal.content.LazyInputStream.read line: 139
org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.read line: not
available
org.apache.xerces.impl.io.UTF8Reader.read line: not available
org.apache.xerces.impl.XMLEntityScanner.load line: not available
org.apache.xerces.impl.XMLEntityScanner.scanContent line: not available
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent line: not
available
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
line: not available
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument line: not
available
org.apache.xerces.parsers.XML11Configuration.parse line: not available
org.apache.xerces.parsers.XML11Configuration.parse line: not available
org.apache.xerces.parsers.XMLParser.parse line: not available
org.apache.xerces.parsers.AbstractSAXParser.parse line: not available
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse line: not available
org.apache.xerces.jaxp.SAXParserImpl.parse line: not available
org.apache.ivyde.internal.eclipse.XMLHelper.parse line: 76
org.apache.ivyde.internal.eclipse.ui.editors.IvyFileContentDescriber.checkCriteria
line: 70
org.apache.ivyde.internal.eclipse.ui.editors.IvyFileContentDescriber.describe
line: 53
org.eclipse.core.internal.content.ContentTypeCatalog.describe line: 229
org.eclipse.core.internal.content.ContentTypeCatalog.collectMatchingByContents
line: 201
org.eclipse.core.internal.content.ContentTypeCatalog.internalFindContentTypesFor
line: 414
org.eclipse.core.internal.content.ContentTypeCatalog.internalFindContentTypesFor
line: 461
org.eclipse.core.internal.content.ContentTypeCatalog.getDescriptionFor line: 357
org.eclipse.core.internal.content.ContentTypeCatalog.getDescriptionFor line: 371
org.eclipse.core.internal.content.ContentTypeMatcher.getDescriptionFor line: 76
org.eclipse.core.internal.resources.ContentDescriptionManager.readDescription
line: 453
org.eclipse.core.internal.resources.ContentDescriptionManager.getDescriptionFor
line: 363
org.eclipse.core.internal.resources.File.getContentDescription line: 263
org.eclipse.ui.internal.ide.model.WorkbenchResource.testContentTypeProperty
line: 148
org.eclipse.ui.internal.ide.model.WorkbenchResource.testAttribute line: 115
org.eclipse.ui.internal.ActionExpression$ObjectStateExpression.preciselyMatches
line: 512
org.eclipse.ui.internal.ActionExpression$ObjectStateExpression.isEnabledFor
line: 481
org.eclipse.ui.internal.ActionExpression$AndExpression.isEnabledFor line: 131
org.eclipse.ui.internal.ActionExpression$SingleExpression.isEnabledFor line: 716
org.eclipse.ui.internal.ActionExpression.isEnabledFor line: 1022
org.eclipse.ui.internal.decorators.DecoratorDefinition.isEnabledFor line: 282
org.eclipse.ui.internal.decorators.DecoratorManager.getDecoratorsFor line: 323
org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecoratorsFor
line: 333
org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations
line: 358
org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached
line: 367
org.eclipse.ui.internal.decorators.DecorationScheduler$1.run line: 327
org.eclipse.core.internal.jobs.Worker.run line: 55{quote}
This fails if a project contains huge XML files.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)