Bug 112832 - [MPE] "Widget has wrong parent" switching tabs in Plug-in Manifest Editor
Summary: [MPE] "Widget has wrong parent" switching tabs in Plug-in Manifest Editor
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-17 14:18 EDT by Jared Burns CLA
Modified: 2019-09-06 15:37 EDT (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 Jared Burns CLA 2005-10-17 14:18:30 EDT
Build 20051014
Linux-GTK

I have no idea if my steps are relevent, but here's what I did:
1. Created a new plug-in project with defaults selected except I turned off the
bit about referencing the UI.
2. Went to the Extensions tab and defined a new application extension.
3. Created my new IPlatformRunnable (switched to Java editor and wrote some code).
4. Came back to the Plug-in Manifest Editor and saved.
5. Clicked the "Dependencies" tab.

My CPU got pegged for a few seconds and then the tab failed to realize (the
content is just a gray box). The same thing happens now everytime I click on the
Overview, Dependencies, Runtime, Extension Points, or Build tabs but the other
tabs are fine. The following exception was logged:

java.lang.IllegalArgumentException: Widget has the wrong parent
at org.eclipse.swt.SWT.error(SWT.java:3246)
at org.eclipse.swt.SWT.error(SWT.java:3185)
at org.eclipse.swt.SWT.error(SWT.java:3156)
at org.eclipse.swt.widgets.Widget.error(Widget.java:420)
at org.eclipse.swt.widgets.Control.setMenu(Control.java:2830)
at org.eclipse.ui.forms.widgets.ScrolledForm.<init>(ScrolledForm.java:54)
at org.eclipse.ui.forms.widgets.FormToolkit.createScrolledForm(FormToolkit.java:597)
at org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:147)
at org.eclipse.ui.forms.editor.FormEditor.pageChange(FormEditor.java:444)
at
org.eclipse.pde.internal.ui.editor.PDEFormEditor.pageChange(PDEFormEditor.java:234)
at
org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPart.java:200)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1051)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1075)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:912)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3178)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1962)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:294)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1051)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2942)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2630)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1763)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1727)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:371)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:375)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:164)
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.core.launcher.Main.invokeFramework(Main.java:338)
at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Comment 1 Jared Burns CLA 2005-10-17 14:19:05 EDT
Note that the editor appears fine after closing and reopening.
Comment 2 Wassim Melhem CLA 2005-10-19 14:26:45 EDT
Janek, could you please look into it.  

I suspect it may be a bug in Forms or Platform/UI, as we have not done work in 
this area recently.  In which case, forward to Platform/UI.
Comment 3 Janek Lasocki-Biczysko CLA 2005-10-20 10:49:19 EDT
It seems like it is coming from Platform/UI, can't find any traces of problems
on the PDE end.  Forwarding ...
Comment 4 Paul Webster CLA 2006-09-28 15:15:35 EDT
Is this still a problem in 3.3?

PW
Comment 5 Jared Burns CLA 2006-09-28 16:04:20 EDT
This bug was forward to Platform-UI for investigation. Was it investigated?
Comment 6 Paul Webster CLA 2006-09-28 20:11:58 EDT
No, and is unlikely to be investigated in the 3.3 timeframe.

PW
Comment 7 Paul Webster CLA 2006-09-28 20:12:24 EDT
interest.
PW
Comment 8 Paul Webster CLA 2007-06-21 13:20:20 EDT
It seems to have been a transient state, cannot reproduce.
PW
Comment 9 gv CLA 2007-08-06 11:22:03 EDT
I have the same problem with Eclipse 3.3.0 Build id: I20070625-1500. 

Just upgraded from eclipse 3.2 to 3.3 (WTP all in one), reinstalled all plugins (BIRT, subversion).

Patched against gtk/cups bug with -Dorg.eclipse.swt.internal.gtk.disablePrinters and -XX:MaxPermSize=96m 

The system worked fine for about two hours, then started complaining about wrong parent when switching tabs (Properties, Data Explorer, Palette and so on). 
Cannot find any special condition that may cause the problem. I closed and reopened eclipse and repeated almost exactly the operations I was doing before the error appeared (I was using BIRT, new report, new scripted data source, new dataset) but eclipse works fine now, no error dialogs. 

See stacktrace and other info below.

Thanks, 
gv

uname -a 
Linux sottosviluppo 2.6.20.3 #1 SMP Wed Mar 14 10:31:33 CET 2007 i686 GNU/Linux

libgtk2.0-bin version 2.10.6-0ubuntu3.1 

java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Server VM (build 1.5.0_09-b03, mixed mode)

extract from stacktrace: 

java.lang.IllegalArgumentException: Widget has the wrong parent
	at org.eclipse.swt.SWT.error(SWT.java:3547)
	at org.eclipse.swt.SWT.error(SWT.java:3481)
	at org.eclipse.swt.SWT.error(SWT.java:3452)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:438)
	at org.eclipse.swt.widgets.Composite.setTabList(Composite.java:1277)
	at org.eclipse.ui.internal.WorkbenchPage.updateTabList(WorkbenchPage.java:3858)
	at org.eclipse.ui.internal.WorkbenchPage.access$8(WorkbenchPage.java:3851)
	at org.eclipse.ui.internal.WorkbenchPage$3.run(WorkbenchPage.java:617)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.runtime.Platform.run(Platform.java:857)
	at org.eclipse.ui.internal.WorkbenchPage.activatePart(WorkbenchPage.java:609)
	at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3380)
	at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2928)
	at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:265)
	at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:229)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1106)
	at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1142)
	at org.eclipse.swt.widgets.Control.gtk_button_press_event(Control.java:2353)
	at org.eclipse.swt.widgets.Composite.gtk_button_press_event(Composite.java:627)
	at org.eclipse.swt.widgets.Tree.gtk_button_press_event(Tree.java:1769)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1474)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4234)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:3973)
	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5593)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1487)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2969)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)

Comment 10 Paul Webster CLA 2007-08-13 14:32:12 EDT
Reproduced in 3.3
PW
Comment 11 Eclipse Webmaster CLA 2019-09-06 15:30:18 EDT
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.
Comment 12 Eclipse Webmaster CLA 2019-09-06 15:37:01 EDT
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.