After Eclipse is started, "Decoration Calculation" is reported, and the problem analysis and solution are abnormal. eclipse crashes.

Source: Internet
Author: User
Tags gc overhead limit exceeded

After Eclipse is started, "Decoration Calculation" is reported, and the problem analysis and solution are abnormal. eclipse crashes.

My Segmentfault https://segmentfault.com/a/1190000007903170

 

I. symptom

As usual, I imported a new project from ClearCase (similar to SVN) to the company for development. After the import, Eclipse started to pop up and reported an error as follows:

At this time, you can choose to close the dialog box, but then Eclipse will pop up a new dialog box (probably means that the software runs wrong and you need to close Eclipse immediately ). Of course, you can close this dialog box, but soon you will find that the system is getting stuck. Open the background Task Manager and you will find that the physical memory is basically exhausted. Then, you will find that the memory usage of a process named javaw.exe is high and continues to grow.

Ii. Problem Analysis 1. First problem

According to the error message, the literal meaning of "Decoration Calculation" (decorative computing) cannot be understood through the Chinese translation. After checking the information for half a day, I did not understand what module the problem was, however, there are not a few people who report errors online and provide solutions.
1. Eclipse: An internal error occurred during: "Build Project". GC overhead limit exceeded
2. (Eclipse) An internal error occurred during: "Decoration Calculation". java. lang. StackOverflowError in Ubuntu 14.10
3. solve An internal error occurred during: "Decoration Calculation"

The problem basically points to the fact that the memory of the Java Virtual Machine is too low (another error message "Java heap space" also indicates this problem may exist). We recommend that you modify the Eclipse. ini configuration file.To increase the available memory of the JVM, I am very happy to think that this problem can be solved. Sorry, no matter how many times you restart Eclipse and how many times you re-import the project, the problem still exists.

At first, I thought that the available memory settings were too small, so I kept increasing the value and adjusted the latency to 1024 m. Eclipse couldn't start directly, and a prompt box popped up, it probably means that you set this value too casually. You just need to change it back (joke :)). It means that this value cannot be set at will. I want to adjust it to a critical value of MB, or not.

After two days, I gave up and thought about it.The first thing to do is to Close the Project first and soon discover that Eclipse is ready, which can basically eliminate Eclipse problems.But what is wrong with the imported project? The point is that it's okay for other colleagues to import data...

I made repeated comparisons with my colleagues on the Eclipse interface and found a detail,The icons of the imported project are different.(Web project), while mine is(Java Project). When I asked my colleagues, this project is a Web project, and there is a feeling of tears in the moment. If I knew how good this would be...

It is basically determined that it is an import problem, so I began to delete it repeatedly and then import it. After N attempts, I succeeded (luck is enough, and people are too weak ), the problem is finally solved. Of course, there is also a more violent solution (not recommended), that is, to manually change the Java project to a Web project (if there are many online tutorials, we will not list them ).

2. Second Error

Unfortunately, the same problem also occurs when we import the company's new Java project later. Even more sadly, the Web project imported last time was inexplicably identified as a Java project, and this problem is endless...

Later I thought it was because of the import from ClearCase (similar to SVN), So I deleted both projects first, and thenUse import to manually import (Existing Projects into Workspace ). Quietly waited for a few minutes and found that Eclipse was still quietly lying there without crying. It seems that the problem was solved!

Later, we will recall that the compatibility between ClearCase (similar to SVN) and native Eclipse is also a problem. Why? ClearCase is customized by Rational, and Eclipse is also a customized version (VEclipse for short). It is no problem to use VEclipse to import the project from ClearCase. For work reasons, I need to temporarily use native Eclipse to import the project from ClearCase to solve some problems. But fortunately, the problem is solved temporarily.

Iii. Solution

The problem solving process is a bit tortuous, so the previous problem analysis is a bit long. The solution is briefly described as follows:

1. Confirm the import recognition of Eclipse. Check whether the imported project is a Web project or a Java project, and then check whether the icon (/) is correct;

2. Try to delete and import again. Confirm that the identification is correct and the problem persists. Try to delete the project from Eclipse (do not select Delete from local hard disk at the same time) and then import the project. If the review fails three or four times, try again;

3. import the project manually. If your project is managed using SVN, do not use the "import-Checkout Projects from SVN-import from SVN library" method, instead, use "import-Existing Projects into Workspace-select the local path of the project;

If the problem persists, provide feedback and description. Or you can leave a message to share it. :)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.