Bug 307405 [CommonNavigator] Deadlock in NavigatorContentServiceContentProvider
We are using an adopting product and one of our users encountered this deadlock when starting up their workspace: 1LKDEADLOCK Deadlock detected !!! NULL --------------------- NULL 2LKDEADLOCKTHR Thread "main" (0x41591300) 3LKDEADLOCKWTR is waiting for: 4LKDEADLOCKMON sys_mon_t:0x43134548 infl_mon_t: 0x43134580: 4LKDEADLOCKOBJ org/eclipse/ui/internal/navigator/NavigatorSaveablesService@0x05DB48A8/0x05DB48B4: 3LKDEADLOCKOWN which is owned by: 2LKDEADLOCKTHR Thread "Framework Event Dispatcher" (0x42467700) 3LKDEADLOCKWTR which is waiting for: 4LKDEADLOCKMON sys_mon_t:0x43BA6AB8 infl_mon_t: 0x43BA6AF0: 4LKDEADLOCKOBJ org/eclipse/ui/internal/navigator/NavigatorContentServiceContentProvider@0x0306F6E8/0x0306F6F4: 3LKDEADLOCKOWN which is owned by: 2LKDEADLOCKTHR Thread "main" (0x41591300) I will attach the stack trace.
bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentServiceContentProvider.java
import org.eclipse.ui.internal.navigator.extensions.NavigatorViewerDescriptor;
import org.eclipse.ui.internal.navigator.extensions.SafeDelegateTreeContentProvider;
import org.eclipse.ui.navigator.CommonViewer;
import org.eclipse.ui.navigator.INavigatorContentDescriptor;
import org.eclipse.ui.navigator.INavigatorViewerDescriptor;
import org.eclipse.ui.navigator.IPipelinedTreeContentProvider;
import org.eclipse.ui.navigator.OverridePolicy;
/**
 * <p>
 * Provides relevant content based on the associated
 * {@link org.eclipse.ui.internal.navigator.NavigatorContentService}&nbsp; for a
 * TreeViewer .
 * </p>
 * <p>
 * Except for the dependency on
 * {@link org.eclipse.ui.internal.navigator.NavigatorContentService}, this class
 * has no dependencies on the rest of the Common Navigator framework. Tree
 * viewers that would like to use the extensions defined by the Common
 * Navigator, without using the actual view part or other pieces of
 * functionality (filters, sorting, etc) may choose to use this class, in effect
 * using an extensible, aggregating, delegate content provider.
 * </p>
 * 
 * @see org.eclipse.ui.internal.navigator.NavigatorContentService
 * @see org.eclipse.ui.internal.navigator.NavigatorContentServiceLabelProvider
 * 
 * @since 3.2
 * 
 */
public class NavigatorContentServiceContentProvider implements ITreeContentProvider, ITreePathContentProvider {