Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341378 - AtlLaunchHelper : transformed models disappear randomly
Summary: AtlLaunchHelper : transformed models disappear randomly
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Infrastructure (show other bugs)
Version: 0.9.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.9.0 M7   Edit
Assignee: Nicolas Bros CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-30 11:22 EDT by Nicolas Bros CLA
Modified: 2011-08-18 08:02 EDT (History)
2 users (show)

See Also:
nicolas.bros: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Bros CLA 2011-03-30 11:22:02 EDT
After using a discoverer based on an ATL transformation, the resulting model is opened in the MoDisco model browser. After a while, it disappears from the browser (the browser becomes empty).

These discoverers use AtlLaunchHelper, which uses org.eclipse.m2m.atl.drivers.emf4atl.EMFModelLoader to load the models for the ATL transformation. EMFModelLoader#finalize and ASMEMFModel#finalize are overridden in ATL in order to unload Resources when the GC kicks in.

I couldn't understand exactly what was happening, but there seems to be a race condition between the GC finalizers and other threads, leading to a premature unloading of the Resource currently displayed in the model browser.
Comment 1 Nicolas Bros CLA 2011-03-30 11:44:16 EDT
Fixed in revision 4209 by moving the contents of the ATL resource to a new XMIResourceImpl.
Comment 2 Hugo Bruneliere CLA 2011-08-18 08:02:16 EDT
Bug solved.