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
Hello,

I have a reproducible java.lang.OutOfMemoryError: Java heap space
at org.eclipse.xtext.ui.editor.syntaxcoloring.LightweightPosition.merge(LightweightPosition.java:174)
at org.eclipse.xtext.ui.editor.syntaxcoloring.MergingHighlightedPositionAcceptor.mergePositions(MergingHighlightedPositionAcceptor.java:111)
at org.eclipse.xtext.ui.editor.syntaxcoloring.MergingHighlightedPositionAcceptor.mergePositions(MergingHighlightedPositionAcceptor.java:77)
at org.eclipse.xtext.ui.editor.syntaxcoloring.MergingHighlightedPositionAcceptor.provideHighlightingFor(MergingHighlightedPositionAcceptor.java:52)
at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.reconcilePositions(HighlightingReconciler.java:94)
at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.modelChanged(HighlightingReconciler.java:296)
at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler$1$1.process(HighlightingReconciler.java:261)
at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler$1$1.process(HighlightingReconciler.java:1)
at org.eclipse.xtext.util.concurrent.IUnitOfWork$Void.exec(IUnitOfWork.java:36)
at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.readOnly(AbstractReadWriteAcces.java:62)
at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.readOnly(XtextDocument.java:228)
at org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:79)
at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler$1.run(HighlightingReconciler.java:258)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

The Semantic Highlighting code for the language where I'm seeing this is in https://github.com/vorburger/efactory/blob/master/com.googlecode.efactory.ui/src/com/googlecode/efactory/ui/highlighting/EFactoryHighlightingCalculator.java - anything obviously wrong with it?

You should be able to easily reproduce this, I hope, by just grabbing https://github.com/vorburger/efactory and opening https://gist.github.com/vorburger/6343639 ... 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 (https://github.com/vorburger/efactory/blob/master/com.googlecode.efactory.target/com.googlecode.efactory.target.target), 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,
Michael

PS: I've found http://www.eclipse.org/forums/index.php/t/337803/ => https://bugs.eclipse.org/bugs/show_bug.cgi?id=375272, but that appears to be something from 2.3.0, so this must be something else?

PPS: I've also noticed https://code.google.com/p/protobuf-dt/issues/detail?id=138, 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 https://bugs.eclipse.org/bugs/show_bug.cgi?id=420646.
Previous Topic:Using XExpression somewhere else than in operation bodies
Next Topic:Grammer for UML-Association
Goto Forum:
  


Current Time: Sat Apr 27 02:35:17 GMT 2024

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

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

Back to the top