Eclipse C++ indexer stopped working for the Chromium codebase

863 views
Skip to first unread message

Tai-hsu Lin

unread,
Dec 26, 2012, 11:40:48 PM12/26/12
to chromi...@chromium.org
Hi, 

I have returned to work this morning and found that Eclipse can no longer properly index the chromium codebase. Index->Rebuild stopped prematurely without any error message or screen freezing and the indexing is incomplete. I have also tried to re-create the project/workspace but they didn't work either. Does anyone encounter the same problem as well?

I am asking the problem because I rely heavily on Eclipse for efficiently browsing/editing the code. Please let me know if you have any idea. I am using Eclipse 3.8.0.

Thanks!

Pavel Ivanov

unread,
Dec 27, 2012, 12:51:19 AM12/27/12
to shec...@google.com, Chromium-dev
Look at Window -> Preferences -> C/C++ -> Indexer -> Cache limits. I
had to set relative limit to 75% and absolute limits to some crazy big
numbers to allow indexer to complete.

Pavel
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev

Tai-hsu Lin

unread,
Dec 27, 2012, 1:44:29 AM12/27/12
to Pavel Ivanov, Chromium-dev
This does solve my problem. Thanks a lot!!!

Stefan Schmitz

unread,
Dec 27, 2012, 2:45:01 PM12/27/12
to paiv...@gmail.com, shec...@google.com, Chromium-dev
Eclipse Help (Search for "Running Eclipse") indicates how to increase the Java heap memory from its default of 384MB.  I tried it together with your suggestion and, finally, indexing succeeded.

I used the following env vars and command line to start eclipse:

   export ECLIPSE_MEM_START="4096M"
   export ECLIPSE_MEM_MAX="8192M"

   eclipse -vmargs -Xmx2048M

Paweł Hajdan, Jr.

unread,
Dec 27, 2012, 5:38:12 PM12/27/12
to ssch...@chromium.org, paiv...@gmail.com, shec...@google.com, Chromium-dev
Looks like this has been documented on https://code.google.com/p/chromium/wiki/LinuxEclipseDev .

Please update that document if necessary (note: I don't use Eclipse, IMHO it's too heavy).

Tai-hsu Lin

unread,
Dec 27, 2012, 11:34:24 PM12/27/12
to Paweł Hajdan, Jr., ssch...@chromium.org, Pavel Ivanov, Chromium-dev
Hi,

I tried the suggestion in the link before, but it didn't work alone without Pavel's suggestion. I believe setting cache limits is essential at least for the most current Chromium codebase. I don't have the edit permission to update the doc though. Pawel, could you either grant me the permission or help us update it? Thanks.

Ivan Pupkin

unread,
Sep 17, 2014, 5:36:31 AM9/17/14
to chromi...@chromium.org
Reply all
Reply to author
Forward
0 new messages