Bug 211985 - [browsing] Browsing views should not update contents when not visible
Summary: [browsing] Browsing views should not update contents when not visible
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: performance
Depends on:
Blocks:
 
Reported: 2007-12-05 06:59 EST by Markus Keller CLA
Modified: 2023-02-18 13:01 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2007-12-05 06:59:02 EST
I20071204-1547

I took a stacktrace while the UI thread was blocked for more than 10 seconds (could have been due to a garbage collection, I don't really know what caused the blocking). However, I saw that the TypesView was updating its contents, although I was in the Java perspective, and the Types view was not even open in the current perspective. Views should not update their contents while they are not visible.

"main" prio=6 tid=0x00397800 nid=0x10bc waiting for monitor entry [0x009dd000..0x009dfe68]
   java.lang.Thread.State: BLOCKED (on object monitor)
        at org.eclipse.jdt.internal.core.JavaModelManager.intern(JavaModelManager.java)
        - waiting to lock <0x0badf658> (a org.eclipse.jdt.internal.core.JavaModelManager)
        at org.eclipse.jdt.internal.core.CompilationUnitStructureRequestor.acceptImport(CompilationUnitStructureRequestor.java:136)
        at org.eclipse.jdt.internal.compiler.SourceElementParser.notifySourceElementRequestor(SourceElementParser.java:1324)
        at org.eclipse.jdt.internal.compiler.SourceElementParser.notifySourceElementRequestor(SourceElementParser.java:1057)
        at org.eclipse.jdt.internal.compiler.SourceElementParser.parseCompilationUnit(SourceElementParser.java:1531)
        at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:136)
        at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:252)
        at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:510)
        at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:251)
        at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:237)
        at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:192)
        at org.eclipse.jdt.ui.StandardJavaElementContentProvider.getChildren(StandardJavaElementContentProvider.java:195)
        at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingContentProvider.getChildren(JavaBrowsingContentProvider.java:101)
        at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingContentProvider.getPackageContents(JavaBrowsingContentProvider.java:130)
        at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingContentProvider.getChildren(JavaBrowsingContentProvider.java:97)
        at org.eclipse.jdt.ui.StandardJavaElementContentProvider.getElements(StandardJavaElementContentProvider.java:152)
        at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:937)
        at org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:672)
        at org.eclipse.jface.viewers.AbstractTableViewer.getRawChildren(AbstractTableViewer.java:1072)
        at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:871)
        at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewer.java:994)
        at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:685)
        at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:633)
        at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:620)
        at org.eclipse.jface.viewers.AbstractTableViewer$2.run(AbstractTableViewer.java:576)
        at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1365)
        at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1328)
        at org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(AbstractTableViewer.java:574)
        at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:251)
        at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1603)
        at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingPart.setViewerInput(JavaBrowsingPart.java:770)
        at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingPart.setInput(JavaBrowsingPart.java:756)
        at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingPart.adjustInputAndSetSelection(JavaBrowsingPart.java:995)
        at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingPart.setSelectionFromEditor(JavaBrowsingPart.java:1161)
        at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingPart.selectionChanged(JavaBrowsingPart.java:694)
        at org.eclipse.jdt.internal.ui.browsing.TypesView.selectionChanged(TypesView.java:209)
        at org.eclipse.ui.internal.AbstractSelectionService.firePostSelection(AbstractSelectionService.java:179)
        at org.eclipse.ui.internal.AbstractSelectionService.setActivePart(AbstractSelectionService.java:289)
        at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:59)
        at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:126)
        at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3384)
        at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:602)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2730)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2633)
        at org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPage.java:2625)
        at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2577)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2572)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2556)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2547)
        at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:331)
        at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:194)
        at org.eclipse.jdt.ui.JavaUI.openInEditor(JavaUI.java:672)
        at org.eclipse.jdt.internal.ui.actions.OpenTypeAction.runWithEvent(OpenTypeAction.java:88)
        at org.eclipse.jdt.internal.ui.actions.OpenTypeAction.runWithEvent(OpenTypeAction.java:148)
        at org.eclipse.ui.internal.handlers.ActionDelegateHandlerProxy.execute(ActionDelegateHandlerProxy.java:281)
        at org.eclipse.core.commands.Command.executeWithChecks(Command.java:475)
        at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:470)
        at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:165)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:470)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:821)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:879)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:568)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:510)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:126)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1160)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:951)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:976)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:961)
        at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:989)
        at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:985)
        at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1301)
        at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3883)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3776)
        at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:334)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4450)
        at org.eclipse.swt.internal.win32.OS.$$YJP$$DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(OS.java)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2327)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3359)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2381)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2345)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2211)
        at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:473)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:468)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:362)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:561)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:501)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1239)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1215)
Comment 1 Eclipse Genie CLA 2019-01-31 15:14:10 EST
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.
Comment 2 Dani Megert CLA 2019-02-01 05:53:24 EST
Still an issue in 4.11 M1.
Comment 3 Eclipse Genie CLA 2021-01-22 11:03:41 EST
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.
Comment 4 Eclipse Genie CLA 2023-02-18 13:01:30 EST
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.