Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314239 - [RAP/EMF] IllegalStateException when display is disposed
Summary: [RAP/EMF] IllegalStateException when display is disposed
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Edit (show other bugs)
Version: 2.6.0   Edit
Hardware: All All
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Kenn Hussey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 305136
Blocks:
  Show dependency tree
 
Reported: 2010-05-25 06:42 EDT by Benjamin Muskalla CLA
Modified: 2010-06-11 19:12 EDT (History)
2 users (show)

See Also:
Ed.Merks: pmc_approved+
Ed.Merks: review+


Attachments
patch (959 bytes, patch)
2010-05-25 06:44 EDT, Benjamin Muskalla CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Muskalla CLA 2010-05-25 06:42:22 EDT
When using EMF and RAP together and the display is disposed (either when closing the application or on session timeout), EMF tries to cleanup several images in a DisposeListener. In this special case, you cannot dispose the images in RAP as these are shared images.
This should initially be fixed on the RAP side (see bug 305136 ) but we will not have the time to fully implement this for the Helios release (but maybe for the service release). As this scenario throws an exception, I'd suggest to just comment out the dispose calls in the rap.emf.edit.ui bundle as a safe workaround (there will be no resource leaks).
Comment 1 Benjamin Muskalla CLA 2010-05-25 06:44:23 EDT
Created attachment 169803 [details]
patch

Patch to ignore dispose call
Comment 2 Kenn Hussey CLA 2010-05-25 09:41:12 EDT
The fix has been committed to CVS.
Comment 3 Benjamin Muskalla CLA 2010-05-25 09:51:42 EDT
Thanks Kenn & Ed for the fast reaction!
Comment 4 Ed Merks CLA 2010-06-11 19:12:15 EDT
The fix is available in 2.6 RC4.