Bug 56038 - NPEs and other errors loading custom perspective
Summary: NPEs and other errors loading custom perspective
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P2 major (vote)
Target Milestone: 3.0 M8   Edit
Assignee: Debbie Wilson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 56157 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-24 16:25 EST by John Arthorne CLA
Modified: 2004-05-19 11:15 EDT (History)
3 users (show)

See Also:


Attachments
2.1 prefs file that defines a perspective (Sumatra) (185.31 KB, text/plain)
2004-03-24 16:26 EST, John Arthorne CLA
no flags Details
Log file showing stack traces (29.55 KB, text/plain)
2004-03-24 16:26 EST, John Arthorne CLA
no flags Details
Log file (19.67 KB, text/plain)
2004-03-26 11:07 EST, John Arthorne CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2004-03-24 16:25:35 EST
I20040324 (0800)

1) Create a new workspace
2) Close all perspectives
3) Import a 2.1 preference file that has a custom perspective (pref file attached)
4) Using the "open a perspectivee" button, open the "Sumatra" perspective

-> Error A) the workbench window resizes
-> Error B) Concurrent modification exception in the log file

5) Click the "open a perspective" button again

-> Error C) NPE in log file, dialog fails to open

6) File -> Exit

-> Error D) Problems occurred saving the workbench
Comment 1 John Arthorne CLA 2004-03-24 16:26:12 EST
Created attachment 8851 [details]
2.1 prefs file that defines a perspective (Sumatra)
Comment 2 John Arthorne CLA 2004-03-24 16:26:41 EST
Created attachment 8852 [details]
Log file showing stack traces
Comment 3 John Arthorne CLA 2004-03-24 17:36:35 EST
Step 5 should be followed by:

 - select a different perspective (such as Debug)

-> Then the ConcurrentModificationException happens.
Comment 4 Tod Creasey CLA 2004-03-25 08:50:38 EST
Deb we should see if we can get this sorted for M8.
Comment 5 Tod Creasey CLA 2004-03-25 10:19:18 EST
Fixed for 200403251200
Comment 6 Douglas Pollock CLA 2004-03-25 10:24:50 EST
Fixed for M8. 
Comment 7 Tod Creasey CLA 2004-03-25 11:01:04 EST
*** Bug 56157 has been marked as a duplicate of this bug. ***
Comment 8 Debbie Wilson CLA 2004-03-25 14:54:15 EST
Verified in I200403251200.
Comment 9 John Arthorne CLA 2004-03-26 10:57:32 EST
I'm not sure if you opened a separate bug for the NPE (Error C in original
report), but this is easily reproducible in I20040326-0800. Steps:

1) Create a new workspace
2) Close all perspectives
3) Import 2.1 preference file
4) Using the "open a perspective" button, open the "Sumatra" perspective
4) Using the "open a perspective" button, open the "Debug" perspective

-> NPE in log file, dialog fails to open

I no longer get the ConcurrentModificationException, however.
Comment 10 John Arthorne CLA 2004-03-26 11:05:13 EST
Sorry, when trying it again my steps weren't quite right.  Try this:

1) Create a new workspace
2) Close all perspectives
3) Import 2.1 preference file
4) Using the "open a perspective" button, open the "Sumatra" perspective
5) Using the "open a perspective" button, open the "Debug" perspective

-> Error restoring perspective

6) Using the "open a perspective" button, open the "Java" perspective
7) Click the "open a perspective" button again

-> NPE in log file

After this point you cannot open new perspectives without shutting down and
restarting.
Comment 11 John Arthorne CLA 2004-03-26 11:07:37 EST
Created attachment 8912 [details]
Log file

Actually, after the first NPE, almost anything perspective-related breaks. 
This log shows another NPE when creating a Java project (which presumably will
try to change to Java perspective).
Comment 12 Debbie Wilson CLA 2004-03-26 12:12:46 EST
The following PRs have been created:
bug 56226 - 2.1 Preference file -> 3.0 workspace (JDT/Debug)
bug 56380 - [DynamicUI] PerspectiveRegistry needs to be more resilient 
(Platform/UI)

The original problem of a ConcurrentModificationException has been solved and 
is in M8.  The remaining issues will not be addressed in M8.  Am closing this 
PR as fixed for M8 and marking bug 56380 to be fixed in M9.