Community
Participate
Working Groups
A single invalid RGB color value in a "org.eclipse.ui.themes" extension leads to the workbench not starting up correctly. Afterwards it basically unusable. java.lang.IllegalArgumentException: Argument not valid at org.eclipse.swt.SWT.error(SWT.java:4378) at org.eclipse.swt.SWT.error(SWT.java:4312) at org.eclipse.swt.SWT.error(SWT.java:4283) at org.eclipse.swt.graphics.RGB.<init>(RGB.java:76) at org.eclipse.jface.resource.StringConverter.asRGB(StringConverter.java:565) at org.eclipse.ui.themes.ColorUtil.getColorValue(ColorUtil.java:175) at org.eclipse.ui.internal.themes.ColorDefinition.getValue(ColorDefinition.java:157) at org.eclipse.ui.internal.themes.ThemeElementHelper.installColor(ThemeElementHelper.java:284) at org.eclipse.ui.internal.themes.ThemeElementHelper.populateRegistry(ThemeElementHelper.java:172) at org.eclipse.ui.internal.Workbench$28.runWithException(Workbench.java:1664) at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31) at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180) at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150) at org.eclipse.swt.widgets.Display.syncExec(Display.java:4688) at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:94) at org.eclipse.ui.internal.Workbench.initializeApplicationColors(Workbench.java:1659) at org.eclipse.ui.internal.Workbench.init(Workbench.java:1553) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2702) at org.eclipse.ui.internal.Workbench.access$7(Workbench.java:2591) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:608) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) ...
Patch: https://git.eclipse.org/r/#/c/17375/
Thanks Christian. Submitted with http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=f9ae23c0e490a981e6e252fd0cee1c7194d101ba
FYI: I've added your credentials to the copyright notice.
Verified in the build: 4.4RC3 Daniel