Bug 36984 - [Workbench] Workspace layout resets on restart
Summary: [Workbench] Workspace layout resets on restart
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Simon Arsenault CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-28 04:02 EDT by Kuba Królikowski CLA
Modified: 2003-06-17 16:41 EDT (History)
1 user (show)

See Also:


Attachments
Eclipse log file (69.32 KB, text/plain)
2003-04-29 06:57 EDT, Kuba Królikowski CLA
no flags Details
When I started Eclipse today... (137.96 KB, image/jpeg)
2003-06-04 04:45 EDT, Kuba Królikowski CLA
no flags Details
When I choosed "Open Perspective" -> "Java".... (114.21 KB, image/jpeg)
2003-06-04 04:46 EDT, Kuba Królikowski CLA
no flags Details
Normally my workspace looks like this (271.28 KB, image/jpeg)
2003-06-04 04:47 EDT, Kuba Królikowski CLA
no flags Details
Actual .log file (24.18 KB, text/plain)
2003-06-04 04:48 EDT, Kuba Królikowski CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kuba Królikowski CLA 2003-04-28 04:02:03 EDT
Sometimes when I restart Eclipse workspace doesn't looks like before restart.
Layout has inital values. I'm not sure when exactly it occurs, because I didn't
find any rule. Maybe I can send any config files?
Comment 1 Debbie Wilson CLA 2003-04-28 15:26:34 EDT
Which version of Eclipse were you using (2.1 stable build or a subsequent 
build)?  Did you crash when you shutdown Eclipse (previous to noticing that 
the layout had reverted to initial values)?  You can check for information in 
the .log file (usually under the .metadata directory in your workspace).  What 
exactly were the differences?
Comment 2 Kuba Królikowski CLA 2003-04-29 06:57:04 EDT
Created attachment 4750 [details]
Eclipse log file
Comment 3 Kuba Królikowski CLA 2003-04-29 07:07:05 EDT
1. I'm using Eclipse 2.1 release (first position on
http://www.eclipse.org/downloads/index.php). 
2. No, I didn't. I just shutdown Eclipse on end of work, and restart it next day.
3. I didn't find there anything special. I attached .log file. Last in happened
yesterday about (28 April) 9:30 AM.
4. Differences: for example there was no "Debug prespective" icon (and other
icons too) on the left bar. When I opened perspective "Debug" from "Window" menu
it looked like after Eclipse instalation. I'm using this perspective very often
and I set it to look totaly different. There was the same problem with other
perspectives too.
Comment 4 Debbie Wilson CLA 2003-05-05 11:45:45 EDT
Your log file has lots of crashes in it.  Could you do the following to help 
us isolate this problem:
- remove the .log file in your environment.  A new one will be created when 
needed.
- when you shutdown your environment, check the .log file for any crashes.  We 
noticed and "out of memory" at the end of your current log file as follows:
java.lang.OutOfMemoryError
!ENTRY org.eclipse.ui 4 4 kwi 28, 2003 17:34:53.767
!MESSAGE Exception in org.eclipse.ui.actions.GlobalBuildAction.run: 
java.lang.OutOfMemoryError

- when you start up Eclipse, check the .log file after startup.  We are trying 
to determine if your problem is happening on shutdown or startup.

- if you have a reproducible case, that would really help us.  The crash on 
either startup or shutdown is causing your display to revert to the original 
default display.
Comment 5 Kuba Królikowski CLA 2003-05-20 11:17:02 EDT
I'm waiting for occurence of this bug, but it not happens now... I'll write you
when I'll have problems again.
Comment 6 Debbie Wilson CLA 2003-05-26 09:29:35 EDT
Am closing this problem as we aren't doing anything on it.  If you notice this 
problem reappearing, please reopen this problem report and add any comments to 
it.
Comment 7 Kuba Królikowski CLA 2003-06-04 04:30:13 EDT
I have it again!
This time I send you some screen-shots and log file.
Comment 8 Kuba Królikowski CLA 2003-06-04 04:45:15 EDT
Created attachment 5049 [details]
When I started Eclipse today...
Comment 9 Kuba Królikowski CLA 2003-06-04 04:46:18 EDT
Created attachment 5050 [details]
When I choosed "Open Perspective" -> "Java"....
Comment 10 Kuba Królikowski CLA 2003-06-04 04:47:27 EDT
Created attachment 5051 [details]
Normally my workspace looks like this

