Bug 308 - 4 SWTExceptions (1GHHYXS)
Summary: 4 SWTExceptions (1GHHYXS)
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dejan Glozic CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 21:39 EDT by Dejan Glozic CLA
Modified: 2001-12-02 16:51 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dejan Glozic CLA 2001-10-10 21:39:53 EDT
I found these exceptions about half an hour after they were thrown. 
I might've been using self-hosting when they occured. ( not sure though because it was around the borderline where
I switched from non-self hosting to self hosting.


Log: Thu Jul 26 20:03:52 EDT 2001
2 org.eclipse.core.resources 2 Problems occurred when invoking code from plug-in: org.eclipse.core.resources.
org.eclipse.swt.SWTException: Invalid thread access
	at org.eclipse.swt.SWT.error(SWT.java:1708)
	at org.eclipse.swt.SWT.error(SWT.java:1642)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:368)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Composite.getChildren(Composite.java:145)
	at org.eclipse.pde.internal.editor.manifest.AlertSection.update(AlertSection.java:258)
	at org.eclipse.pde.internal.editor.manifest.AlertSection.resourceChanged(AlertSection.java:250)
	at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:122)
	at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:758)
	at org.eclipse.core.runtime.Platform.run(Platform.java:393)
	at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:137)
	at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:42)
	at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:62)
	at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:108)
	at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:669)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1199)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:78)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98)
Log: Thu Jul 26 20:03:52 EDT 2001
2 org.eclipse.core.resources 2 Problems occurred when invoking code from plug-in: org.eclipse.core.resources.
org.eclipse.swt.SWTException: Invalid thread access
	at org.eclipse.swt.SWT.error(SWT.java:1708)
	at org.eclipse.swt.SWT.error(SWT.java:1642)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:368)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Composite.getChildren(Composite.java:145)
	at org.eclipse.pde.internal.editor.manifest.AlertSection.update(AlertSection.java:258)
	at org.eclipse.pde.internal.editor.manifest.AlertSection.resourceChanged(AlertSection.java:250)
	at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:122)
	at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:758)
	at org.eclipse.core.runtime.Platform.run(Platform.java:393)
	at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:137)
	at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:42)
	at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:62)
	at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:108)
	at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:669)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1199)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:78)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98)
Log: Thu Jul 26 20:03:57 EDT 2001
2 org.eclipse.core.resources 2 Problems occurred when invoking code from plug-in: org.eclipse.core.resources.
org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:1708)
	at org.eclipse.swt.SWT.error(SWT.java:1642)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:368)
	at org.eclipse.swt.widgets.Control.getDisplay(Control.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.isValidThread(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Composite.getChildren(Composite.java:145)
	at org.eclipse.pde.internal.editor.manifest.AlertSection.update(AlertSection.java:258)
	at org.eclipse.pde.internal.editor.manifest.AlertSection.resourceChanged(AlertSection.java:250)
	at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:122)
	at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:758)
	at org.eclipse.core.runtime.Platform.run(Platform.java:393)
	at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:137)
	at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:42)
	at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:62)
	at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:108)
	at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:669)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1199)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:78)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98)
Log: Thu Jul 26 20:04:00 EDT 2001
2 org.eclipse.core.resources 2 Problems occurred when invoking code from plug-in: org.eclipse.core.resources.
org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:1708)
	at org.eclipse.swt.SWT.error(SWT.java:1642)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:368)
	at org.eclipse.swt.widgets.Control.getDisplay(Control.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.isValidThread(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Composite.getChildren(Composite.java:145)
	at org.eclipse.pde.internal.editor.manifest.AlertSection.update(AlertSection.java:258)
	at org.eclipse.pde.internal.editor.manifest.AlertSection.resourceChanged(AlertSection.java:250)
	at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:122)
	at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:758)
	at org.eclipse.core.runtime.Platform.run(Platform.java:393)
	at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:137)
	at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:42)
	at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:62)
	at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:108)
	at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:669)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1199)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:78)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98)


NOTES:

JohnA (7/30/2001 10:19:36 AM)
	Appears to be a problem with the PDE editor's notification listener.  Updates should be async'ed to run in
	UI thread.  Moving to ITPPDE
Comment 1 DJ Houghton CLA 2001-10-24 07:08:27 EDT
PRODUCT VERSION:
125 SDK

Comment 2 Dejan Glozic CLA 2001-12-02 16:51:27 EST
Modified 'update' method in AlertSection to call asyncExec ensure thread-safe
operation.