-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ContentAssist / CompletionScanner running into deadlock #1100
Comments
Confirmed for 2023-06 (Win 10 & Win 11). Now the Task will never stop and consume ~1 CPU-Core forever. Even after the affected file is deleted from workspace. Only fix is to reboot the whole IDE. |
Here the snippet I've used and it is reproducible at current master in plain SDK
Thread below will run in endless loop:
@Kademlia : I'm not sure how your snippet should finally look like, and why do you have such strange code (it doesn't compile). Is it supposed to look like this below may be? Just trying to understand your use case, hanging thread is without doubt not OK.
|
@iloveeclipse |
OK, I see it now. So you've tried to refactor the code basically to something like in my smaller snippet, and during this you've opened content assist on "unfinished" code. @srikanth-sankaran: are you familiar with the code in question (see stack in comment above)? |
I was familiar long ago. I will add this to my queue. |
Hmm. A very interesting bug! The CompletionParser sees a lambda expression in the code while the normal parser (correctly) sees none! Looking into it ... |
empty statements * Fixes eclipse-jdt#1100
* Ensure that attempts to nudge recovery along don't stuck reducing empty statements * Fixes #1100
* Ensure that attempts to nudge recovery along don't stuck reducing empty statements * Fixes eclipse-jdt#1100
* Ensure that attempts to nudge recovery along don't stuck reducing empty statements * Fixes eclipse-jdt#1100
Hey,
I recently ran into a case that would freeze up Eclipse completely trough the ContentAssist-Popup.
Freeze seems to be originating from AsyncCompletionProposalPopup inner Lambda expression.
I was able to roughly reproduce this with a unedited version of eclipse-java-2023-03-R-win32-x86_64. The IDE freezes nearly the whole computer for about 20 seconds (5950x 16 core), content Assist fails with OutOfMemoryException in the end. Writing "boolean test" and pressing CTRL+Space as shown in the screenshot will cause CPU/Mem to spike.
openjdk 17.0.6 2023-01-17
OpenJDK Runtime Environment JBR-17.0.6+10-829.5-jcef (build 17.0.6+10-b829.5)
All of the load seems to come from created instances of CompletionScanner < CompletionJavadocParser < CompletionParser < AssistParser < CompletionParser
Timestamp of this happening: https://www.twitch.tv/videos/1831458336?t=05h40m22s
Minified example code freezing my instance:
Originally posted by @Kademlia in #1098 (comment)
The text was updated successfully, but these errors were encountered: