-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
4.29.1.Final
-
None
-
-
---
When attempting to open or right-click a large XML file (in my case ~1.1 GB) within a project in Eclipse, an OutOfMemoryError is thrown with the following message:
Could not create content describer for org.jboss.tools.common.model.ui.xml. Content type has been disabled. Required array length 2147483638 + 960 is too large
This appears to be caused by the org.jboss.tools.common.model.ui.editor.XMLContentDescriber being triggered for every .xml file, regardless of the actual content or context. Even in projects that do not use any JBoss Tools facets or validators, this describer still runs, making Eclipse unstable or unusable when encountering large XML files.
I verified this by modifying the JBoss plugin's plugin.xml and removing xml from the file-extensions list, which immediately resolved the issue. However, this is not a sustainable solution, as plugin updates will override the change.
Attempts to override the content describer locally via project preferences or content type customizations have been unsuccessful — Eclipse continues to load the JBoss content describer with higher priority, even when a custom describer is declared with priority="highest".