Bug 28638

Summary: [Preferences] Import Preferences: Crashes on eclipse
Product: [Eclipse Project] Platform Reporter: Andrew Irvine <airvine>
Component: UIAssignee: Tod Creasey <Tod_Creasey>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P1    
Version: 2.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux-Motif   
Whiteboard:
Attachments:
Description Flags
Preferences to import
none
Javacore from import operation
none
FontRegistry test version none

Description Andrew Irvine CLA 2002-12-18 13:06:06 EST
Eclipse 20021217
RH 7.3, KDE

I changed the dialog font via Window>Preferences>Workbench>Font to be a bold 
font.  Exited all preference pages and then verified the changes by going to 
the Editors preference page (Window>Preferences>Workbench>Editors).  I then 
attempted to import the attached preferences via the import button.  Eclipse 
crashes.  No entries in the log, but a javacore (attached) is produced.

Only occurs on linux-motif.  See also bug 28637 for a different error that 
occurred on Windows-XP.  I also saw these messages on linux, but was not sure 
if it was my GTK or MOTIF eclipse, or what actions had lead to this.
Comment 1 Andrew Irvine CLA 2002-12-18 13:07:02 EST
Created attachment 2836 [details]
Preferences to import
Comment 2 Andrew Irvine CLA 2002-12-18 13:07:26 EST
Created attachment 2837 [details]
Javacore from import operation
Comment 3 Tod Creasey CLA 2003-01-03 12:42:39 EST
The problem was with fonts being disposed too early - when preferences are 
imported it is possible that an old font is still in use and hence it should 
not be disposed of until shutdown.

A suggested version of FontRegistry is attached
Comment 4 Tod Creasey CLA 2003-01-03 12:43:26 EST
Created attachment 2886 [details]
FontRegistry test version
Comment 5 Tod Creasey CLA 2003-01-03 13:00:30 EST
Fixed in build >20030102. Please note that patch has a bug - use the version 
in the repository.
Comment 6 Tod Creasey CLA 2005-05-10 14:55:50 EDT
Marking closed