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

Bug 304025

Summary: Possible failure to dispose GC can cause error messages
Product: [Tools] GEF Reporter: <h1055071>
Component: GEF-Legacy GEF (MVC)Assignee: gef-inbox <gef-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: unspecified   
Target Milestone: 3.7.0 (Indigo)   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description CLA 2010-02-26 08:10:54 EST
Build Identifier: 3.5 and 3.6

This is confined to Mac OS X Cocoa.

On each of my GEF based editor RCP applications trying to run it under Cocoa, closing the application spits out the following to the console:

iMac java[880] <Error>: kCGErrorCannotComplete: CGSDeviceSynchronize: Invalid device window
iMac java[880] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
iMac java[880] <Error>: kCGErrorCannotComplete: CGSDeviceSynchronize: Invalid device window
iMac java[880] <Error>: kCGErrorCannotComplete: CGSDeviceSynchronize: Invalid device window
iMac java[880] <Error>: kCGErrorCannotComplete: CGSDeviceSynchronize: Invalid device window

I found Bug #292780 which tells us that failing to dispose of a GC causes this on Cocoa.

So, I assume that somewhere in the GEF / Draw2d code this is happening. There could be cases where a GC object is created and the flow of operations means that the GC is not disposed.


Reproducible: Always
Comment 1 CLA 2011-01-31 11:09:37 EST
I'm not seeing this any more on Eclipse 3.7 I20110127-2034 and GEF 3.7 I201101272050.
Comment 2 Alexander Nyßen CLA 2011-01-31 11:11:14 EST
Ok, resolving as WORKSFORME then.