| Summary: | Impossible to safely acquire any scheduling rules in syncExec/asyncExec | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | James Blackburn <jamesblackburn+eclipse> | ||||||||
| Component: | Runtime | Assignee: | platform-runtime-inbox <platform-runtime-inbox> | ||||||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||||||
| Severity: | major | ||||||||||
| Priority: | P3 | CC: | sptaszkiewicz, sxenos, yevshif | ||||||||
| Version: | 3.6 | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | stalebug | ||||||||||
| Attachments: |
|
||||||||||
|
Description
James Blackburn
Created attachment 191901 [details]
Illegal push backtrace
I experienced this bug for real in my runtime eclipse. As the event loop is ticked during modal dialogs any held scheduling rules can collide...
Created attachment 228937 [details]
asyncExec illegal push exception
The same problem happens also in case of asyncExec. The following UIJob was used to reproduce illegal push during file save:
new UIJob("async") {
public IStatus runInUIThread(IProgressMonitor monitor) {
try {
Job.getJobManager().beginRule(ResourcesPlugin.getWorkspace().getRoot(), null);
} finally {
Job.getJobManager().endRule(ResourcesPlugin.getWorkspace().getRoot());
}
return null;
}
}.schedule();
The problem with syncExec isn't interesting -- syncExec itself is highly deadlock-prone and can't really be safely called in any situation. We should deprecate it and remove all usage from the platform. If there's a problem with asyncExec, that's much more interesting. 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. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. 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. |