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

Bug 314239

Summary: [RAP/EMF] IllegalStateException when display is disposed
Product: [Modeling] EMF Reporter: Benjamin Muskalla <b.muskalla>
Component: EditAssignee: Kenn Hussey <Kenn.Hussey>
Status: CLOSED FIXED QA Contact:
Severity: trivial    
Priority: P3 CC: Ed.Merks, ruediger.herrmann
Version: 2.6.0Flags: Ed.Merks: pmc_approved+
Ed.Merks: review+
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 305136    
Bug Blocks:    
Attachments:
Description Flags
patch none

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.