Community
Participate
Working Groups
Eclipse produces a java.lang.StackOverflowError when trying to open three projects that all reference each other. I reproduced the issue with CDT C projects but the call stack doesn't appear to be CDT specific. To produce: 1) Create three projects, "projectA", "projectB", and "projectC" 2) For each project, add project references to each of the other projects in the project properties. "projectA" should reference "projectB" and "projectC", "projectB" should reference "projectA" and "projectC", and "projectC" should reference "projectA" and "projectB" 3) Close all three projects 4) Open all three projects at the same time and note the exception !MESSAGE An internal error occurred during: "Open Project". !STACK 0 java.lang.StackOverflowError at org.eclipse.core.internal.jobs.DeadlockDetector.reduceGraph(DeadlockDetector.java:516) at org.eclipse.core.internal.jobs.DeadlockDetector.lockReleased(DeadlockDetector.java:353) at org.eclipse.core.internal.jobs.LockManager.removeLockThread(LockManager.java:282) at org.eclipse.core.internal.jobs.OrderedLock.setCurrentOperationThread(OrderedLock.java:254) at org.eclipse.core.internal.jobs.OrderedLock.doRelease(OrderedLock.java:189) at org.eclipse.core.internal.jobs.OrderedLock.release(OrderedLock.java:234) at org.eclipse.core.internal.resources.WorkManager.checkOut(WorkManager.java:164) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1481) at org.eclipse.core.internal.resources.Project.open(Project.java:1078) at org.eclipse.core.internal.resources.Project.open(Project.java:1087) at org.eclipse.ui.actions.OpenResourceAction$1.doOpenWithReferences(OpenResourceAction.java:228) at org.eclipse.ui.actions.OpenResourceAction$1.doOpenWithReferences(OpenResourceAction.java:255) at org.eclipse.ui.actions.OpenResourceAction$1.doOpenWithReferences(OpenResourceAction.java:255) at org.eclipse.ui.actions.OpenResourceAction$1.doOpenWithReferences(OpenResourceAction.java:255) at org.eclipse.ui.actions.OpenResourceAction$1.doOpenWithReferences(OpenResourceAction.java:255)
*** Bug 506594 has been marked as a duplicate of this bug. ***
This worked until 4.5.2 and got broken during 4.6.
This got introduced when the code was changed to use SubMonitor.
Stefan, please fix for M5 and 4.6.3.
Looks like the following the check if the project is already open was unintentially removed. I have a fix.
New Gerrit change created: https://git.eclipse.org/r/88849
Gerrit change https://git.eclipse.org/r/88849 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=5232c9c26563eb0c4de0d4ce16d96b82411a0d3f
Thanks for the bug report Michael. Could you test the fix in tomorrows I-Build from http://download.eclipse.org/eclipse/downloads/?
(In reply to Lars Vogel from comment #8) > Thanks for the bug report Michael. Could you test the fix in tomorrows > I-Build from http://download.eclipse.org/eclipse/downloads/? Thanks for the quick turnaround! Certainly, I'll test it out tomorrow.
(In reply to Lars Vogel from comment #8) > Thanks for the bug report Michael. Could you test the fix in tomorrows > I-Build from http://download.eclipse.org/eclipse/downloads/? Confirmed that I20170117-2000 solves the problem. Thanks!
New Gerrit change created: https://git.eclipse.org/r/89075
New Gerrit change created: https://git.eclipse.org/r/89078
Gerrit change https://git.eclipse.org/r/89075 was merged to [R4_6_maintenance]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=68fc274dc71c2ad12e3002ab1adf10843ac0b51b
Gerrit change https://git.eclipse.org/r/89078 was merged to [R4_6_maintenance]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=107ce6453ef461d2428bbeaa73be51ea856de0d3
Downport completed. Thanks Michael for the bug report and the testing.