Bug 173049 [ErrorHandling] multiple stacked "Internal error" dialogs after OutOfMemoryError
I20070206-0010 - launch Eclipse with: java -showversion -jar plugins\org.eclipse.equinox.launcher_*.jar -data oom -clean -consolelog -console -showlocation - File > Import > Projects from CVS - import org.eclipse.jdt.ui => 4 OutOfMemoryErrors in the log, 3 stacked "Internal error", see screenshot. !ENTRY org.eclipse.core.jobs 4 2 2007-02-06 14:32:25.761 !MESSAGE An internal error occurred during: "Building workspace". !STACK 0 java.lang.OutOfMemoryError: Java heap space !ENTRY org.eclipse.ui 4 0 2007-02-06 14:32:25.761 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.OutOfMemoryError: Java heap space !ENTRY org.eclipse.core.jobs 4 2 2007-02-06 14:32:52.462 !MESSAGE An internal error occurred during: "Building workspace". !STACK 0 java.lang.OutOfMemoryError: Java heap space !ENTRY org.eclipse.ui 4 0 2007-02-06 14:32:52.478 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.OutOfMemoryError: Java heap space
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchErrorHandler.java
* Handles an event loop exception
	 * 
	 * @param t
	 *            the exception to handle
	 */
	public void handleException(Throwable t) {
		try {
			exceptionCount++;
			if (exceptionCount > 1) {
				if (closing) {
					return;
				}
				Shell parent = getParentShell();
				if (dialog != null && dialog.getShell() != null
						&& !dialog.getShell().isDisposed()) {
					parent = dialog.getShell();
				}
				MessageBox box = new MessageBox(parent, SWT.ICON_ERROR
						| SWT.YES | SWT.NO | SWT.SYSTEM_MODAL);
				box.setText(MSG_FATAL_ERROR_RecursiveTitle);
				box.setMessage(MessageFormat.format(MSG_FATAL_ERROR,
						new Object[] { MSG_FATAL_ERROR_Recursive }));
				int result = box.open();
				if (result == SWT.YES) {
					closeWorkbench();
				}
			} else {
				if (openQuestionDialog(t)) {
					closeWorkbench();
				}