Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349426

Summary: Content assist freezes Eclipse
Product: [Eclipse Project] Platform Reporter: Jörg von Frantzius <jfrantzius>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ericwill
Version: 3.6.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Jörg von Frantzius CLA 2011-06-15 08:54:04 EDT
Build Identifier: 

Not sure how I did it, but the content assist popup suddenly got frozen, and Eclipse doesn't respond anymore. The cursor is still blinking though. Eclipse is now eating up one of my CPUs, and a threaddump shows the following:


"main" prio=10 tid=0x09bba000 nid=0xd36 runnable [0xbf9de000]
   java.lang.Thread.State: RUNNABLE
        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:2237)
        at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1997)
        at org.eclipse.jface.internal.text.link.contentassist.CompletionProposalPopup2.displayProposals(CompletionProposalPopup2.java:673)
        at org.eclipse.jface.internal.text.link.contentassist.CompletionProposalPopup2.showProposals(CompletionProposalPopup2.java:225)
        at org.eclipse.jface.internal.text.link.contentassist.ContentAssistant2.showPossibleCompletions(ContentAssistant2.java:1266)
        at org.eclipse.jface.text.link.LinkedModeUI.triggerContentAssist(LinkedModeUI.java:824)
        at org.eclipse.jface.text.link.LinkedModeUI.switchPosition(LinkedModeUI.java:860)
        at org.eclipse.jface.text.link.LinkedModeUI.next(LinkedModeUI.java:799)
        at org.eclipse.jface.text.link.LinkedModeUI.enter(LinkedModeUI.java:718)
        at org.eclipse.jdt.internal.ui.text.java.ParameterGuessingProposal.apply(ParameterGuessingProposal.java:155)
        at org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal.apply(AbstractJavaCompletionProposal.java:477)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:928)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.verifyKey(CompletionProposalPopup.java:1321)
        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:1258)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
        at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1061)
        at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5957)
        at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5656)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
        at org.eclipse.swt.widgets.Widget.sendIMKeyEvent(Widget.java:1344)
        at org.eclipse.swt.widgets.Control.gtk_commit(Control.java:2662)
        at org.eclipse.swt.widgets.Canvas.gtk_commit(Canvas.java:160)
        at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1733)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4796)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4360)
        at org.eclipse.swt.internal.gtk.OS._gtk_im_context_filter_keypress(Native Method)
        at org.eclipse.swt.internal.gtk.OS.gtk_im_context_filter_keypress(OS.java:7588)
        at org.eclipse.swt.widgets.Control.filterKey(Control.java:2100)
        at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2834)
        at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:734)
        at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1743)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4796)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4360)
        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:8189)
        at org.eclipse.swt.widgets.Display.eventProc(Display.java:1238)
        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:2237)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3159)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
        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:620)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1408)


Reproducible: Couldn't Reproduce

Steps to Reproduce:
1. open content assist
2. don't know unfortunately, maybe switch to a different window while popup was opening up.
Comment 1 Jörg von Frantzius CLA 2011-06-15 08:57:38 EDT
Build Identifier: 20110301-1815, Helios Service Release 2

SWT plugin versions: 

org.eclipse.swt.gtk.linux.x86_3.6.2.v3659b.jar
org.eclipse.swt_3.6.2.v3659c.jar
Comment 2 Jörg von Frantzius CLA 2011-06-15 08:59:11 EDT
System is:

2.6.38-8-generic-pae #42-Ubuntu SMP Mon Apr 11 05:17:09 UTC 2011 i686 i686 i386 GNU/Linux
Comment 3 Eric Williams CLA 2017-03-14 14:19:00 EDT
I cannot reproduce this issue. Given the age of the bug, I am going to close this. Please file a new bug against Oxygen if the issue pops up again.