Red Hat Bugzilla – Bug 162169
Bad: Eclipse with CDT runs out of memory when building
Last modified: 2007-11-30 17:11:09 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050623 Fedora/1.0.4-5 Firefox/1.0.4
Description of problem:
When I use eclipse I get out of memory errors. It says that I can increase the heap size with some command line arguements. I haven't tried these. But this used to not happen and does not when using the sun jvm, only with gcj. It specifically happens when I use cdt and and have a c/c++ project that has multiple files and I rebuild. A single files doesn't seem to cause the problem. This problem only happens at the build stage.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a c/c++ project with lots of files (probably easier to import something)
2. Allow eclipse to build (either automatic or manual)
3. get error.
Actual Results: I got my out of memory error I always get.
Expected Results: No out of memory error and everything working.
if launched in a terminal this is the output:
Reaped unknown child pid = 7223
Reaped unknown child pid = 7225
Unhandled event loop exception
Failed to execute runnable (org.eclipse.jface.util.Assert$AssertionFailedException: null argument;)
Reaped unknown child pid = 7256
GC Warning: Repeated allocation of very large block (appr. size 89837568):
May lead to memory leak and poor performance.
GC Warning: Out of Memory! Returning NIL!
Unhandled event loop exception
An error also appears in one of the Debug/srcfile.d files which says:
warning: NUL character seen; rest of line ignored
The problem with this bug report is that it isn't specific.
If we're to duplicate your problem, we need, for example, a public repository
that you have tried and that generated an error. Then, we can try the same
repository to see if it does the same for us.
Alright, I meant to get back to this quicker but couldn't. I am still getting
this with rawhide as of august 4th. I did some more investigating and I've
confirmed that it does not happen with sun java. I'm also attatching a project
that causes the error. I think the error must be related to how I have set the
project up ot use pkg-config. I can't get the error if I don't set it up that
way. The steps to produce the error are to open the project, build, launch,
then change the source (adding a space somewhere works well) and then
rebuilding. When the rebuild happens it will not build and end with the
warning: NUL character seen; rest of line ignored and eat up some memory. To
build again just clean the project and then you can repeat. While this project
doesn't cause the out of memory error on the first rebuild I am pretty sure that
is just because of the size of the project. If there is something specific i
can do to get more information I'd be happy to do it.
Created attachment 117483 [details]
This still happens for me with current Fedora Rawhide (October 28 2005). It
doesn't happen if I use a standard make project. Only a managed project. When
I was creating managed projects I was addes pkg-config parameters by just adding
them to the miscelaneous areas in the build options. After that it begins
eating memory pretty fast until it runs out.
Does this happen with the FC4 packages?
Closing due to lack of response.