Description
Version 2.44.0 of the lib gets shipped with the upgrade to Gnome 46 (more or less, maybe not a direct dependency).
This already happened on Arch, so it will be soon widespread on other distros.
Eclipse (and as a consequence STS) hangs then dump often, specifically when a popup is triggered by hovering on some elements and alike.
This is the typical hs_err_pidXXX.log confirming the issue after crash
--------------- T H R E A D ---------------
Current thread (0x000070cae0027180): JavaThread "main" [_thread_in_native, id=2169, stack(0x000070cae7614000,0x000070cae7714000)]
Stack: [0x000070cae7614000,0x000070cae7714000], sp=0x000070cae7710ef0, free space=1011k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libwebkit2gtk-4.1.so.0+0x10c690b]
The issue seems to be related to hardware acceleration in Wayland, so a suggested workaround is to use X server emulation, launching STS with
GDK_BACKEND=x11 STS
I can confirm it works, and that issue is still present in libwebkit2gtk 2.44.1 released a couple days ago.
The problem is tracked down upstream by Eclipse devs, but unfortunately it looks like a really old ghost-bug not even Gnome devs have been able to solve in years, so they decided to follow the same path of some official Gnome packages disabling hardware acceleration.
This is the fix pushed upstream
eclipse-platform/eclipse.platform.swt@d76f147
I'd suggest to realease a STS version based on a build including the fix.
Maybe latest milestone one?
https://github.com/eclipse-platform/eclipse.platform.swt/releases/tag/S4_32_0_M1
Cheers