Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 262281 - error on activation of a bug with opened editors
Summary: error on activation of a bug with opened editors
Status: RESOLVED DUPLICATE of bug 250505
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 blocker (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-24 08:59 EST by Frank Becker CLA
Modified: 2009-02-02 20:41 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 Frank Becker CLA 2009-01-24 08:59:17 EST
-- Error Details --
Date: Sat Jan 24 14:55:12 CET 2009
Message: Unable to create editor ID org.eclipse.jdt.ui.CompilationUnitEditor: Editor could not be initialized.
Severity: Error
Plugin: org.eclipse.ui
Session Data:
eclipse.buildId=I20081211-1908
java.version=1.5.0_16
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=de_DE
Framework arguments:  -keyring /Users/frankbecker/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws carbon -arch x86 -keyring /Users/frankbecker/.eclipse_keyring -consoleLog -showlocation


Exception Stack Trace:
org.eclipse.swt.SWTException: Graphic is disposed
at org.eclipse.swt.SWT.error(SWT.java:3827)
at org.eclipse.swt.SWT.error(SWT.java:3742)
at org.eclipse.swt.SWT.error(SWT.java:3713)
at org.eclipse.swt.graphics.Image.getBounds(Image.java:607)
at org.eclipse.ui.forms.widgets.ImageHyperlink.paintHyperlink(ImageHyperlink.java:108)
at org.eclipse.ui.forms.widgets.ImageHyperlink.paintHyperlink(ImageHyperlink.java:93)
at org.eclipse.ui.forms.widgets.AbstractHyperlink.paint(AbstractHyperlink.java:296)
at org.eclipse.ui.forms.widgets.AbstractHyperlink$2.paintControl(AbstractHyperlink.java:84)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:217)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1566)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1590)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1575)
at org.eclipse.swt.widgets.Control.drawWidget(Control.java:850)
at org.eclipse.swt.widgets.Canvas.drawWidget(Canvas.java:114)
at org.eclipse.swt.widgets.Widget.kEventControlDraw(Widget.java:1069)
at org.eclipse.swt.widgets.Canvas.kEventControlDraw(Canvas.java:191)
at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:370)
at org.eclipse.swt.widgets.Display.controlProc(Display.java:862)
at org.eclipse.swt.internal.carbon.OS.ReceiveNextEvent(Native Method)
at org.eclipse.swt.widgets.Display.runEventLoopTimers(Display.java:3498)
at org.eclipse.swt.widgets.ProgressBar.setSelection(ProgressBar.java:243)
at org.eclipse.jface.dialogs.ProgressIndicator.done(ProgressIndicator.java:110)
at org.eclipse.jface.dialogs.ProgressIndicator.beginTask(ProgressIndicator.java:92)
at org.eclipse.jface.action.StatusLine.beginTask(StatusLine.java:349)
at org.eclipse.jface.action.StatusLineManager$1.beginTask(StatusLineManager.java:157)
at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:228)
at org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:113)
at org.eclipse.ui.editors.text.TextFileDocumentProvider.createFileInfo(TextFileDocumentProvider.java:558)
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.createFileInfo(CompilationUnitDocumentProvider.java:962)
at org.eclipse.ui.editors.text.TextFileDocumentProvider.connect(TextFileDocumentProvider.java:477)
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.connect(CompilationUnitDocumentProvider.java:1197)
at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4037)
at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:203)
at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1329)
at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.internalDoSetInput(JavaEditor.java:2514)
at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.doSetInput(JavaEditor.java:2487)
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSetInput(CompilationUnitEditor.java:1338)
at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3059)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:458)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:366)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2577)
at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3077)
at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3104)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:802)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:660)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:444)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:268)
at org.eclipse.ui.internal.EditorManager.findEditor(EditorManager.java:406)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2767)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2730)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2722)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2674)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2669)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2653)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2644)
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:693)
at org.eclipse.jdt.ui.JavaUI.openInEditor(JavaUI.java:671)
at org.eclipse.mylyn.internal.java.ui.JavaUiBridge.open(JavaUiBridge.java:65)
at org.eclipse.mylyn.internal.context.ui.ContextEditorManager.contextActivated(ContextEditorManager.java:133)
at org.eclipse.mylyn.internal.context.core.InteractionContextManager.internalActivateContext(InteractionContextManager.java:593)
at org.eclipse.mylyn.internal.context.core.InteractionContextManager.activateContext(InteractionContextManager.java:163)
at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin$1.taskActivated(TasksUiPlugin.java:246)
at org.eclipse.mylyn.internal.tasks.core.TaskActivityManager.activateTask(TaskActivityManager.java:413)
at org.eclipse.mylyn.internal.tasks.ui.actions.TaskActivateAction.run(TaskActivateAction.java:48)
at org.eclipse.mylyn.internal.tasks.ui.TaskHistoryDropDown$ActivateTaskAction.run(TaskHistoryDropDown.java:120)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:412)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1566)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1590)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1575)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1365)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3480)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3066)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:333)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:366)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:550)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:505)
at org.eclipse.equinox.launcher.Main.run(Main.java:1237)
Comment 1 Steffen Pingel CLA 2009-01-24 15:15:14 EST
Shawn, didn't we fix a similar error by catching and ignoring the exception?
Comment 2 Shawn Minto CLA 2009-01-26 11:50:40 EST
I think so, but can't remember where for sure.
Comment 3 Frank Becker CLA 2009-01-26 15:54:42 EST
I can only reproduce this when the TaskEditor is open but not every time.
I never had this when the no TaskEditor is open.
Comment 4 Steffen Pingel CLA 2009-01-28 14:40:22 EST
Frank, can you post your steps so I can try to reproduce it here? My suspicion is that it is related to the context page and how it listens to context activation events to relayout the form.
Comment 5 Frank Becker CLA 2009-01-28 15:10:47 EST
(In reply to comment #4)
> Frank, can you post your steps so I can try to reproduce it here? My suspicion
> is that it is related to the context page and how it listens to context
> activation events to relayout the form.
> 

Steffen

my problem is that I can not reproduce this every time.

But in all cases where I get this  this task was activated with some javaeditors and the taskeditor opened. The Task deactivation was done within the taskeditor title area.

When shutdown Eclipse and restart the problem disappears.

Hope that helps.
Comment 6 Frank Becker CLA 2009-01-28 15:45:21 EST
one more thing!

one open editor is a java.class. If I close this I did not get the error.
Comment 7 Steffen Pingel CLA 2009-01-28 15:47:29 EST
Once the error appears you get it every time when activating a task?
Comment 8 Frank Becker CLA 2009-01-28 16:28:06 EST
(In reply to comment #7)
> Once the error appears you get it every time when activating a task?
> 

Yes if I disable the task when the taskeditor is the activ editor. When an other editor is active the the next activation is without the error.
Comment 9 Steffen Pingel CLA 2009-02-02 20:41:51 EST
Turns out that this is a platform bug that should be fixed in Eclipse 3.5.

*** This bug has been marked as a duplicate of bug 250505 ***