Community
Participate
Working Groups
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.
Fixed in revision 4209 by moving the contents of the ATL resource to a new XMIResourceImpl.
Bug solved.