Community
Participate
Working Groups
Created attachment 275903 [details] thread dump of deadlock Hi eclipse colleagues, I just ran into a deadlock issue after starting my eclipse photon IDE containing 17 pde projects. Please find attached the thread dump. Could you please take a look and maybe provide a fix? Thanks a lot, Tobias Eclipse SDK Version: Photon (4.8) Build id: I20180524-0900 OS: Windows 10, v.10.0, x86_64 / win32 Java version: 1.8.0_162
I see Xtext may have a role here. Can you check if you there was a change in the Xtext version as well when you changed Eclipse version?
(In reply to Jay Arthanareeswaran from comment #1) > I see Xtext may have a role here. > > Can you check if you there was a change in the Xtext version as well when > you changed Eclipse version? I did not trigger any updates. I simply started the IDE this morning and ran then into the deadlock. Xtext was already installed.
*Which* XText version are you using?
(In reply to Andrey Loskutov from comment #3) > *Which* XText version are you using? Xtext Version: 2.14.0.v20180523-0937 Build id: I20180522-1821
I have not the XText sources right now, but the threads below seem to have a deadlock, and the bad part is probably coming from https://marketplace.eclipse.org/content/eclipse-runner plugin. Please uninstall it and check if you can work without deadlocks. "Thread-6" #51 prio=5 os_prio=0 cpu=4531.25 [reset 4531.25] ms elapsed=398.82 [reset 398.82] s allocated=613886248 B (585.45 MB) [reset 613886248 B (585.45 MB)] defined_classes=1480 io= file i/o: 9921102/0 B, net i/o: 0/0 B, files opened:24, socks opened:0 [reset file i/o: 9921102/0 B, net i/o: 0/0 B, files opened:24, socks opened:0 ] tid=0x000000002d8e6000 nid=0x4224 / 16932 waiting on condition [_thread_blocked (_at_safepoint), stack(0x0000000037190000,0x0000000037290000)] [0x000000003728e000] java.lang.Thread.State: TIMED_WAITING (parking) at jdk.internal.misc.Unsafe.park(ZJ)V(Native Method) - parking to wait for <0x0000000700aa1e08> (a java.util.concurrent.Semaphore$NonfairSync) at sun.misc.Unsafe.park(ZJ)V(Unsafe.java:1079) at java.util.concurrent.locks.LockSupport.parkNanos(Ljava/lang/Object;J)V(LockSupport.java:215) at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(IJ)Z(AbstractQueuedSynchronizer.java:1037) at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(IJ)Z(AbstractQueuedSynchronizer.java:1328) at java.util.concurrent.Semaphore.tryAcquire(JLjava/util/concurrent/TimeUnit;)Z(Semaphore.java:409) at org.eclipse.ui.internal.PendingSyncExec.acquire(J)Z(PendingSyncExec.java:35) at org.eclipse.ui.internal.PendingSyncExec.waitUntilExecuted(Lorg/eclipse/ui/internal/UILockListener;)V(PendingSyncExec.java:78) at org.eclipse.ui.internal.UISynchronizer.syncExec(Ljava/lang/Runnable;)V(UISynchronizer.java:153) at org.eclipse.swt.widgets.Display.syncExec(Ljava/lang/Runnable;)V(Display.java:4567) at com.eclipserunner.views.impl.RunnerView.refresh()V(RunnerView.java:554) at com.eclipserunner.views.impl.RunnerView$3.resourceChanged(Lorg/eclipse/core/resources/IResourceChangeEvent;)V(RunnerView.java:199) at org.eclipse.core.internal.events.NotificationManager$1.run()V(NotificationManager.java:297) at org.eclipse.core.runtime.SafeRunner.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V(SafeRunner.java:42) at org.eclipse.core.internal.events.NotificationManager.notify([Lorg/eclipse/core/internal/events/ResourceChangeListenerList$ListenerEntry;Lorg/eclipse/core/internal/events/ResourceChangeEvent;Z)V(NotificationManager.java:287) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(Lorg/eclipse/core/internal/watson/ElementTree;Lorg/eclipse/core/internal/events/ResourceChangeEvent;Z)V(NotificationManager.java:150) at org.eclipse.core.internal.resources.Workspace.broadcastPostChange()V(Workspace.java:376) at org.eclipse.core.internal.resources.Workspace.endOperation(Lorg/eclipse/core/runtime/jobs/ISchedulingRule;Z)V(Workspace.java:1499) at org.eclipse.core.internal.resources.Workspace.run(Lorg/eclipse/core/runtime/ICoreRunnable;Lorg/eclipse/core/runtime/jobs/ISchedulingRule;ILorg/eclipse/core/runtime/IProgressMonitor;)V(Workspace.java:2302) at org.eclipse.core.internal.resources.Workspace.run(Lorg/eclipse/core/resources/IWorkspaceRunnable;Lorg/eclipse/core/runtime/jobs/ISchedulingRule;ILorg/eclipse/core/runtime/IProgressMonitor;)V(Workspace.java:2316) at org.eclipse.xtext.ui.resource.Storage2UriMapperJavaImpl.doInitializeCache()V(Storage2UriMapperJavaImpl.java:667) at org.eclipse.xtext.ui.resource.Storage2UriMapperJavaImpl.access$2(Lorg/eclipse/xtext/ui/resource/Storage2UriMapperJavaImpl;)V(Storage2UriMapperJavaImpl.java:646) at org.eclipse.xtext.ui.resource.Storage2UriMapperJavaImpl$3.run()V(Storage2UriMapperJavaImpl.java:635) at java.lang.Thread.run()V(Thread.java:836) "main" #1 prio=6 os_prio=0 cpu=23109.38 [reset 23109.38] ms elapsed=423.45 [reset 423.45] s allocated=955134424 B (910.89 MB) [reset 955134424 B (910.89 MB)] defined_classes=11810 io= file i/o: 43517696/174060 B, net i/o: 0/0 B, files opened:500, socks opened:0 [reset file i/o: 43517696/174060 B, net i/o: 0/0 B, files opened:500, socks opened:0 ] tid=0x0000000002e16000 nid=0x35a0 / 13728 waiting on condition [_thread_blocked (_at_safepoint), stack(0x0000000000800000,0x0000000000900000)] [0x00000000008f8000] java.lang.Thread.State: WAITING (parking) at jdk.internal.misc.Unsafe.park(ZJ)V(Native Method) - parking to wait for <0x00000006f6d47e78> (a java.util.concurrent.CountDownLatch$Sync) at sun.misc.Unsafe.park(ZJ)V(Unsafe.java:1079) at java.util.concurrent.locks.LockSupport.park(Ljava/lang/Object;)V(LockSupport.java:175) at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt()Z(AbstractQueuedSynchronizer.java:836) at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(I)V(AbstractQueuedSynchronizer.java:997) at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(I)V(AbstractQueuedSynchronizer.java:1304) at java.util.concurrent.CountDownLatch.await()V(CountDownLatch.java:231) at org.eclipse.xtext.ui.resource.Storage2UriMapperJavaImpl.useNewThreadToInitialize(Z)V(Storage2UriMapperJavaImpl.java:623) at org.eclipse.xtext.ui.resource.Storage2UriMapperJavaImpl.initializeCache(Z)V(Storage2UriMapperJavaImpl.java:588) at org.eclipse.xtext.ui.resource.Storage2UriMapperJavaImpl.elementChanged(Lorg/eclipse/jdt/core/ElementChangedEvent;)V(Storage2UriMapperJavaImpl.java:420) at org.eclipse.jdt.internal.core.DeltaProcessor$3.run()V(DeltaProcessor.java:1735) at org.eclipse.core.runtime.SafeRunner.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V(SafeRunner.java:42) at org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(Lorg/eclipse/jdt/core/IJavaElementDelta;I[Lorg/eclipse/jdt/core/IElementChangedListener;[II)V(DeltaProcessor.java:1723) at org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(Lorg/eclipse/jdt/core/IJavaElementDelta;[Lorg/eclipse/jdt/core/IElementChangedListener;[II)V(DeltaProcessor.java:1556) at org.eclipse.jdt.internal.core.DeltaProcessor.fire(Lorg/eclipse/jdt/core/IJavaElementDelta;I)V(DeltaProcessor.java:1532) at org.eclipse.jdt.internal.core.JavaModelOperation.run(Lorg/eclipse/core/runtime/IProgressMonitor;)V(JavaModelOperation.java:774) at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(Lorg/eclipse/core/runtime/IProgressMonitor;)V(JavaModelOperation.java:799) at org.eclipse.jdt.internal.core.CompilationUnit.becomeWorkingCopy(Lorg/eclipse/jdt/core/IProblemRequestor;Lorg/eclipse/core/runtime/IProgressMonitor;)V(CompilationUnit.java:96) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.createFileInfo(Ljava/lang/Object;)Lorg/eclipse/ui/editors/text/TextFileDocumentProvider$FileInfo;(CompilationUnitDocumentProvider.java:1031) at org.eclipse.ui.editors.text.TextFileDocumentProvider.connect(Ljava/lang/Object;)V(TextFileDocumentProvider.java:478) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.connect(Ljava/lang/Object;)V(CompilationUnitDocumentProvider.java:1274) at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(Lorg/eclipse/ui/IEditorInput;)V(AbstractTextEditor.java:4203) at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(Lorg/eclipse/ui/IEditorInput;)V(StatusTextEditor.java:257) at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(Lorg/eclipse/ui/IEditorInput;)V(AbstractDecoratedTextEditor.java:1473) at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.internalDoSetInput(Lorg/eclipse/ui/IEditorInput;)V(JavaEditor.java:2570) at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.doSetInput(Lorg/eclipse/ui/IEditorInput;)V(JavaEditor.java:2543) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSetInput(Lorg/eclipse/ui/IEditorInput;)V(CompilationUnitEditor.java:1420) at org.eclipse.ui.texteditor.AbstractTextEditor$5.run(Lorg/eclipse/core/runtime/IProgressMonitor;)V(AbstractTextEditor.java:3165) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(Lorg/eclipse/jface/operation/IRunnableWithProgress;Lorg/eclipse/core/runtime/IProgressMonitor;)V(ModalContext.java:437) at org.eclipse.jface.operation.ModalContext.run(Lorg/eclipse/jface/operation/IRunnableWithProgress;ZLorg/eclipse/core/runtime/IProgressMonitor;Lorg/eclipse/swt/widgets/Display;)V(ModalContext.java:353) at org.eclipse.ui.internal.WorkbenchWindow$14.run()V(WorkbenchWindow.java:2212) at org.eclipse.swt.custom.BusyIndicator.showWhile(Lorg/eclipse/swt/widgets/Display;Ljava/lang/Runnable;)V(BusyIndicator.java:71) at org.eclipse.ui.internal.WorkbenchWindow.run(ZZLorg/eclipse/jface/operation/IRunnableWithProgress;)V(WorkbenchWindow.java:2208) at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(Lorg/eclipse/ui/IWorkbenchWindow;Lorg/eclipse/ui/IEditorSite;Lorg/eclipse/ui/IEditorInput;)V(AbstractTextEditor.java:3183) at org.eclipse.ui.texteditor.AbstractTextEditor.init(Lorg/eclipse/ui/IEditorSite;Lorg/eclipse/ui/IEditorInput;)V(AbstractTextEditor.java:3208) at org.eclipse.ui.internal.EditorReference.initialize(Lorg/eclipse/ui/IWorkbenchPart;)V(EditorReference.java:362) at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create()V(CompatibilityPart.java:342) at sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Method.java:498) at org.eclipse.e4.core.internal.di.MethodRequestor.execute()Ljava/lang/Object;(MethodRequestor.java:55) at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/Class;Lorg/eclipse/e4/core/di/suppliers/PrimaryObjectSupplier;Lorg/eclipse/e4/core/di/suppliers/PrimaryObjectSupplier;Ljava/util/ArrayList;)V(InjectorImpl.java:1005) at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/Class;Lorg/eclipse/e4/core/di/suppliers/PrimaryObjectSupplier;Lorg/eclipse/e4/core/di/suppliers/PrimaryObjectSupplier;Ljava/util/ArrayList;)V(InjectorImpl.java:970) at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(Ljava/lang/Object;Lorg/eclipse/e4/core/di/suppliers/PrimaryObjectSupplier;Lorg/eclipse/e4/core/di/suppliers/PrimaryObjectSupplier;)V(InjectorImpl.java:137) at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(Ljava/lang/Class;Lorg/eclipse/e4/core/di/suppliers/PrimaryObjectSupplier;Lorg/eclipse/e4/core/di/suppliers/PrimaryObjectSupplier;)Ljava/lang/Object;(InjectorImpl.java:412) at org.eclipse.e4.core.internal.di.InjectorImpl.make(Ljava/lang/Class;Lorg/eclipse/e4/core/di/suppliers/PrimaryObjectSupplier;)Ljava/lang/Object;(InjectorImpl.java:331) at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(Ljava/lang/Class;Lorg/eclipse/e4/core/contexts/IEclipseContext;)Ljava/lang/Object;(ContextInjectionFactory.java:190) at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(Lorg/osgi/framework/Bundle;Lorg/eclipse/e4/core/contexts/IEclipseContext;Lorg/eclipse/e4/core/contexts/IEclipseContext;Lorg/eclipse/emf/common/util/URI;)Ljava/lang/Object;(ReflectionContributionFactory.java:105) at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(Ljava/lang/String;Lorg/eclipse/e4/core/contexts/IEclipseContext;Lorg/eclipse/e4/core/contexts/IEclipseContext;)Ljava/lang/Object;(ReflectionContributionFactory.java:74) at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(Ljava/lang/String;Lorg/eclipse/e4/core/contexts/IEclipseContext;)Ljava/lang/Object;(ReflectionContributionFactory.java:56) at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(Lorg/eclipse/e4/ui/model/application/ui/MUIElement;Ljava/lang/Object;)Ljava/lang/Object;(ContributedPartRenderer.java:129) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(Lorg/eclipse/e4/ui/model/application/ui/MUIElement;Ljava/lang/Object;)Ljava/lang/Object;(PartRenderingEngine.java:1012) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(Lorg/eclipse/e4/ui/model/application/ui/MUIElement;Ljava/lang/Object;Lorg/eclipse/e4/core/contexts/IEclipseContext;)Ljava/lang/Object;(PartRenderingEngine.java:672) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(Lorg/eclipse/e4/ui/model/application/ui/MUIElement;)Ljava/lang/Object;(PartRenderingEngine.java:778) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(Lorg/eclipse/e4/ui/internal/workbench/swt/PartRenderingEngine;Lorg/eclipse/e4/ui/model/application/ui/MUIElement;)Ljava/lang/Object;(PartRenderingEngine.java:749) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run()V(PartRenderingEngine.java:743) at org.eclipse.core.runtime.SafeRunner.run(Lorg/eclipse/core/runtime/ISafeRunnable;)V(SafeRunner.java:42) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(Lorg/eclipse/e4/ui/model/application/ui/MUIElement;)Ljava/lang/Object;(PartRenderingEngine.java:727) at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.createElement(Lorg/eclipse/e4/ui/model/application/ui/MUIElement;)V(PartServiceImpl.java:1281) at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(Lorg/eclipse/e4/ui/model/application/ui/basic/MPart;Lorg/eclipse/e4/ui/workbench/modeling/EPartService$PartState;)Lorg/eclipse/e4/ui/model/application/ui/basic/MPart;(PartServiceImpl.java:1242) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Z)Lorg/eclipse/ui/IWorkbenchPart;(WorkbenchPartReference.java:393) at org.eclipse.ui.internal.EditorReference.getEditor(Z)Lorg/eclipse/ui/IEditorPart;(EditorReference.java:290) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;Z)Lorg/eclipse/ui/IEditorPart;(WorkbenchPage.java:3229) at org.eclipse.ui.internal.WorkbenchPage.access$26(Lorg/eclipse/ui/internal/WorkbenchPage;Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;Z)Lorg/eclipse/ui/IEditorPart;(WorkbenchPage.java:3192) at org.eclipse.ui.internal.WorkbenchPage$10.run()V(WorkbenchPage.java:3174) at org.eclipse.swt.custom.BusyIndicator.showWhile(Lorg/eclipse/swt/widgets/Display;Ljava/lang/Runnable;)V(BusyIndicator.java:71) at org.eclipse.ui.internal.WorkbenchPage.openEditor(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZILorg/eclipse/ui/IMemento;Z)Lorg/eclipse/ui/IEditorPart;(WorkbenchPage.java:3169) at org.eclipse.ui.internal.WorkbenchPage.openEditor(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;ZI)Lorg/eclipse/ui/IEditorPart;(WorkbenchPage.java:3133) at org.eclipse.ui.internal.WorkbenchPage.openEditor(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;Z)Lorg/eclipse/ui/IEditorPart;(WorkbenchPage.java:3123) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(Lorg/eclipse/ui/IEditorInput;Ljava/lang/String;Z)Lorg/eclipse/ui/IEditorPart;(EditorUtility.java:373) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(Ljava/lang/Object;Z)Lorg/eclipse/ui/IEditorPart;(EditorUtility.java:179) at org.eclipse.jdt.ui.actions.OpenAction.run([Ljava/lang/Object;)V(OpenAction.java:284) at org.eclipse.jdt.ui.actions.OpenAction.run(Lorg/eclipse/jface/text/ITextSelection;)V(OpenAction.java:176) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(Lorg/eclipse/jface/viewers/ISelection;)V(SelectionDispatchAction.java:275) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run()V(SelectionDispatchAction.java:249) at org.eclipse.jface.action.Action.runWithEvent(Lorg/eclipse/swt/widgets/Event;)V(Action.java:473)
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.