Bug 218681

Summary: Preferences Dialog crashing
Product: [Eclipse Project] Platform Reporter: Jean-Francois Lecomte <jflecomte>
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: duongn, remy.suen, steve_northover
Version: 3.3.1Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
Bug Screen Shot #1
none
Bug Screen Shot #2
none
Bug Screen Shot #3
none
Eclipse Templates Window Bug Log
none
Another layout problem (related???)
none
Another layout problem (related???) none

Description Jean-Francois Lecomte CLA 2008-02-12 14:27:37 EST
Created attachment 89535 [details]
Bug Screen Shot #1

Build ID: M20071023-1652

Steps To Reproduce:
1. Start eclipse
2. Create a new workspace when prompted
3. Close the "Welcome" tab.
4. Open the "Error Log" view
5. Go to Window > Preferences > Java > Editor > Templates  (and make sure you never resize the Preferences dialog, nor click on another category than "Templates". The problem tends not to appear when the dialog is resized...)

Default templates should be visible in the table, but the table appears empty. (See screen shot #1)
In the Error Log, we can see that 2 errors were added. (see error log as attachment)

6. Click on "OK"

The dialog doesn't close. An error message appears. (See screen shot #2)

7. Click on "OK" (on the error dialog)

The "OK" button in the Preferences dialog is disabled. The tree is broken (See screen shot #3). 
The "Cancel" and "X" buttons won't do anything. The application is dead. Need to kill the process...


More information:
Tested with a clean install (immediately after unzipping eclipse-SDK-3.3.1.1-win32.zip)

The bug doesn't always reproduce when the Preferences dialog is resized before going to "Templates"...

Frequently experience layout problems with eclipse's dialogs (see other screen shots). Does this can be linked? Usually resizing/re-opening dialogs eventually fixes the problem without crashing the application.

Also tested with modified "eclipse.ini" to specify the VM like this:
-vm
C:\Program Files\Java\j2re1.4.2_16\bin\javaw.exe
then like this:
-vm
C:\Program Files\Java\jre1.6.0_03\bin\javaw.exe
The result is always the same...
Comment 1 Jean-Francois Lecomte CLA 2008-02-12 14:28:21 EST
Created attachment 89537 [details]
Bug Screen Shot #2
Comment 2 Jean-Francois Lecomte CLA 2008-02-12 14:28:51 EST
Created attachment 89538 [details]
Bug Screen Shot #3
Comment 3 Jean-Francois Lecomte CLA 2008-02-12 14:29:36 EST
Created attachment 89540 [details]
Eclipse Templates Window Bug Log
Comment 4 Jean-Francois Lecomte CLA 2008-02-12 14:30:28 EST
Created attachment 89541 [details]
Another layout problem (related???)
Comment 5 Jean-Francois Lecomte CLA 2008-02-12 14:30:53 EST
Created attachment 89542 [details]
Another layout problem (related???)
Comment 6 Steve Northover CLA 2008-02-12 16:10:04 EST
Looks like the Windows WM_SIZE limitation again.
Comment 7 Grant Gayed CLA 2008-02-14 13:40:39 EST
The first problems could be a manifestation of bug 142965, and the last problems look the same as bug 142688 (which could be another case of bug 142965).

Bug 142965 was fixed in the 3.4 stream.  Can you try a recent milestone build like http://download.eclipse.org/eclipse/downloads/drops/S-3.4M5-200802071530/index.php and follow up here whether this fixes the problem(s) for you or not?
Comment 8 Grant Gayed CLA 2008-02-14 14:29:51 EST
To update, DN confirmed that he used to see these problems on his win2000 as well but they are now both fixed, so closing report as a duplicate of bug 142965.


*** This bug has been marked as a duplicate of bug 142965 ***