Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 66000

Summary: [ViewMgmt] AssertionFailedException in DefaultPartPresentation.getTabFolder
Product: [Eclipse Project] Platform Reporter: Nick Edgar <n.a.edgar>
Component: UIAssignee: Stefan Xenos <sxenos>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: P1 CC: eclipse, jared_burns, markus.kell.r, michaelvanmeekeren
Version: 3.0   
Target Milestone: 3.0 RC2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Nick Edgar CLA 2004-06-07 12:02:25 EDT
build I20040604-1600

Noticed several occurrences of the following in my .log from Friday:

Should investigate for RC2.

org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed:
at org.eclipse.jface.util.Assert.isTrue(Assert.java:168)
at org.eclipse.jface.util.Assert.isTrue(Assert.java:154)
at
org.eclipse.ui.internal.presentations.DefaultPartPresentation.getTabFolder(DefaultPartPresentation.java:627)
at
org.eclipse.ui.internal.presentations.DefaultEditorPresentation$1.propertyChange(DefaultEditorPresentation.java:70)
at org.eclipse.ui.plugin.AbstractUIPlugin$2.run(AbstractUIPlugin.java:266)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:758)
at
org.eclipse.ui.plugin.AbstractUIPlugin$CompatibilityPreferenceStore.firePropertyChangeEvent(AbstractUIPlugin.java:264)
at
org.eclipse.ui.plugin.AbstractUIPlugin$1.propertyChange(AbstractUIPlugin.java:204)
at
org.eclipse.core.internal.preferences.PreferenceForwarder.preferenceChange(PreferenceForwarder.java:115)
at
org.eclipse.core.internal.preferences.EclipsePreferences$4.run(EclipsePreferences.java:743)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:758)
at
org.eclipse.core.internal.preferences.EclipsePreferences.preferenceChanged(EclipsePreferences.java:746)
at
org.eclipse.core.internal.preferences.EclipsePreferences.put(EclipsePreferences.java:757)
at
org.eclipse.core.internal.preferences.PreferenceForwarder.setValue(PreferenceForwarder.java:604)
at
org.eclipse.ui.plugin.AbstractUIPlugin$CompatibilityPreferenceStore.setValue(AbstractUIPlugin.java:473)
at
org.eclipse.ui.internal.registry.EditorRegistry.saveAssociations(EditorRegistry.java:879)
at
org.eclipse.ui.internal.dialogs.FileEditorsPreferencePage.performOk(FileEditorsPreferencePage.java:407)
at org.eclipse.jface.preference.PreferenceDialog$11.run(PreferenceDialog.java:745)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
at org.eclipse.core.runtime.Platform.run(Platform.java:758)
at
org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:728)
at
org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:199)
at
org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.buttonPressed(WorkbenchPreferenceDialog.java:75)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2716)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2382)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
at org.eclipse.jface.window.Window.open(Window.java:648)
at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:72)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
at
org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2716)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2382)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1363)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1334)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:253)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:334)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:128)
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:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:638)
at org.eclipse.core.launcher.Main.main(Main.java:622)
Comment 1 Michael Van Meekeren CLA 2004-06-08 14:31:04 EDT

*** This bug has been marked as a duplicate of 59571 ***
Comment 2 Stefan Xenos CLA 2004-06-08 14:32:32 EDT
You can reproduce this by leaking an editor presentation as described in bug
59571,  then sending it a property change by changing one of the global
preferrences (I changed both show editor tabs on top and show multiple tabs at
the same time).

I suspect this is a dupe of bug 59571.
Comment 3 Michael Van Meekeren CLA 2004-06-08 14:48:36 EDT
turns out this is not a dup.  using the steps above, the assertion still 
happens after applying the fix from bug 59571
Comment 4 Stefan Xenos CLA 2004-06-08 15:02:11 EDT
To reproduce: 

- open new workbench window
- split and unsplit a bunch of editor panes using drag/drop
- close the new workbench window
- change the "show multiple editor tabs" and "editor tabs on top/bottom"
preferences.

You'll get the assertation failure.
Comment 5 Jared Burns CLA 2004-06-08 15:12:14 EDT
I get this exception in my target just by exiting and restarting my target. I just cleared my log, 
shutdown, and restarted. When the target came up, it had the above exception in the log. No split 
editors, no new workbench windows, no preference changes.
Comment 6 Stefan Xenos CLA 2004-06-08 15:48:58 EDT
Fixed in head (inspected by Michael)
Comment 7 Stefan Xenos CLA 2004-06-08 15:50:07 EDT
Jared, can you provide steps to recreate this? This will help us verifiy that is
has actually been fixed.
Comment 8 Jared Burns CLA 2004-06-08 16:38:34 EDT
Unfortunately, I can't. I've just seen it intermittently.
Comment 9 Debbie Wilson CLA 2004-06-11 13:58:43 EDT
Verified in I20040611 (0010) by Ines.