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

Bug 228129

Summary: [CommonNavigator] Test failure (disposed font) in org.eclipse.ui.tests.navigator_win32.win32.x86
Product: [Eclipse Project] Platform Reporter: Boris Bokowski <bokowski>
Component: UIAssignee: Francis Upton IV <francisu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, francisu, mdelder, pwebster
Version: 3.4   
Target Milestone: 3.5 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 226191    
Bug Blocks:    
Attachments:
Description Flags
ugly patch
none
mylyn/context/zip none

Description Boris Bokowski CLA 2008-04-21 20:53:50 EDT
Starting with N20080420-2000.

Apparently triggered by a change to SWT, but also a result of showing colored labels in the project explorer. I investigated with Kevin Barnes, it looks like the SWT changes uncovered a bug that was there all the time.
Comment 1 Boris Bokowski CLA 2008-04-22 00:15:07 EDT
Created attachment 96965 [details]
ugly patch

This should fix the problem for the next build, but it's a hack. The problem is that the common navigator calls labelProvider.dispose() before doing a refresh. The label provider's font is still being used by one of the tree items (from the paint callback), but at that time, it is already disposed. A better fix would be to dispose of the label provider after performing the refresh, but I will have to see if this is something we can do without API changes.
Comment 2 Boris Bokowski CLA 2008-04-22 00:15:10 EDT
Created attachment 96966 [details]
mylyn/context/zip
Comment 3 Boris Bokowski CLA 2008-04-22 00:19:16 EDT
Ugh. I cannot commit this change because my CVS permissions are screwed up. See
also bug 226191 comment 4.

Paul or Kim, if one of you sees this in time for the integration build, could
you please try to release the patch and either move the tag for this one file
or do a new build submission? Thanks!
Comment 4 Kim Horne CLA 2008-04-22 07:14:48 EDT
(In reply to comment #3)
> Ugh. I cannot commit this change because my CVS permissions are screwed up. See
> also bug 226191 comment 4.
> 
> Paul or Kim, if one of you sees this in time for the integration build, could
> you please try to release the patch and either move the tag for this one file
> or do a new build submission? Thanks!
> 

I will version before I come in to work.
Comment 5 Kim Horne CLA 2008-04-22 07:44:13 EDT
Done.  
Comment 6 Francis Upton IV CLA 2009-03-02 00:21:21 EST
This hack can probably be backed out with the fix to bug 265317, but this needs to be tested on Windows to make sure it will work.
Comment 7 Francis Upton IV CLA 2009-03-09 01:09:28 EDT
(In reply to comment #6)
> This hack can probably be backed out with the fix to bug 265317, but this needs
> to be tested on Windows to make sure it will work.
> 

Removed the hack and verified passes on Windows.
Comment 8 Francis Upton IV CLA 2009-04-28 14:18:46 EDT
Verified all CNF tests passed in I20090427-1800