I made this screen-shot some time ago for another bug.
Comment 11 Kuba Królikowski CLA 2003-06-04 04:48:03 EDT
Created attachment 5052 [details]
Actual .log file
Comment 12 Kuba Królikowski CLA 2003-06-04 04:55:19 EDT
There is nothing about this problem in .log file. Last position is from
yesterday but this is about another problem (I didn't make 'refresh' on my
project after some operations). I shuted down Eclipse yesterday (04-April-2003)
at 5:00 pm (17:00 in my Locale). Today I started it at 9:30 am.
Comment 13 Kuba Królikowski CLA 2003-06-04 04:58:55 EDT
Excuse me: not '04-April-2003', but '04-June-2003' of course. 
Comment 14 Debbie Wilson CLA 2003-06-04 15:05:48 EDT
Is "cze 03, 2003" June 03, 2003?

It looks like you crashed yesterday (June 3, if my assumption about cze being 
June is correct) when cvs was trying to do some something with the file:
/top/dbg/readme.txt
Eclipse thinks that file should be located here:
C:\eclipse\workspace\top\dbg\readme.txt
but the file is not available.  Is 'top' one of your projects?  What were you 
doing with this project when the crash happened.

When you tried to start up Eclipse this morning (June 4), Eclipse had to do 
the best it could to restore things to a sane state despite the fact that it 
crashed yesterday.  As a result, the layout went back to initial values.

We need to isolate why the crash is happening and solve that problem.  Could 
you do the following:
- rename your .log file (so that there is no file named .log)
- each time you shutdown Eclipse, check to see if there is a .log file (one 
will be created if needed)
- if you find a .log file with a crash in it, try to isolate the sequence of 
events that caused the crash 
Comment 15 Kuba Królikowski CLA 2003-06-05 04:21:00 EDT
Yes, "cze 03, 2003" is June 03, 2003.
"top" is part of my project. I don't think that the reason is in that position.
Problem with file "dbg/readme.txt" happened an 1:03 pm. I worked with this
project until 5:00 pm and just then I shuted down Eclipse.
What i did, that the problem happened?
I almost sure this scenario:
- some days ago I deleted all files from folder "dbg" in project "top", but not
using Eclipse. I did it with external files manager. I deleted "readme.txt" file
too (it was there before)
- I didn't make "refresh" on project "top" in Eclipse - file "readme.txt" still
was in "Package Explorer" view.
- two days before, at 1:03 pm, I tried to open file "readme.txt". Eclipse
couldn't open it because it wasn't there. 
I don't have "Refresh workspace on startup" on, so refreshing couldn't happen
automatically.
Comment 16 Simon Arsenault CLA 2003-06-09 14:04:41 EDT
When you start up eclipse and you notice the perspectives have been "reset", do 
you get a dialog box letting you know that it will be reset?

There is nothing in the .log file that would explain why the reset is happening.

When you start up eclipse, one of the command line arguments you can specify is 
the location of the VM to use. Could you use java.exe instead of javaw.exe - 
that will cause the console output to be shown. There may be something written 
there when the reset happens.
Comment 17 Kuba Królikowski CLA 2003-06-10 04:17:42 EDT
No, I don't get any dialog box.
Ok, I'll try to run Eclipse with java.exe.

Comment 18 Simon Arsenault CLA 2003-06-17 16:41:08 EDT
Have you've been able to reproduce this problem while the console window is 
open (i.e. using java.exe instead of javaw.exe)?

Plus, if you do reproduce this problem, then attach the workbench.xml file 
(found in <workspace>/.metadata/.plugins/org.eclipse.ui.workbench). But make 
sure you copy this file before shutting down Eclipse, otherwise it will get 
rewritten.

Since you are not getting any error dialog on restore stating that your window 
layout will be reset, and nothing in your .log file, I suspect that the last 
time eclipse shutdown, it failed to write the workbench.xml file.

Please reopen if you can reproduce this problem again.