| [news.eclipse.modeling.m2m] Re: [ATL] random crashes? |
Hello,
answers below (and sorry for the late...) :
Rene Ladan a écrit :Rene Ladan wrote:Rene Ladan wrote:Rene Ladan wrote:Hi,
I seem to get random crashes: the transformation is bound to crash, but the exact point differs from invocation to invocation
Do you encounter the same issue running your transformation both programmatically and using launch configs ? I mean, do you think the error comes from your code or the ATL transformation ?
Uhm, I cannot use the launch configuration at the moment, because the ATL perspective has disappeared. I replaced some files with a build from CVS HEAD. I've attached a list of currently installed m2m files.
I've attached the Java file which invokes the engine and a partial backtrace (where the crash happens at 'copy_activation').
Eclipse 3.4M7 I20080502-0100 ATL 2.0.0 20080520-0346 EMF 3.4RC1 20080512-1800
I've (finally) attached the metamodel and an input model (which is composed
from different parts, see the code in invoking.java posted in this thread).
i.e. would it be recommended to try the CVS HEAD version?
The only bug report for 'crash' and 'M2M' is number 214871.
I'm afraid this issue is a work-blocker.
I've installed the CVS HEAD version (2008-05-30), which also crashes. It seems like the ouput model somehow gets corrupted, because it only contains empty elements in a flat list. However, the crash always seems to happen in a copy_X rule, which really only copies all elements from X to a clone of X.
Is there a way for you to provide a small test case reproducing the bug ? Elsewhere I would try to experiment some "copy" transformations on your model, but it might be longer...
I think a copy-transformation where the rules follow the structure of the meta-model should be enough. See the thread for the necessary files.
Maybe the offending part is
org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:240)
which is in the handler of the "call" instruction (so the transformation gets
compiled and loaded correctly).
So I think the error happens during the execution of the called operation (by the "call" instruction).
Regards, Rene
-rwx------+ 1 rladan ???????? 13840 May 30 13:24 org.eclipse.m2m.atl.adt.builder_2.0.0.200805301322.jar -rwx------+ 1 rladan ???????? 138002 May 30 13:24 org.eclipse.m2m.atl.adt.debug_2.0.0.200805301322.jar -rwx------+ 1 rladan ???????? 234940 May 30 13:24 org.eclipse.m2m.atl.adt.editor_2.0.0.200805301322.jar -rwx------+ 1 rladan ???????? 23905 May 30 13:24 org.eclipse.m2m.atl.adt.perspective_2.0.0.200805301322.jar -rwx------+ 1 rladan ???????? 25355 May 30 13:24 org.eclipse.m2m.atl.adt.wizard_2.0.0.200805301322.jar -rwx------+ 1 rladan ???????? 48541 May 30 13:24 org.eclipse.m2m.atl.compilers.atl2006_2.0.0.200805301322.jar drwx------+ 3 rladan ???????? 0 May 26 14:53 org.eclipse.m2m.atl.doc_2.0.0.v200805200346 -rwx------+ 1 rladan ???????? 21452 May 30 13:24 org.eclipse.m2m.atl.drivers.emf4atl_2.0.0.200805301322.jar -rwx------+ 1 rladan ???????? 33098 May 30 13:24 org.eclipse.m2m.atl.drivers.mdr4atl_2.0.0.200805301322.jar -rwx------+ 1 rladan ???????? 22000 May 30 13:24 org.eclipse.m2m.atl.drivers.uml24atl_2.0.0.200805301322.jar -rwx------+ 1 rladan ???????? 175624 May 30 13:24 org.eclipse.m2m.atl.engine.emfvm_2.0.0.200805301322.jar -rwx------+ 1 rladan ???????? 199850 May 30 13:24 org.eclipse.m2m.atl.engine.vm_2.0.0.200805301322.jar -rwx------+ 1 rladan ???????? 193673 May 30 13:24 org.eclipse.m2m.atl.engine_2.0.0.200805301322.jar drwx------+ 4 rladan ???????? 0 May 26 14:53 org.eclipse.m2m.atl.engine_2.0.0.v200805200346 -rwx------+ 1 rladan ???????? 11204 May 30 13:24 org.eclipse.m2m.atl.examples_2.0.0.200805301322.jar -rwx------+ 1 rladan ???????? 13179 May 30 13:24 org.eclipse.m2m.atl.ocl.core_2.0.0.200805301322.jar -rwx------+ 1 rladan ???????? 48338 May 30 13:24 org.eclipse.m2m.atl.service.core_2.0.0.200805301322.jar drwx------+ 4 rladan ???????? 0 May 26 14:53 org.eclipse.m2m.atl.source_2.0.0.v200805200346 -rwx------+ 1 rladan ???????? 5569 May 30 13:24 org.eclipse.m2m.atl_2.0.0.200805301322.jar -rwx------+ 1 rladan ???????? 71803 May 13 05:43 org.eclipse.m2m.qvt.oml.common.source_1.0.0.v20080508-1851.jar drwx------+ 4 rladan ???????? 0 Jun 2 14:56 org.eclipse.m2m.qvt.oml.common.source_1.0.0.v20080520-1530-4--_kE77c7QEE3ATK7 -rwx------+ 1 rladan ???????? 75538 May 13 05:43 org.eclipse.m2m.qvt.oml.common.ui.source_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 151325 May 13 05:43 org.eclipse.m2m.qvt.oml.common.ui_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 165980 Jun 2 14:56 org.eclipse.m2m.qvt.oml.common.ui_1.0.0.v20080520-1530.jar -rwx------+ 1 rladan ???????? 86862 May 13 05:43 org.eclipse.m2m.qvt.oml.common_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 94935 Jun 2 14:56 org.eclipse.m2m.qvt.oml.common_1.0.0.v20080528-1850.jar -rwx------+ 1 rladan ???????? 298535 May 13 05:43 org.eclipse.m2m.qvt.oml.cst.parser.source_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 412175 May 13 05:43 org.eclipse.m2m.qvt.oml.cst.parser_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 438041 Jun 2 14:56 org.eclipse.m2m.qvt.oml.cst.parser_1.0.0.v20080528-1850.jar drwx------+ 5 rladan ???????? 0 Jun 2 14:56 org.eclipse.m2m.qvt.oml.doc_1.0.0.v20080520-1530 drwx------+ 4 rladan ???????? 0 Jun 2 14:56 org.eclipse.m2m.qvt.oml.editor.source_1.0.0.v20080520-1530-1--7w3119163902961 -rwx------+ 1 rladan ???????? 244867 May 13 05:43 org.eclipse.m2m.qvt.oml.editor.ui.source_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 504749 May 13 05:43 org.eclipse.m2m.qvt.oml.editor.ui_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 554122 Jun 2 14:56 org.eclipse.m2m.qvt.oml.editor.ui_1.0.0.v20080528-1850.jar -rwx------+ 1 rladan ???????? 58649 May 13 05:43 org.eclipse.m2m.qvt.oml.emf.util.source_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 60275 May 13 05:43 org.eclipse.m2m.qvt.oml.emf.util.ui.source_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 97204 May 13 05:43 org.eclipse.m2m.qvt.oml.emf.util.ui_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 106648 Jun 2 14:56 org.eclipse.m2m.qvt.oml.emf.util.ui_1.0.0.v20080520-1530.jar -rwx------+ 1 rladan ???????? 67227 May 13 05:43 org.eclipse.m2m.qvt.oml.emf.util_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 73350 Jun 2 14:56 org.eclipse.m2m.qvt.oml.emf.util_1.0.0.v20080520-1530.jar -rwx------+ 1 rladan ???????? 11121 May 13 05:43 org.eclipse.m2m.qvt.oml.ocl.emf.libraries.source_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 15758 May 13 05:43 org.eclipse.m2m.qvt.oml.ocl.emf.libraries_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 16791 Jun 2 14:56 org.eclipse.m2m.qvt.oml.ocl.emf.libraries_1.0.0.v20080520-1530.jar -rwx------+ 1 rladan ???????? 24838 May 13 05:43 org.eclipse.m2m.qvt.oml.ocl.source_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 35825 May 13 05:43 org.eclipse.m2m.qvt.oml.ocl_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 38219 Jun 2 14:56 org.eclipse.m2m.qvt.oml.ocl_1.0.0.v20080520-1530.jar -rwx------+ 1 rladan ???????? 24497 May 13 05:43 org.eclipse.m2m.qvt.oml.project.source_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 33573 May 13 05:43 org.eclipse.m2m.qvt.oml.project_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 35783 Jun 2 14:56 org.eclipse.m2m.qvt.oml.project_1.0.0.v20080520-1530.jar -rwx------+ 1 rladan ???????? 78130 May 13 05:43 org.eclipse.m2m.qvt.oml.runtime.source_1.0.0.v20080508-1851.jar drwx------+ 4 rladan ???????? 0 Jun 2 14:56 org.eclipse.m2m.qvt.oml.runtime.source_1.0.0.v20080520-1530-5--AgI99m9XI94DXN9 -rwx------+ 1 rladan ???????? 61290 May 13 05:43 org.eclipse.m2m.qvt.oml.runtime.ui.source_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 121174 May 13 05:43 org.eclipse.m2m.qvt.oml.runtime.ui_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 130491 Jun 2 14:56 org.eclipse.m2m.qvt.oml.runtime.ui_1.0.0.v20080520-1530.jar -rwx------+ 1 rladan ???????? 135043 May 13 05:43 org.eclipse.m2m.qvt.oml.runtime_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 145275 Jun 2 14:56 org.eclipse.m2m.qvt.oml.runtime_1.0.0.v20080520-1530.jar -rwx------+ 1 rladan ???????? 560156 May 13 05:43 org.eclipse.m2m.qvt.oml.samples_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 611949 Jun 2 14:56 org.eclipse.m2m.qvt.oml.samples_1.0.0.v20080520-1530.jar -rwx------+ 1 rladan ???????? 433364 May 13 05:43 org.eclipse.m2m.qvt.oml.source_1.0.0.v20080508-1851.jar drwx------+ 4 rladan ???????? 0 Jun 2 14:56 org.eclipse.m2m.qvt.oml.source_1.0.0.v20080520-1530-4--_kE77c7QEM3AWM7 -rwx------+ 1 rladan ???????? 33337 May 13 05:43 org.eclipse.m2m.qvt.oml.trace.edit.source_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 47977 May 13 05:43 org.eclipse.m2m.qvt.oml.trace.edit_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 50611 Jun 2 14:56 org.eclipse.m2m.qvt.oml.trace.edit_1.0.0.v20080520-1530.jar -rwx------+ 1 rladan ???????? 60815 May 13 05:43 org.eclipse.m2m.qvt.oml.ui.source_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 142255 May 13 05:43 org.eclipse.m2m.qvt.oml.ui_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 154029 Jun 2 14:56 org.eclipse.m2m.qvt.oml.ui_1.0.0.v20080520-1530.jar -rwx------+ 1 rladan ???????? 564248 May 13 05:43 org.eclipse.m2m.qvt.oml_1.0.0.v20080508-1851.jar -rwx------+ 1 rladan ???????? 649174 Jun 2 14:56 org.eclipse.m2m.qvt.oml_1.0.0.v20080528-1850.jar