Bug 545809 - [GTK] Freeze and 100% load while showing hovers
Summary: [GTK] Freeze and 100% load while showing hovers
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.10   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2019-03-26 11:58 EDT by Rafael Chaves CLA
Modified: 2021-06-22 07:45 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Chaves CLA 2019-03-26 11:58:43 EDT
I am seeing the same 100% CPU usage and a partially drawn rectangle as reported in bug 370215, however with Eclipse 4.10 (build id: 20181206-0815), I believe both when hovering a symbol reference, and when opening an auto-complete pop-up.

This is not reproducible at will, but happens from time to time, so I suspect some race condition between the UI responding to a user action and to some background event, such as when hitting a breakpoint or completing the execution of a statement.

Console output from running with SWT_LIB=1:

SWT_LIB_Gtk:3.18.9 (Dynamic gdbus)
SWT_LIB GDbus firing up. Implementation v1.5
SWT_LIB  Webkit2   Webkitgtk:2.20.5  (webkitgtk >=2.5 is Webkit2)  SWT Glue code version: 54.0 info: +BrowserFunction/GDBus, +WebkitExtension Folder versioning, +WebKitExtension OSGI support, +setUrl(..postData..), -setCookie(), -getCookie +mouseDown/Focus
Comment 1 Rafael Chaves CLA 2019-03-26 11:58:56 EDT
Also, just for completeness, I see a few messages like this on the console, probably not related, but here you are:

*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug
Comment 2 Eric Williams CLA 2019-03-27 10:02:06 EDT
I see freezes from time to time as well, especially when hovering over something or doing Ctrl + hover. Of course it's not very reproducible at all, seems to happen almost randomly.
Comment 3 Cindy Putri CLA 2021-06-22 07:45:50 EDT
I'm also experiencing freeze when hovering.

Console output with "export SWT_LIB_VERSIONS=1" and "./eclipse" :
SWT_LIB_Gtk:3.24.20 (Dynamic gdbus)
SWT_LIB GDbus firing up. Implementation v1.5

Installation Details:
eclipse.buildId=4.20.0.I20210611-1600
org.eclipse.swt.internal.gtk.theme=Adwaita
org.eclipse.swt.internal.webkitgtk.version=2.32.0


After debugging and looking at the stack dump shared in bug 370215, it seems to be stuck in a while loop at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:2917):

do {
	if (GTK.GTK4) {
		OS.g_main_context_iteration (0, false);
	} else {
		GTK3.gtk_main_iteration_do (false);
	}
	if (isDisposed ()) break;
	iconic = minimized || (shell != null && shell.minimized);
} while (!mapped && !iconic);