Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Annoying exceptions during XText build(OperationCanceledException thrown when building a large XText project)
Annoying exceptions during XText build [message #1737706] Tue, 12 July 2016 07:47 Go to next message
Wolfgang Zeller is currently offline Wolfgang ZellerFriend
Messages: 18
Registered: September 2013
Junior Member
We are getting very annoying exceptions when importing a large project based on XText.

Heres the stack trace:
org.eclipse.core.runtime.OperationCanceledException
	at org.eclipse.xtext.generator.FileSystemAccessQueue.send(FileSystemAccessQueue.java:44)
	at org.eclipse.xtext.generator.FileSystemAccessQueue.sendAsync(FileSystemAccessQueue.java:37)
	at org.eclipse.xtext.builder.ParallelFileSystemAccess.sendAsync(ParallelFileSystemAccess.java:62)
	at org.eclipse.xtext.builder.ParallelFileSystemAccess.generateFile(ParallelFileSystemAccess.java:84)
	at com.logicals.iec.st.generator.UserPouGenerator.generate(UserPouGenerator.java:23)
	at com.logicals.iec.st.generator.IecStNameSpaceGenerator.generate(IecStNameSpaceGenerator.java:21)
	at com.logicals.iec.st.generator.IecStGenerator.doGenerate(IecStGenerator.java:34)
	at org.eclipse.xtext.generator.GeneratorDelegate.doGenerate(GeneratorDelegate.java:45)
	at org.eclipse.xtext.builder.ParallelBuilderParticipant.handleChangedContents(ParallelBuilderParticipant.java:183)
	at org.eclipse.xtext.builder.ParallelBuilderParticipant.handleChangedContents(ParallelBuilderParticipant.java:172)
	at org.eclipse.xtext.builder.ParallelBuilderParticipant.doGenerate(ParallelBuilderParticipant.java:343)
	at org.eclipse.xtext.builder.ParallelBuilderParticipant$1.run(ParallelBuilderParticipant.java:308)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)


We are using the parallel build feature, so I guess it has sth to do with it.

Does anybody know what's the reason for this problem or at least has knowledge about how to analyze this?
Re: Annoying exceptions during XText build [message #1737710 is a reply to message #1737706] Tue, 12 July 2016 08:05 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14654
Registered: July 2009
Senior Member
do you generate to your root project directory?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Annoying exceptions during XText build [message #1737711 is a reply to message #1737710] Tue, 12 July 2016 08:06 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14654
Registered: July 2009
Senior Member
besides this did you debug where the InterruptedException came from?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Annoying exceptions during XText build [message #1737712 is a reply to message #1737711] Tue, 12 July 2016 08:08 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14654
Registered: July 2009
Senior Member
and which xtext version do you use?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Annoying exceptions during XText build [message #1737715 is a reply to message #1737712] Tue, 12 July 2016 08:19 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14654
Registered: July 2009
Senior Member
for debugging i would have a look at the interruped flag in autoBuildJob and/or in XtextBuilder.build -> isCanceled

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Annoying exceptions during XText build [message #1737718 is a reply to message #1737710] Tue, 12 July 2016 08:47 Go to previous messageGo to next message
Wolfgang Zeller is currently offline Wolfgang ZellerFriend
Messages: 18
Registered: September 2013
Junior Member
Most of the files are generated as C-Files into a hidden "src-gen" folder. Some of the files (C-Stub-files which are later implemented by the user) have to be generated directly to the folder, where the XText-Files are located.
Re: Annoying exceptions during XText build [message #1737719 is a reply to message #1737718] Tue, 12 July 2016 08:50 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14654
Registered: July 2009
Senior Member
this should be both no problem. so the question is why the monitor is canceled e.g. caused by the autobuildjob beeing interrupted.
do you use extenal folders? that is a common causer for this. do you have auto refresh for workspace enabled? this could be a cause as well.


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Annoying exceptions during XText build [message #1737721 is a reply to message #1737712] Tue, 12 July 2016 08:51 Go to previous messageGo to next message
Wolfgang Zeller is currently offline Wolfgang ZellerFriend
Messages: 18
Registered: September 2013
Junior Member
We are using XText version 2.10.
Up to now it was not possible to debug the problem as it seems to be a timing issue.
Re: Annoying exceptions during XText build [message #1737722 is a reply to message #1737719] Tue, 12 July 2016 08:52 Go to previous message
Wolfgang Zeller is currently offline Wolfgang ZellerFriend
Messages: 18
Registered: September 2013
Junior Member
Currently we are using no external folders but workspace auto refresh is enabled by default.
Thats a good hint, I will try to check if this is the cause.
Previous Topic:xtext project import on click event
Next Topic:Problem: Access restriction
Goto Forum:
  


Current Time: Thu Feb 29 13:11:45 GMT 2024

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

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

Back to the top