| Summary: | OutOfMemory/NullPointerException | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Vidar <vh> |
| Component: | SWT | Assignee: | Carolyn MacLeod <carolynmacleod4> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
|
Description
Vidar
Do you have any idea which steps led to this exception occurring? OutOfMemoryError exceptions occur because the default amount of virtual memory allocated by the java VM is typically not enough for an all-out, intensive eclipse session. When an OutOfMemory error happens, random additional errors/exceptions can occur (like NullPointer inside a native). In this case, looking at Table.getItems, the most likely thing that happened is that this line of code failed: TableItem [] result = new TableItem [count]; And this is something that can't really be protected against, other than catching the error way up in eclipse somewhere, and getting the user to help get more memory somehow. Eclipse is not (currently) very good at helping the user figure out what to do in this situation. Sometimes, an OutOfMemory dialog is brought up, and sometimes, an OutOfMemory error is just silently logged and some other strange error/exception halts the session. Searching for "OutOfMemory" in the Bugzilla database, it looks like there are several open bug reports requesting that eclipse handle this better somehow: https://bugs.eclipse.org/bugs/show_bug.cgi?id=22026 https://bugs.eclipse.org/bugs/show_bug.cgi?id=23633 https://bugs.eclipse.org/bugs/show_bug.cgi?id=33972 https://bugs.eclipse.org/bugs/show_bug.cgi?id=30807 Please read these bug reports to see how to increase the virtual memory in your java vm when running eclipse. I will mark this bug report as a duplicate of those others. Feel free to add a comment to any of those bug reports if you would like to. *** This bug has been marked as a duplicate of 33972 *** |