Project: Eclipse_Platform_UI
Bug 419435 [Themes] Invalid RGB color value in themes extension makes workbench unusable
Reported: 2013-10-15 05:32:26 | Status: resolved fixed

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) ...

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/resource/StringConverter.java