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

Bug 364047

Summary: breadcrumb taking almost 100% CPU usage in gtk stalling other actions
Product: [Eclipse Project] Platform Reporter: Tobias Richter <Tobias.Richter>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: arunkumar.thondapu, eclipse.felipe, ericwill, gheorghe
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Tobias Richter CLA 2011-11-17 10:37:14 EST
Build Identifier: 20110916-0149

enabling the breadcumbs in the Java editor uses up all available CPU for a certain subset of actions, so the GUI is somewhat still responsive but some actions never complete 
CPU usage will be typically 98% and the main thread will look like this:

"main" prio=10 tid=0x0000000040b4a000 nid=0xc98 runnable [0x00007f6362519000]
   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:2276)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3207)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
        ....

Bringing up the Breakpoints view then will display the view and decorations, but not the actual contents.

Switching off the breadcrumbs will immediately remedy the problem, CPU usage goes down, all pending actions are executed.

This is on Ubuntu 11.10 with gtk 3.2.0

Reproducible: Always

Steps to Reproduce:
1. Bring up Java editor
2. switch on and off breadcrumbs and monitor CPU usage
3.
Comment 1 Tobias Richter CLA 2011-11-18 09:57:07 EST
This is running xfce. A brief test with unity didn't give that problem.
Comment 2 Felipe Heidrich CLA 2011-11-21 10:33:37 EST
Arun, please try this out.
Comment 3 Arun Thondapu CLA 2011-11-21 12:51:16 EST
(In reply to comment #2)
> Arun, please try this out.

I don't have access to Ubuntu 11.10 right away but I'll try to install in a VM and test it out.
I can confirm that I don't face this problem with Unity and GNOME desktops on Ubuntu 11.04.
Comment 4 Eric Williams CLA 2017-03-14 14:51:50 EDT
I cannot reproduce this bug on Fedora 25, with GTK3.22 and Eclipse Oxygen.