Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 309182 - Eclipse hangs when content proposal comes up
Summary: Eclipse hangs when content proposal comes up
Status: CLOSED DUPLICATE of bug 293995
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-14 14:17 EDT by Ian Bull CLA
Modified: 2010-04-14 14:32 EDT (History)
1 user (show)

See Also:


Attachments
Entire stack dump (20.89 KB, application/octet-stream)
2010-04-14 14:17 EDT, Ian Bull CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Bull CLA 2010-04-14 14:17:17 EDT
Created attachment 164864 [details]
Entire stack dump

I'm running on 0413 (and I've seen this before too), and sometimes the content assist causes Eclipse to lock up. (The content assist windows comes up, and Eclipse hangs). I noticed when using Ctrl+1 on an expression (with the intention of assigning the expression to a local variable).


Running jstack I did notice (I've attached the full stack dump)
"main" prio=10 tid=0x0980d800 nid=0x6d62 waiting for monitor entry [0xbf94b000]
   java.lang.Thread.State: BLOCKED (on object monitor)
        at org.eclipse.jdt.internal.ui.text.correction.proposals.ChangeCorrectionProposal.getChange(ChangeCorrectionProposal.java:300)
        - waiting to lock <0x7239ba00> (a org.eclipse.jdt.internal.ui.text.correction.proposals.AssignToVariableAssistProposal)
        at org.eclipse.jdt.internal.ui.text.correction.proposals.ChangeCorrectionProposal.performChange(ChangeCorrectionProposal.java:119)
        at org.eclipse.jdt.internal.ui.text.correction.proposals.CUCorrectionProposal.performChange(CUCorrectionProposal.java:323)
        at org.eclipse.jdt.internal.ui.text.correction.proposals.CUCorrectionProposal.apply(CUCorrectionProposal.java:301)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:935)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertSelectedProposalWithMask(CompletionProposalPopup.java:881)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.verifyKey(CompletionProposalPopup.java:1307)
        at org.eclipse.jface.text.contentassist.ContentAssistant$InternalListener.verifyKey(ContentAssistant.java:806)
        at org.eclipse.jface.text.TextViewer$VerifyKeyListenersManager.verifyKey(TextViewer.java:489)
        at org.eclipse.swt.custom.StyledTextListener.handleEvent(StyledTextListener.java:65)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1223)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1247)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1232)
        at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1051)
        at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5944)
        at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5643)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1223)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1247)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1232)
        at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1259)
        at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:720)
        at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2833)
        at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:707)
        at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1696)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4779)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4350)
        at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
        at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8130)
        at org.eclipse.swt.widgets.Display.eventProc(Display.java:1239)
        at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
        at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2191)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3149)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2416)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2380)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2229)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:504)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:497)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 1 Ian Bull CLA 2010-04-14 14:18:13 EDT
Sorry, I was running 0406.
Comment 2 Markus Keller CLA 2010-04-14 14:32:04 EDT
I thought this wouldn't happen in the SDK, but this bug proved we that we need a fix for 3.6.

*** This bug has been marked as a duplicate of bug 293995 ***