| Summary: | RATs can end up with incorrect nodes | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Eric Moffatt <emoffatt> | ||||||||
| Component: | UI | Assignee: | Project Inbox <e4.ui-inbox> | ||||||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | remy.suen | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | stalebug | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Eric Moffatt
Created attachment 194198 [details]
The loop of a stack overflow in RAD caused by this defect
Note that we managed to code around this by running the notification loop in an 'asynchExec' (so that it was not running inside the RAT). While my initial code used Display.asynchExec it would likely be better to use the one from Realm to avoid YASD (Yet Another SWT Dependency)... Created attachment 194301 [details]
Patch to issue the motifications through UISynchronize.asynchExec
This prevents the leakage since the actual notifications are no longer issued from within the RAT.
Committed in >20110428. Applied the patch. The previous fix is probably sufficient for 4.1. If other instances of this anti-pattern are discovered they should also be repaired using the same technique. I'll leave this defect open to see if there is a possible solution on the DI side which would allow us to safely perform client code from inside a RAT synchronously. Created attachment 194305 [details] ESelectionServiceTest patch v1 (In reply to comment #3) > Created attachment 194301 [details] > Patch to issue the motifications through UISynchronize.asynchExec The fix above has caused all the tests in the ESelectionServiceTest test class to fail. (In reply to comment #6) > Created attachment 194305 [details] > ESelectionServiceTest patch v1 Patch released to CVS HEAD. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. This is a mass change to close all e4 bugs marked with "stalebug" whiteboard. If this bug is still valid, please reopen and remove the "stalebug" keyword. |