Bug 430857 - ConcurrentModificationException when opening multiple Code Recommenders views at once
Summary: ConcurrentModificationException when opening multiple Code Recommenders views...
Status: REOPENED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Recommenders (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 445033 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-21 03:56 EDT by Andreas Sewe CLA
Modified: 2019-07-24 14:36 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sewe CLA 2014-03-21 03:56:07 EDT
A user (Gilles Iachelini) just reported the following stack trace when selecting and opening all five views available under "Window->Show View->Other->Code Recommenders" at once.

java.util.ConcurrentModificationException
   at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:886)
   at java.util.ArrayList$Itr.next(ArrayList.java:836)
   at java.util.AbstractList.equals(AbstractList.java:521)
   at com.google.common.collect.AbstractMapBasedMultimap$WrappedCollection.equals(AbstractMapBasedMultimap.java:431)
   at com.google.common.base.Objects.equal(Objects.java:55)
   at com.google.common.collect.AbstractMapEntry.equals(AbstractMapEntry.java:49)
   at org.eclipse.jface.viewers.StructuredViewer.equals(StructuredViewer.java:727)
   at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:710)
   at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:650)
   at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:637)
   at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1508)
   at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443)
   at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404)
   at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1506)
   at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:544)
   at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1465)
   at org.eclipse.recommenders.internal.models.rcp.ProjectCoordinatesView.refreshTableUI(ProjectCoordinatesView.java:527)
   at org.eclipse.recommenders.internal.models.rcp.ProjectCoordinatesView.access$8(ProjectCoordinatesView.java:523)
   at org.eclipse.recommenders.internal.models.rcp.ProjectCoordinatesView$10.runInUIThread(ProjectCoordinatesView.java:517)
   at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
   at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
   at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
   at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3976)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3653)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
   at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
   at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:483)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
Comment 1 Olav Lenz CLA 2014-05-07 10:43:42 EDT
I tried different things to reproduce this bug but without success.

Did we already fix it somewhere else?
Does this bug occurs also with the newest version of Code Recommenders?
Comment 2 Gilles Iachelini CLA 2014-05-13 11:34:55 EDT
(In reply to Olav Lenz from comment #1)
> I tried different things to reproduce this bug but without success.
> 
> Did we already fix it somewhere else?
> Does this bug occurs also with the newest version of Code Recommenders?

Hi Olav,

what I did was the following:

I downloaded and installed the latest CR Version ("latest" in the sense of end of march). After restarting eclipse I openend the Windows->Views->... Dialog and selected all of the CR relevant views and openend them.

Maybe, just maybe, it depends on the current selection which might influence the content of one or another view.

Are there any shared ressources between the ProjectCoordinatesView and any other view?
Comment 3 Marcel Bruch CLA 2014-06-11 12:32:44 EDT
Not reproducible (anymore).
Comment 4 Marcel Bruch CLA 2014-06-19 06:34:57 EDT
Closing for 2.1
Comment 5 Andreas Sewe CLA 2014-09-25 03:18:48 EDT
*** Bug 445033 has been marked as a duplicate of this bug. ***
Comment 6 Andreas Sewe CLA 2014-09-25 03:19:31 EDT
Just received Bug 445033 as an automated error report. Reopening.