You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Eclipse crashes after upgrade of libwebkit2gtk to 2.44.x #1230
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
Thanks @4javier for the details summarized here, much appreciated. The fix will be included in the 4.23.0 release, which will be based on the Eclipse 2024-06 release (the Eclipse release that will include this fix in SWT).
As expected, issue still present with STS 4.22.1 released two days ago.
Not a surprise considering it's based on Eclipse 4.31 branch.
Note: now it looks like crashing directly on hover on a symbol, without even showing any popup, but at least doesn't pull down the whole Gnome.
Still working if launched with X emulation backend.
Just tried:
that one opens correctly the popup hovering on a symbol, but after that, when hovering on a brach of the path of the symbol itself in the popup (action that should show into same modal javadoc for the highlighted class) it kills the whole DE (always Gnome with Wayland backend).
P.S.:
there's a typo in the download page, the last nightly is 2024-06, not 2023
I am facing the same issue, my STS keeps on crashing whenever I start typing something.
My STS details :
Spring Tool Suite 4
Version: 4.22.1.RELEASE
Build Id: 202405011620
Revision: 71bcc7a580385ea1ae7aa7af1ae8bef30aaea50a
Copyright (c) 2007 - 2024 Broadcom
All rights reserved. Visit https://spring.io/tools
This product includes software developed by the
Eclipse Foundation https://www.eclipse.org
This product includes software developed by the
Apache Software Foundation https://www.apache.org
Lombok v1.18.24 "Envious Ferret" is installed. https://projectlombok.org/
@akhil-finvasia Since this is an upstream issue in Eclipse/SWT, please join the discussion in the referenced issue and - if possible - provide your details over there. As soon as the fix becomes available, we can include that in the snapshot builds of the Spring Tools distribution builds. Until then, I hope that the mentioned workarounds work for you as well.
Just remember that what made the difference for me, was the upgrade of wayland to 4.23.0.
It landed in official repo for Arch Linux, can't say for other distros.
Activity
martinlippert commentedon Apr 15, 2024
Thanks @4javier for the details summarized here, much appreciated. The fix will be included in the
4.23.0release, which will be based on the Eclipse 2024-06 release (the Eclipse release that will include this fix in SWT).In the meantime, we also already run snapshot builds for the Eclipse 2024-06 milestone builds, so you can get an early snapshot build of Spring Tools 4 for Eclipse
4.22.1on Eclipse 2024-06 milestones from https://cdn.spring.io/spring-tools/snapshot/STS4/nightly-distributions.html. The latest snapshot build for Eclipse 2024-06 should include the fix already. Would you be interested to give that a try?4javier commentedon Apr 15, 2024
Unfortunately, nightly build kills the whole gnome-shell in the same situation
Version: 4.22.1.202404142003-SNAPSHOTmartinlippert commentedon Apr 15, 2024
Does Eclipse 2024-06 M1 itself also crashes?
https://download.eclipse.org/eclipse/downloads/drops4/S-4.32M1-202404061800/
4javier commentedon Apr 15, 2024
Yes, same issue.
I'll report it that in upstream tracker.
tntra-dhananjay commentedon Apr 23, 2024
Facing same issue with
Spring Tool Suite 4
Version: 4.21.0.RELEASE
Build Id: 202312011804
Revision: 37b0678
martinlippert commentedon Apr 23, 2024
@tntra-dhananjay The mentioned workaround works for you as well?
goarvic commentedon Apr 23, 2024
Facing same issue.
The workaround suggested by @4javier launching with GDK_BACKEND=x11 STS is working
tntra-dhananjay commentedon Apr 24, 2024
@martinlippert - following solution worked for me
Added WEBKIT_DISABLE_COMPOSITING_MODE=1 in Exec
Exec=env WEBKIT_DISABLE_COMPOSITING_MODE=1 ./sts-4.22.0/SpringToolSuite4 --limit-modules %f
nated099 commentedon Apr 25, 2024
Thank you!
4javier commentedon May 6, 2024
As expected, issue still present with STS 4.22.1 released two days ago.
Not a surprise considering it's based on Eclipse 4.31 branch.
Note: now it looks like crashing directly on hover on a symbol, without even showing any popup, but at least doesn't pull down the whole Gnome.
Still working if launched with X emulation backend.
martinlippert commentedon May 6, 2024
@4javier Can you give the latest early snapshot builds on Eclipse 2024-06 from https://cdn.spring.io/spring-tools/snapshot/STS4/nightly-distributions.html a try?
4javier commentedon May 6, 2024
Just tried:

that one opens correctly the popup hovering on a symbol, but after that, when hovering on a brach of the path of the symbol itself in the popup (action that should show into same modal javadoc for the highlighted class) it kills the whole DE (always Gnome with Wayland backend).
P.S.:
there's a typo in the download page, the last nightly is 2024-06, not 2023
akhil-finvasia commentedon May 7, 2024
I am facing the same issue, my STS keeps on crashing whenever I start typing something.
My STS details :
My system information

Error Log file :
hs_err_pid18511.log
hs_err_pid15600.log
hs_err_pid14282.log
hs_err_pid3304.log
hs_err_pid9943.log
martinlippert commentedon May 7, 2024
Thanks for pointing that out, fixed with 1d927b7 (might take a little while until it promotes to the page)
martinlippert commentedon May 7, 2024
@akhil-finvasia Since this is an upstream issue in Eclipse/SWT, please join the discussion in the referenced issue and - if possible - provide your details over there. As soon as the fix becomes available, we can include that in the snapshot builds of the Spring Tools distribution builds. Until then, I hope that the mentioned workarounds work for you as well.
MikeT3ch commentedon May 11, 2024
This works for me, I'm using Fedora 39 Gnome, sts 4.22.1.RELEASE, java 17.
MikeT3ch commentedon May 11, 2024
Nevermind, crash when I open the marketplace windows
4javier commentedon May 11, 2024
Just try the X11 backend
GDK_BACKEND=x11 STSMTactic commentedon May 11, 2024
Its working now, thanks!
4javier commentedon Jun 1, 2024
Just an update:
after updating
waylandto 4.23.0, Eclipse 4.32M1 and STS snapshot 4.23 based on it look like working again with no quirks needed.martinlippert commentedon Jun 5, 2024
@4javier Thanks for the update on this. With that, I will go ahead and close this issue as fixed. Would be great if people observing this issue could give the latest nightly builds on Eclipse 4.32 a try: https://cdn.spring.io/spring-tools/snapshot/STS4/nightly-distributions.html. That will turn into the next Spring Tools 4.23.0 release next week.
4javier commentedon Jun 5, 2024
Just remember that what made the difference for me, was the upgrade of wayland to 4.23.0.
It landed in official repo for Arch Linux, can't say for other distros.