Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [Solved][ATL] Memory error(Java heap space error while trying to lauch an ATL transformation)
[Solved][ATL] Memory error [message #837071] Thu, 05 April 2012 08:35 Go to next message
Olivier Mising name is currently offline Olivier Mising nameFriend
Messages: 14
Registered: May 2011
Junior Member
Hello everyone,

i needed to write a model transformation and thought it would be a good opportunity to familiarize myself with ATL.

So I wrote this transformation, transforming a UML activity diagram into a model representing a CSP program.

My problem is that when I try to launch it it goes quickly to 57% and after a few seconds I have a popup indicating an internal error, and when I click for more information I have this message :

Quote:
An internal error occurred during: "Launching New_configuration".
Java heap space


I tried to transform a small basic model and have the same result.
To only possbility is that I have made an error, but I can't find it.

Perhaps you can find the big mistake I made in my code since you are more used to ATL.

Here is my entire project.

Thanks in advance. Smile
  • Attachment: UML2CSP.zip
    (Size: 73.08KB, Downloaded 427 times)

[Updated on: Mon, 16 April 2012 09:21]

Report message to a moderator

Re: [ATL] Memory error [message #837078 is a reply to message #837071] Thu, 05 April 2012 08:45 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F

On 05/04/2012 09:35, Olivier wrote:
> Hello everyone,
>
> i needed to write a model transformation and thought it would be a good opportunity to familiarize myself with ATL.
>
> So I wrote this transformation, transforming a UML activity diagram into a model representing a CSP program.
>
> My problem is that when I try to launch it it goes quickly to 57% and after a few seconds I have a popup indicating an internal error, and when I click for more information I have this message :
>
> Quote:
>> An internal error occurred during: "Launching New_configuration".
>> Java heap space
>
> I tried to transform a small basic model and have the same result.
> To only possbility is that I have made an error, but I can't find it.
>
> Perhaps you can find the big mistake I made in my code since you are more used to ATL.
>
> Here is my entire project.
>
> Thanks in advance. :)
Re: [ATL] Memory error [message #837096 is a reply to message #837078] Thu, 05 April 2012 09:09 Go to previous messageGo to next message
Olivier Mising name is currently offline Olivier Mising nameFriend
Messages: 14
Registered: May 2011
Junior Member
Thanks for your answer.

I already tried it and the only difference is that it takes longer for the error to appear.

And anyway even with the initial setting it is not normal to have a memory error while manipulating such small models.
In my opinion, I have something like an infinite loop in the transformation code. Sad
Re: [ATL] Memory error [message #837119 is a reply to message #837096] Thu, 05 April 2012 09:39 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I'n not an ATL user, so I cannot help you specifically, but if you have
a genuine error you need to obtain a stack trace, and then the locality
of the problem may be clear. You may also find VisualVM useful to
identify particularly profligate allocations. *ResourceSet* (less than
5) and *Resource* (less than 100 of any kind) are good starting checks.

Regards

Ed Willink
On 05/04/2012 10:09, Olivier wrote:
> Thanks for your answer.
>
> I already tried it and the only difference is that it takes longer for
> the error to appear.
>
> And anyway even with the initial setting it is not normal to have a
> memory error while manipulating such small models.
> In my opinion, I have something like an infinite loop in the
> transformation code. :(
Re: [ATL] Memory error [message #846619 is a reply to message #837119] Mon, 16 April 2012 09:21 Go to previous messageGo to next message
Olivier Mising name is currently offline Olivier Mising nameFriend
Messages: 14
Registered: May 2011
Junior Member
I no longer have this error.

I've tried many things but in the end the problem was within my launch configuration.
I don't know exactly what the error was but I just deleted my configuration and created a new one and now the transformation runs.

I still have an error but this I can deal with.
Thanks gain for your help.
Re: [ATL] Memory error [message #848416 is a reply to message #846619] Wed, 18 April 2012 07:47 Go to previous message
P.-C. Bue is currently offline P.-C. BueFriend
Messages: 11
Registered: November 2011
Junior Member
Hi Olivier,

I have just tried your example, and i face the same problem in this example, as well asd with my own ...

It seems that there is an infinite loop in ATL, leading to the heap space exception.
Delete the workspace metadata and/or reinstall a fresh eclipse does not change anything.

I don't think this problem is solved, and hide a huge bug in the ATL mechanism
Previous Topic:[ATL] programmatically launch of ATL transformation
Next Topic:QVTO Transformation in a Eclipse Plugin
Goto Forum:
  


Current Time: Tue Apr 16 09:08:51 GMT 2024

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

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

Back to the top