OutOfMemoryError at org.eclipse.xtext.ui.editor.syntaxcoloring [message #1095119] |
Mon, 26 August 2013 16:49 |
Michael Vorburger 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 .
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03623 seconds