Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 178988 - Crash at startup due to ".snap" files
Summary: Crash at startup due to ".snap" files
Status: RESOLVED DUPLICATE of bug 151075
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-23 08:45 EDT by Bogdan Butnaru CLA
Modified: 2008-04-30 06:20 EDT (History)
3 users (show)

See Also:


Attachments
one of the crash-causing files (89.16 KB, application/octet-stream)
2007-03-23 08:47 EDT, Bogdan Butnaru CLA
no flags Details
second crash-causing file (32 bytes, application/octet-stream)
2007-03-23 08:48 EDT, Bogdan Butnaru CLA
no flags Details
log file at time of crash (49.60 KB, text/x-log)
2007-03-23 08:49 EDT, Bogdan Butnaru CLA
no flags Details
previous log (1008.48 KB, text/x-log)
2007-03-23 08:51 EDT, Bogdan Butnaru CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan Butnaru CLA 2007-03-23 08:45:43 EDT
Build ID: M20060921-0945 (Ubuntu version: 3.2.1-2ubuntu1)

Steps To Reproduce:
Not exactly sure, see below. It might work with a couple attached files.

More information:
Hi! Ok, this is not really reproducible, but maybe someone is able to do something about it.

I noticed today Eclipse wouldn't start. It told me to check the log in [workspace]/.metadata/.log for errors, and stopped. I tried running it with -clean, that had the same effect. (I'll post the logs below.)

After messing with the ~/.eclipse and [workspace]/.metadata directories for a couple of hours, I narrowed the problem down to two files: [workspace]/.metadata/.plugins/org.eclipse.core.resources/.snap and [same path]/.root/.markers.snap

If either of these two files is present in the workspace, Eclipse refuses to start. I can provide both files, and the logs from the first few times I encountered the error. I know this isn't much, and it's probably not possible to find out what happened to the files (I suspect a botched update) but the crash should be fixed.

(If I could fix things by deleting the (probably) malformed files, so should Eclipse. It shouldn't be show-stopper.)

I don't know what caused the error in the first place. I used Eclipse through SSH, though, and it might have crashed a couple times due to network issues.
Comment 1 Bogdan Butnaru CLA 2007-03-23 08:47:35 EDT
Created attachment 61809 [details]
one of the crash-causing files

found in [workspace]/.metadata/.plugins/org.eclipse.core.resources/
Comment 2 Bogdan Butnaru CLA 2007-03-23 08:48:11 EDT
Created attachment 61810 [details]
second crash-causing file

found in [workspace]/.metadata/.plugins/org.eclipse.core.resources/.root/
Comment 3 Bogdan Butnaru CLA 2007-03-23 08:49:51 EDT
Created attachment 61811 [details]
log file at time of crash

I saved the logs in a different directory after one or two crashes, before I started experimenting.
Comment 4 Bogdan Butnaru CLA 2007-03-23 08:51:13 EDT
Created attachment 61812 [details]
previous log

Included previous log, might contain a hint of the cause. Both logs are from [workspace]/.metadata
Comment 5 Krzysztof Daniel CLA 2008-02-19 03:59:47 EST
Bogdan

Snap file are used when Eclipse is recovering after crash. If Eclipse from some reason is not able to parse that files it will not start. As far as I know eclipse was supposed to ignore errors in snap files, but it seems that you have found some exceptional situation.

It is very important that you provide reproductible testcase, I mean that .snap file and workspace. It would be nice if you described what were you doing before Eclipse crashed.

Regards,
Chris
Comment 6 Szymon Brandys CLA 2008-04-30 06:20:36 EDT
Looking at the attached log, it looks like a duplicate of bug 151075.

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