| Summary: | RuntimeException in a Widget event handler can cause IDE to 'lock up' | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | James Blackburn <jamesblackburn+eclipse> |
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | akurtakov, eclipse.felipe |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux-GTK | ||
| Whiteboard: | |||
|
Description
James Blackburn
Do you have steps to reproduce the problem ? What version of Eclipse/SWT are you running ? SWT will stop invoking callbacks when there is a pending exception. The right thing to do here is the fix the NPE in the component where it happens. Not sure what you mean... The exception has been thrown inline by the callback preventing all other widgets from repaiting. As far as i can tell the stack unwinds all the way up to the run event loop which prevents all other UI elements from bring redrawn. This is using eclipse 3.6. Completely agree the NPE should be fixed. I've file a PMR with IBM rational and it'll be months (if ever) before it's fixed. It seems that swt should/could be more resiliet to failures in 3rd party code, as a failure like this breaks the whole IDE. No action in years. Closing the bug. Please reopen (or better a new bug) with concrete example and proposal if you still face it. |