WIllJBD
WIllJBD

Reputation: 6164

Eclipse crashed, works space now can't be opened, and importing the projects wont work either

Eclipse crashed, works space now can't be opened, and importing the projects wont work either. That about explains it all right there.

Creating a new workspace, I still cant import any of the projects. It acts like it is about to, but then nothing.

Any ideas? Not all of the projects are on svn.

Here are some of the errors i see in the crash reports

The file has been changed on disk, and it now contains invalid information. The project will not function properly until the description file is restored to a valid state.

Premature end of file.

does not exist

and the message that appeared before it all crashed and burned

java.lang.OutOfMemoryError: Java heap space

NEW INFO

every single file in every single on of my projects, now has a size of 0kb. all the files exist, but every .png, .jpg .class .xml is empty with a size of 0kb

Upvotes: 0

Views: 1670

Answers (5)

mutsu
mutsu

Reputation: 76

The "NEW INFO" section makes it look like you are out of disk space on the system. Have you checked?

Upvotes: 0

Snake
Snake

Reputation: 805

Close eclipse. Copy your wanted project files (ie. workspace\Homework) to a temp directory, not the entire workspace. Start eclipse. Create a new workspace (you stated you could). Delete the old workspace (might be able to this before previous step). Import project from temp directory into new workspace. Save! Close and re-open eclipse.

Upvotes: 0

Mario Rossi
Mario Rossi

Reputation: 7799

I have had similar trouble with corrupted workspaces in the past. They don't load even in a fresh copy of Eclipse.

What has helped me is deleting/renaming file myWorkspace/.metadata/.plugins/org.eclipse.core.resources/.snap

Sometimes also deleting *.snap files.

Please backup the whole workspace (including projects) first!

Upvotes: 0

Sourabh Saldi
Sourabh Saldi

Reputation: 3587

try editing eclipse.ini file.

put put -Xms512m -Xmx1024m

then try to restart eclipse it should work!!

Upvotes: 1

gaijin
gaijin

Reputation: 185

Can you install a second instance of Eclipse and point it at the workspace? I've done this with the ADT on my mac before.

Upvotes: 0

Related Questions