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

Bug 317596

Summary: Eclipse cannot get past the splash screen, hangs at the "Loading Workbench" screen
Product: [Eclipse Project] Platform Reporter: TR <ChieftainY2k>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED INVALID QA Contact:
Severity: critical    
Priority: P3 CC: bokowski, breezyarian, remy.suen, tariq.albabtain
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Loading Workbench hangs
none
PRocess activity while in the hang state. none

Description TR CLA 2010-06-22 10:58:44 EDT
Build Identifier: I20100603-1500

Eclipse cannot get past the splash screen, hangs at the "Loading Workbench" state.

The only filesystem activity is accessing the .metadata\.plugins\org.eclipse.dltk.core.index.sql.h2\model.lock.db file.

.log file is:


!SESSION 2010-06-22 16:52:34.978 -----------------------------------------------
eclipse.buildId=I20100603-1500
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pl_PL
Framework arguments:  -product org.eclipse.epp.package.php.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.php.product

!ENTRY org.eclipse.core.resources 2 10035 2010-06-22 16:52:39.335
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.


Reproducible: Always

Steps to Reproduce:
1. Run eclipse
2. Choose a workspace
3. Eclipse starts loading workspace then hangs.
Comment 1 TR CLA 2010-06-22 10:59:11 EDT
Created attachment 172422 [details]
Loading Workbench hangs
Comment 2 TR CLA 2010-06-22 10:59:35 EDT
Created attachment 172423 [details]
PRocess activity while in the hang state.
Comment 3 TR CLA 2010-06-22 11:02:33 EDT
I have a second (backup) workspace, which works just fine.
The first one (original) cannot load.

I tried the "-clean" command line option but it does not help.
Comment 4 Prakash Rangaraj CLA 2010-06-22 12:28:01 EDT
> !ENTRY org.eclipse.core.resources 2 10035 2010-06-22 16:52:39.335
> !MESSAGE The workspace exited with unsaved changes in the previous session;
> refreshing workspace to recover changes.


   I guess the workspace might be corrupted due to an earlier crash. Does it hangs in a fresh workspace also?
Comment 5 tariq albabtain CLA 2010-06-23 05:34:59 EDT
Removing the .metadata folder and restarting eclipse works , but this is not a solution since the workbench gets wiped out.
Comment 6 tariq albabtain CLA 2010-06-23 05:36:17 EDT
I am experiencing this in 3.5.2 , and it happened several times.
Comment 7 TR CLA 2010-06-23 06:12:05 EDT
I created an empty workspace from scratch and it seems to work, but problem , however , remains.

Is there any way to reclaim the workspace settings ?

Is there any way to increase the verbosity of eclipse so that we know what kind of "workspace corruption" it is ?
Comment 8 Remy Suen CLA 2010-06-23 07:14:12 EDT
(In reply to comment #7)
> Is there any way to reclaim the workspace settings ?

Well, the settings are stored in your .metadata folder. If you have destroyed it then you're not going to get them back.

> Is there any way to increase the verbosity of eclipse so that we know what kind
> of "workspace corruption" it is ?

Not exactly. If a process appears to be hung, you should try to get a thread dump.
Comment 9 TR CLA 2010-06-23 07:33:40 EDT
(In reply to comment #8)
> (In reply to comment #7)
> > Is there any way to reclaim the workspace settings ?
> 
> Well, the settings are stored in your .metadata folder. If you have destroyed
> it then you're not going to get them back.

It's not that I destroyed it on purpose, It was eclipse that crashed :)

> 
> > Is there any way to increase the verbosity of eclipse so that we know what kind
> > of "workspace corruption" it is ?
> 
> Not exactly. If a process appears to be hung, you should try to get a thread
> dump.

I know that my suggestion may be beyond the scope of this ticket but it would be nice to have some kind of workspace data pre-check before it gets loaded and hangs the application...
Comment 10 Remy Suen CLA 2010-06-23 07:36:43 EDT
(In reply to comment #9)
> > Well, the settings are stored in your .metadata folder. If you have destroyed
> > it then you're not going to get them back.
> 
> It's not that I destroyed it on purpose, It was eclipse that crashed :)

What I mean to say is, did you just delete the .metadata folder, or did you just rename it/move it out of the way? Though, based on your response, it sounds like you deleted it.
Comment 11 TR CLA 2010-06-23 07:45:53 EDT
(In reply to comment #10)
> (In reply to comment #9)
> > > Well, the settings are stored in your .metadata folder. If you have destroyed
> > > it then you're not going to get them back.
> > 
> > It's not that I destroyed it on purpose, It was eclipse that crashed :)
> 
> What I mean to say is, did you just delete the .metadata folder, or did you
> just rename it/move it out of the way? Though, based on your response, it
> sounds like you deleted it.

I did not touch the "corrupted" workspace nor the .metadata folder inside. 
It stays intact awaiting  further analysis :)

To get my projects going I simply created _new_ workspace from scratch, with new .metadata folder inside, and imported all projects from the "corrupted" workspace.

Thus, I have now two workspaces now:
1) Corrupted workspace which I am unable to use (eclipse hangs)- preserved intact for further analysis.
2) New workspace which works fine.
Comment 12 Remy Suen CLA 2010-06-23 07:50:50 EDT
(In reply to comment #11)
> I did not touch the "corrupted" workspace nor the .metadata folder inside. 
> It stays intact awaiting  further analysis :)

If it is still there then you may be able to get around the problem by moving/renaming/deleting the .metadata/.plugins/org.eclipse.core.resources/ folder. You will be forced to re-import the projects so that Eclipse will become aware of them.
Comment 13 Boris Bokowski CLA 2010-07-30 17:06:20 EDT
Here is how you can generate a thread dump at the time Eclipse is hung. Please attach the thread dump file to this bug so that we can investigate further: http://wiki.eclipse.org/How_to_report_a_deadlock
Comment 14 Francis Upton IV CLA 2010-10-11 13:14:07 EDT
Need a thread dump before we can look at this further. Please reopen if you can provide that.