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
/*******************************************************************************
 * Copyright (c) 2006, 2007 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.ui.internal.ide;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.SWT;
import org.eclipse.swt.SWTError;
import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.application.IWorkbenchConfigurer;
import org.eclipse.ui.internal.ide.dialogs.InternalErrorDialog;
import org.eclipse.ui.progress.UIJob;
import org.eclipse.ui.statushandlers.StatusAdapter;
import org.eclipse.ui.statushandlers.WorkbenchErrorHandler;
import com.ibm.icu.text.MessageFormat;
/**
 * This is the IDE workbench error handler. The instance of this handler is
 * returned from {@link IDEWorkbenchAdvisor#getWorkbenchErrorHandler()}. All
 * handled statuses are checked against severity and logged using logging