Community
Participate
Working Groups
While typing or when invoking the "content assist" command Eclipse may hang and never recover. For example, when typing "std::". The hang makes all UI non-responsive, it doesn't even redraw when the window is resized. Sometimes it recovers after a long time (about 15 seconds) and complains about the "Parsing-based proposals (Task-Focused)". OS task manager shows a lot of I/O activity. This hang wasn't occurring in Neon.1, it has appeared in Neon.2.
Could you please follow the instructions here [1] to obtain a stack trace of all threads during the hang, and post it here as an attachment? Thanks! [1] https://wiki.eclipse.org/How_to_report_a_deadlock
Created attachment 267345 [details] stack trace stack trace during the hang
Created attachment 267346 [details] stack trace stack trace during the hang
Created attachment 267347 [details] stack trace stack trace during the hang
Created attachment 267348 [details] stack trace stack trace during the hang
Created attachment 267349 [details] stack trace stack trace during the hang
Created attachment 267350 [details] stack trace stack trace during the hang
These six stack traces are during the same content assist lookup.
In each of the posted strack traces: - The main thread is running (as opposed to being blocked on another thread). - It is reading from the disk, as part of doing an index lookup while running content assist. This in and of itself does not indicate any problem, except of course that it shouldn't be taking so long. A few questions: - You mentioned this is a regression from Neon.1 to Neon.2. Is it only content assist performance that has regressed, or has the performance of other things regressed as well, such as the amount of time it takes to rebuild the index? - Does increasing the cache limits near the bottom of Preferences -> C/C++ -> Indexer improve performance? - Is your workspace directory on a hard disk or SSD? If it's on a hard disk, and you have an SSD available, does moving it to the SSD improve performance?
Index rebuild time is not affected. Refactoring "rename variable" got worse, but it's probably a different bug that was present in Neon.1 too (there it was for "rename file" instead): the refactoring is stuck unless you jiggle the window - move/resize/minimize/maximize. Increasing cache limits doesn't change the behavior (30%, 1024, 256, -Xms512m, -Xmx4096m). It's HDD, no SSD available.
Very strange. How large is your project (files / lines of code)? How large is your index database file (<workspace>/.metadata/.plugins/org.eclipse.cdt.core/<project>.<timestamp>.pdom)?
DB is 2.7 GB, project is chromium (70k files, 675kloc). The other one is 40 MB (450 files, 35kloc).
(In reply to Chip D from comment #12) > project is chromium Oh, that's interesting - since that's an open-source project, I may be able to replicate your problem. Do you know if others using CDT to develop chromium are experiencing the same issue? Anyways, if you describe how you set up CDT for working on chromium, and then an example of a place where content assist hangs for you, I can try to replicate your setup and see if the hang occurs for me.
Getting the 'webrtc' repo via gclient: $ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git $ export PATH=`pwd`/depot_tools:"$PATH" $ mkdir webrtc-checkout $ cd webrtc-checkout $ fetch --nohooks webrtc $ gclient sync That's from these two links: http://dev.chromium.org/developers/how-tos/install-depot-tools https://webrtc.org/native-code/development/ In short, this gets sources for the Google's native WebRTC. It takes a day to download, so I haven't actually repeated these steps. Then create an empty Eclipse workspace and an "Empty C++ Project (Linux GCC)", link the webrtc-checkout/src directory via Project -> Properties -> Paths and Symbols -> Source Location -> Link Folder -> folder in the filesystem. Wait for the index to finish. (this part I've repeated) Typing things like 'std::' and 'base::' may hang.
I am facing the same problem with Eclipse 2020.03 but with JDT. It may be the same or a similar problem or something entirely different. However, I will attach some thread-dumps for a single content-assist that never terminated and made Eclipse hang forever. Restarting Eclipse does not help. The next content-assist in JDT Editor is making it freeze again. Maybe the problem goes away if I create a new workspace. I can test this if you like.
Created attachment 283785 [details] Thread-Dump of Eclipse hanging during content-assist.
Created attachment 283786 [details] Thread-Dump of Eclipse hanging during content-assist (2).
Created attachment 283787 [details] Thread-Dump of Eclipse hanging during content-assist (3).
Hi, i have the same issue with Eclipse and java development
(In reply to Roman A. from comment #19) > Hi, i have the same issue with Eclipse and java development Hi Roman - this bug covers content assist hanging in C/C++ development. The code of Java code completion is generally separate so if you have a test case it would be best to file a bug for the Java development team: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JDT