Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 525742

Summary: IllegalStateException in FormToolkit.BorderPainter.paintControl
Product: [Eclipse Project] Platform Reporter: EPP Error Reports <error-reports-inbox>
Component: UIAssignee: Andrey Loskutov <loskutov>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: loskutov
Version: 4.7   
Target Milestone: 4.8 M3   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=521488
https://git.eclipse.org/r/106447
https://bugs.eclipse.org/bugs/show_bug.cgi?id=525764
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d0ad4540ad578a684b4e4d0989764a9a5eb18a53
Whiteboard:
Bug Depends on: 525764    
Bug Blocks:    

Description EPP Error Reports CLA 2017-10-09 04:18:33 EDT
The following problem was reported via the automated error reporting:

Message: Unhandled event loop exception
java.lang.IllegalStateException: FormToolkit has been disposed
    at org.eclipse.ui.forms.widgets.FormToolkit.checkDisposed(FormToolkit.java:998)
    at org.eclipse.ui.forms.widgets.FormToolkit.getBorderStyle(FormToolkit.java:861)
    at org.eclipse.ui.forms.widgets.FormToolkit$BorderPainter.paintControl(FormToolkit.java:133)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:231)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)



Bundles:
| org.eclipse.e4.core.di | 1.6.100.v20170421-1418 | 1.6.100.v20170421-1418 |
| org.eclipse.swt | 3.106.1.v20170829-0553 | 3.107.0.v20170913-1903 |
| org.eclipse.ui | 3.109.0.v20170411-1742 | 3.109.0.v20170411-1742 |
| org.eclipse.ui.forms | 3.7.101.v20170815-1446 | 3.7.200.v20170906-0641 |

Operating Systems:
| Linux | 3.13.0 | 4.4.0 |
| MacOSX | 10.12.5 | 10.13.0 |
| Windows | 6.1.0 | 10.0.0 |


The above information is a snapshot of the collected data. Visit https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/59b9954ce4b07a83ba477208 for the latest data.

Thank you for your assistance.
 Your friendly error-reports-inbox.
Comment 1 Andrey Loskutov CLA 2017-10-09 04:20:08 EDT
Looks like paint listener from parent composite is still triggered on the FormToolkit instance. I wonder why the listener was not removed on dispose()?
Comment 2 Eclipse Genie CLA 2017-10-09 04:28:13 EDT
New Gerrit change created: https://git.eclipse.org/r/106447
Comment 4 Andrey Loskutov CLA 2017-10-10 02:00:49 EDT
I believe the root cause is in bug 525764, but the merged patch should fix other possible cases too.
Comment 5 Karsten Thoms CLA 2020-09-28 17:54:39 EDT
*** Bug 466375 has been marked as a duplicate of this bug. ***