Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » OutOfMemoryError at org.eclipse.xtext.ui.editor.syntaxcoloring
OutOfMemoryError at org.eclipse.xtext.ui.editor.syntaxcoloring [message #1095119] Mon, 26 August 2013 16:49 Go to next message
Michael Vorburger is currently offline Michael VorburgerFriend
Messages: 103
Registered: July 2009
Senior Member

I have a reproducible java.lang.OutOfMemoryError: Java heap space
at org.eclipse.xtext.ui.editor.syntaxcoloring.LightweightPosition.merge(
at org.eclipse.xtext.ui.editor.syntaxcoloring.MergingHighlightedPositionAcceptor.mergePositions(
at org.eclipse.xtext.ui.editor.syntaxcoloring.MergingHighlightedPositionAcceptor.mergePositions(
at org.eclipse.xtext.ui.editor.syntaxcoloring.MergingHighlightedPositionAcceptor.provideHighlightingFor(
at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.reconcilePositions(
at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.modelChanged(
at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler$1$1.process(
at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler$1$1.process(
at org.eclipse.xtext.util.concurrent.IUnitOfWork$Void.exec(
at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.readOnly(
at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.readOnly(
at org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(
at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler$

The Semantic Highlighting code for the language where I'm seeing this is in - anything obviously wrong with it?

You should be able to easily reproduce this, I hope, by just grabbing and opening ... note that example is INVALID SYNTAX - but that should still never cause an OutOfMemoryError in syntaxcoloring, I'm sure you agree.

We've initially run into this with Xtext v2.3.1 on an Eclipse 3.8 (, but changing the target platform to the "Running Platform" on a fresh Kepler with Xtext 2.4.3 still causes this..

Bug? Do you want me to open issue on bugzilla about this?

No syntax highlighting for EFactory for now then Sad.

Thanks a lot,

PS: I've found =>, but that appears to be something from 2.3.0, so this must be something else?

PPS: I've also noticed, unclear on what Xtext version that was, and fixed by a change to their ISemanticHighlightingCalculator.. but still weird it led to an OutOfMemoryError, like here.
Re: OutOfMemoryError at org.eclipse.xtext.ui.editor.syntaxcoloring [message #1161130 is a reply to message #1095119] Tue, 29 October 2013 15:55 Go to previous message
Michael Vorburger is currently offline Michael VorburgerFriend
Messages: 103
Registered: July 2009
Senior Member
Just FTR for future Google hits Wink - this is now
Previous Topic:Using XExpression somewhere else than in operation bodies
Next Topic:Grammer for UML-Association
Goto Forum:

Current Time: Tue Nov 24 19:15:08 GMT 2020

Powered by FUDForum. Page generated in 0.01874 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top