Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349448 - An internal error occurred during: "XtextReconcilerJob".
Summary: An internal error occurred during: "XtextReconcilerJob".
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-15 10:24 EDT by Serano Colameo CLA
Modified: 2017-09-19 17:21 EDT (History)
3 users (show)

See Also:
sebastian.zarnekow: juno+


Attachments
error log (12.82 KB, application/octet-stream)
2011-06-15 10:25 EDT, Serano Colameo CLA
no flags Details
Screenshot (258.84 KB, image/jpeg)
2011-08-02 07:05 EDT, Serano Colameo CLA
no flags Details
mwe2 file (7.97 KB, text/plain)
2011-08-02 07:05 EDT, Serano Colameo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Serano Colameo CLA 2011-06-15 10:24:47 EDT
Build Identifier: Xtext SDK 2.0.0.v201106050907

org.eclipse.core.runtime.AssertionFailedException: assertion failed: 
	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96)
	at org.eclipse.jface.text.Position.setLength(Position.java:185)
	at org.eclipse.jface.text.rules.FastPartitioner.computePartitioning(FastPartitioner.java:634)
	at org.eclipse.jface.text.AbstractDocument.computePartitioning(AbstractDocument.java:1430)
	at org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider.computeCommentFolding(DefaultFoldingRegionProvider.java:107)
	at org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider.doGetFoldingRegions(DefaultFoldingRegionProvider.java:67)
	at org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider$1.exec(DefaultFoldingRegionProvider.java:58)
	at org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider$1.exec(DefaultFoldingRegionProvider.java:1)
	at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.readOnly(AbstractReadWriteAcces.java:32)
	at org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:86)
	at org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider.getFoldingRegions(DefaultFoldingRegionProvider.java:54)
	at org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider.calculateProjectionAnnotationModel(DefaultFoldingStructureProvider.java:114)
	at org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider.modelChanged(DefaultFoldingStructureProvider.java:92)
	at org.eclipse.xtext.ui.editor.model.XtextDocument.notifyModelListeners(XtextDocument.java:126)
	at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.afterModify(XtextDocument.java:180)
	at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.afterModify(XtextDocument.java:1)
	at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.modify(AbstractReadWriteAcces.java:50)
	at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.modify(XtextDocument.java:189)
	at org.eclipse.xtext.ui.editor.model.XtextDocument.internalModify(XtextDocument.java:98)
	at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.reconcile(XtextDocumentReconcileStrategy.java:33)
	at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.run(XtextReconciler.java:239)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

------
Unhandled event loop exception

(see also attached error.log)


Reproducible: Always

Steps to Reproduce:
1. open an mwe2 file and comment a block of lines
2. close and re-open the mwe2 file
3. move the comment tokens '/*' '*/' to other lines (do it a couple of times)
3. after a while exceptions are thrown (see details)
Comment 1 Serano Colameo CLA 2011-06-15 10:25:46 EDT
Created attachment 198029 [details]
error log
Comment 2 Sebastian Zarnekow CLA 2011-07-31 10:19:19 EDT
I cannot reproduce the issue. Could you please provide more details such as the mwe2 file and the exact location of the comment tokens?
Comment 3 Serano Colameo CLA 2011-08-02 07:05:01 EDT
Created attachment 200699 [details]
Screenshot

see attached picture for details about this bug
Comment 4 Serano Colameo CLA 2011-08-02 07:05:28 EDT
Created attachment 200700 [details]
mwe2 file
Comment 5 Serano Colameo CLA 2011-08-02 07:52:43 EDT
btw: I just tried with a fresh Eclipse 3.7 + Xtext 2.0.0.v201106070531 and I
can reproduce this bug... 

~Serano
Comment 6 Sebastian Zarnekow CLA 2011-10-24 12:48:13 EDT
I tried to reproduce the bug with the attached file with different patterns but did not see the exception.

What I tried:
Move opening comment token (/*) a couple of line up / down (fast)
Same for closing token
Tried the same slowly (waiting for the reconciler to kick in)
Tried the same with the complete comment section
Tried the same with a couple of lines surrounding the opening / closing sequence.

Please describe very detailled what you do to reproduce the bug (e.g. 5 lines up, 2 down, 5 up, 7 down, 1 down) and reopen the ticket if it succeeds with the latest builds.
Comment 7 Jan Mising name CLA 2011-11-22 04:20:23 EST
Steps to reproduce this Bug on my Mac with Xtext 2.0 on Indigo


1 Workflow {
2  
3   bean = StandaloneSetup {
4       scanClassPath  = true
5       platformUri = "${runtimeProject}/.."
6       registerGenModelFile = "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel"
7       registerGenModelFile = "platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel"
8   }

1) Open the org.eclipse.xtext.example.domainmodel example
2) Open the Workflow GenerateDomainmodelLanguage.mwe2
3) Add a comment (/* */)  before  line 3 'bean = StandaloneSetup {' 
4) Remove the closing element of the comment (*/)
5) Add */ before the closing brackect } in line 8
6) Remove  */
7) Add */ after the closing bracket in line 8
Comment 8 Sven Efftinge CLA 2011-11-22 04:43:25 EST
reopened.
Comment 9 Sebastian Zarnekow CLA 2011-12-01 14:56:38 EST
(In reply to comment #7)
> Steps to reproduce this Bug on my Mac with Xtext 2.0 on Indigo
> 

Thanks for the repro, Jan. The issue could be fixed.
Comment 10 Karsten Thoms CLA 2017-09-19 17:10:07 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 11 Karsten Thoms CLA 2017-09-19 17:21:56 EDT
Closing all bugs that were set to RESOLVED before Neon.0