Community
Participate
Working Groups
I got a ConcurrentModificationException by trying to open the "Load customizations" dialog while a model was being opened in the model browser. I think the catalog was iterating on the MoDiscoResourceSet when a Resource was added to it, resulting in the ConcurrentModificationException. java.util.ConcurrentModificationException at org.eclipse.emf.common.util.AbstractEList$EIterator.checkModCount(AbstractEList.java:762) at org.eclipse.emf.common.util.AbstractEList$EIterator.doNext(AbstractEList.java:710) at org.eclipse.emf.common.util.AbstractEList$EIterator.next(AbstractEList.java:696) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:362) at org.eclipse.gmt.modisco.infra.common.core.internal.builder.AbstractMoDiscoCatalog.openInstalledResource(AbstractMoDiscoCatalog.java:243) at org.eclipse.gmt.modisco.infra.common.core.internal.builder.AbstractMoDiscoCatalog.initInstalledRootObject(AbstractMoDiscoCatalog.java:221) at org.eclipse.gmt.modisco.infra.common.core.internal.builder.AbstractMoDiscoCatalog.<init>(AbstractMoDiscoCatalog.java:130) at org.eclipse.gmt.modisco.infra.browser.custom.core.CustomizationsCatalog.<init>(CustomizationsCatalog.java:76) at org.eclipse.gmt.modisco.infra.browser.custom.core.CustomizationsCatalog.getInstance(CustomizationsCatalog.java:63) at org.eclipse.gmt.modisco.infra.browser.editors.BrowserSettingsPersistence.getLastCustomizations(BrowserSettingsPersistence.java:153) at org.eclipse.gmt.modisco.infra.browser.editors.EcoreBrowser.backgroundOpenModel(EcoreBrowser.java:666) at org.eclipse.gmt.modisco.infra.browser.editors.EcoreBrowser$21.run(EcoreBrowser.java:1873) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Created attachment 181368 [details] Another related error log Here is a similar ConcurrentMoDificationException but the stack trace is not exactly the same. I got it with a clean new Helios 3.7M2 with Modisco nightly from 19/10. The error occurs one time. Not reproductible.
We will try to solve the query, facet and customization problems by using the EMF Facet. We then have to wait the next version of the facet feature => P4
We will switch to EMF Facet before to try to solve such bugs. => P5