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

Bug 390153

Summary: Eclipse writes out corrupt settings file
Product: [Eclipse Project] Platform Reporter: Scott Porter <scott>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: david_williams, pwebster
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Error log from Eclipse
none
Settings file (xmi) none

Description Scott Porter CLA 2012-09-23 11:45:02 EDT
I was having issues with Eclipse being very slow to change tabs, and seemingly slow with general usage, and found that deleting the settings file found at ~workspace\.metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi solves the issue.

I assume Eclipse is writing out corrupt settings, then upon restarting they're loaded back in and it's constantly throwing errors or something internally.

I've noticed this bug has been reported before, years ago, and was never fixed, so leaving this report here to hopefully help someone else.

So, just delete the workbench.xmi file before starting Eclipse, and it'll work much faster if you're having this issue. I've decided to change the security settings on that directory to deny Eclipse access to write to it, and since then have had no issues with it working slowly.
Comment 1 David Williams CLA 2012-09-23 16:51:09 EDT
(In reply to comment #0)

> 
> I've noticed this bug has been reported before, years ago, and was never
> fixed, 

What was that bug number? 


It would be helpful if you could attach what you think is the corrupt file, as well as the log with tons of error messages since that would help figure out the root cause. (its not impossible, but unlikely to literally be a corrupt xmi file ... but ... a) could be and b) could indicate some sort of incompatible or incomplete installation or something. 

Thanks for reporting.
Comment 2 Paul Webster CLA 2012-09-24 07:58:17 EDT
Was anything written into your error log?  <workspace>/.metadata/.log

PW
Comment 3 Scott Porter CLA 2012-10-01 17:10:39 EDT
(In reply to comment #2)
> Was anything written into your error log?  <workspace>/.metadata/.log
> 
> PW

Yes, I've changed the permissions so that Eclipse can now write out the settings file again, and it's once again very slow. It looks like it's spewing lots of errors into the log - attached.
Comment 4 Scott Porter CLA 2012-10-01 17:11:12 EDT
Created attachment 221745 [details]
Error log from Eclipse
Comment 5 Scott Porter CLA 2012-10-01 17:18:42 EDT
Created attachment 221746 [details]
Settings file (xmi)

This is the settings file used by Eclipse when throwing the errors into the log file attached above.
Comment 6 Scott Porter CLA 2012-10-01 17:34:06 EDT
Ah, I think this is a dupe of Bug 385195 . I've updated the PHP PDT and it appears to have stopped logging errors. Closing, thanks!

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