Repository navigation
Description
Describe the bug
Eclipse crashes frequently and unpredictably under Debian 10.
To Reproduce
The error could not be reproduced reliably so far. But it is possibly connected with the clipboard: when I cache text to the clipboard from another application (terminal,...) and try to paste it into the Eclipse editor the IDE crashes very often.
Expected behavior
No sudden crashes any more.
Screenshots
Environment:
- Select the platforms on which the behavior is seen.
[] All OS
[ ] Windows
[X ] Linux
[ ] macOS
never faced it on Windows
- Additional OS info (e.g. OS version, Linux Desktop, etc)
Operating System: Debian GNU/Linux 10 (buster)
Kernel: Linux 4.19.0-20-amd64
- JRE/JDK version
OpenJDK Runtime Environment (build 11.0.15+10-post-Debian-1deb10u1)
Version since
Not sure: it started with
Eclipse IDE for Java Developers (includes Incubating components)
Version: 2021-12 (4.22.0)
Build id: 20211202-1639
OS: Linux, v.4.19.0-20-amd64, x86_64 / gtk 3.24.5, WebKit 2.36.0
Java vendor: Eclipse Adoptium
Java runtime version: 17.0.1+12
Java version: 17.0.1
but not immediately after upgrading to this version and remained after an upgrade to 2022-03. Actual Eclipse Version:
Eclipse IDE for Java Developers (includes Incubating components)
Version: 2022-03 (4.23.0)
Build id: 20220310-1457
OS: Linux, v.4.19.0-20-amd64, x86_64 / gtk 3.24.5
Java vendor: Eclipse Adoptium
Java runtime version: 17.0.2+8
Java version: 17.0.2
Workaround (or) Additional context
Starting eclipse with the command line option -Djdk.gtk.version=2 did not help. Tryed this because of a hinf from another forum about possible incomatibilities between gtk3 and eclipse.
Attached latest crash report:
Activity
iloveeclipse commentedon May 30, 2022
Backtrace:
iloveeclipse commentedon May 30, 2022
Please provide all System properties matching
SWTfilter from Eclipse -> Help -> About -> Installation Details -> Configuration.[-]Eclipse crashes on Debian 10[/-][+]Eclipse crashes on Debian 10 in Webkit code[/+]heike2718 commentedon May 30, 2022
*** Date: Montag, 30. Mai 2022 um 13:30:54 Mitteleuropäische Sommerzeit
*** Platform Details:
*** System properties:
-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true
org.eclipse.swt.graphics.Resource.reportNonDisposed=true
org.eclipse.swt.internal.deviceZoom=100
org.eclipse.swt.internal.gtk.theme=Adwaita
org.eclipse.swt.internal.gtk.version=3.24.5
org.eclipse.swt.internal.webkitgtk.version=2.36.0
sun.java.command=/home/heike/eclipse/eclipse-java-latest/eclipse//plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar -os linux -ws gtk -arch x86_64 -showsplash /home/heike/eclipse/eclipse-java-latest/eclipse//plugins/org.eclipse.epp.package.common_4.23.0.20220310-1200/splash.bmp -launcher /home/heike/eclipse/eclipse-java-latest/eclipse/eclipse -name Eclipse --launcher.library /home/heike/eclipse/eclipse-java-latest/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.2.400.v20211117-0650/eclipse_11600.so -startup /home/heike/eclipse/eclipse-java-latest/eclipse//plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar --launcher.appendVmargs -exitdata 410005 plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_15.0.2.v20210201-0955/jre/bin -product org.eclipse.epp.package.java.product -data /home/heike/workspaces/java12+ -vm /home/heike/eclipse/eclipse-java-latest/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_17.0.2.v20220201-1208/jre/bin/java -vmargs -Dosgi.requiredJavaVersion=11 [email protected]/eclipse-workspace -Dsun.java.command=Eclipse -XX:+UseG1GC -XX:+UseStringDeduplication --add-modules=ALL-SYSTEM -Dosgi.requiredJavaVersion=11 -Dosgi.dataAreaRequiresExplicitInit=true -Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true -Djdk.gtk.version=2 -Xms256m -Xmx2048m --add-modules=ALL-SYSTEM -jar /home/heike/eclipse/eclipse-java-latest/eclipse//plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
*** System environment variables:
*** Features:
*** Plug-in Registry:
org.eclipse.e4.ui.css.swt (0.14.400.v20211026-1534) "Eclipse CSS SWT Support" [Active]
org.eclipse.e4.ui.css.swt.theme (0.13.0.v20201026-1147) "Eclipse CSS SWT Theme Support" [Active]
org.eclipse.e4.ui.swt.gtk (1.1.100.v20210108-1832) "Eclipse UI GTK Enhancements" [Resolved]
org.eclipse.e4.ui.workbench.addons.swt (1.4.400.v20211102-0453) "Eclipse e4 Workbench Add-ons" [Active]
org.eclipse.e4.ui.workbench.renderers.swt (0.15.400.v20220308-0630) "Eclipse e4 Workbench SWT Renderer" [Active]
org.eclipse.e4.ui.workbench.swt (0.16.400.v20220222-1128) "Eclipse e4 Workbench SWT" [Active]
org.eclipse.jface.databinding (1.13.0.v20210619-1146) "JFace Data Binding for SWT and JFace" [Resolved]
org.eclipse.swt (3.119.0.v20220223-1102) "Standard Widget Toolkit" [Resolved]
org.eclipse.swt.gtk.linux.x86_64 (3.119.0.v20220223-1102) "Standard Widget Toolkit for GTK" [Resolved]
*** User Preferences:
/bundle_defaults/org.eclipse.jdt.ui/CallHierarchy.defaultExpandWithConstructorsMembers=java.lang.Runnable.run;java.util.concurrent.Callable.call;org.eclipse.swt.widgets.Listener.handleEvent
/bundle_defaults/org.eclipse.jdt.ui/content_assist_category_order=org.eclipse.jdt.ui.javaPostfixProposalCategory:65547\u0000org.eclipse.jdt.ui.spellingProposalCategory:65545\u0000org.eclipse.jdt.ui.javaTypeProposalCategory:65540\u0000org.eclipse.jdt.ui.javaNoTypeProposalCategory:65539\u0000org.eclipse.jdt.ui.textProposalCategory:65541\u0000org.eclipse.jdt.ui.javaAllProposalCategory:65542\u0000org.eclipse.jdt.ui.templateProposalCategory:2\u0000org.eclipse.jdt.ui.swtProposalCategory:3\u0000org.eclipse.jdt.ui.javaChainProposalCategory:4
/instance/org.eclipse.e4.ui.css.swt.theme/themeid=org.eclipse.e4.ui.css.theme.high-contrast
/instance/org.eclipse.e4.ui.workbench.renderers.swt/enableMRU=true
/instance/org.eclipse.e4.ui.workbench.renderers.swt/themeEnabled=true
/instance/org.eclipse.jdt.ui/content_assist_category_order=org.eclipse.jdt.ui.templateProposalCategory:0\u0000org.eclipse.jdt.ui.swtProposalCategory:1\u0000org.eclipse.jdt.ui.javaNoTypeProposalCategory:65537\u0000org.eclipse.jdt.ui.javaChainProposalCategory:3\u0000org.eclipse.jdt.ui.javaTypeProposalCategory:65539\u0000org.eclipse.jdt.ui.textProposalCategory:65540\u0000org.eclipse.jdt.ui.javaAllProposalCategory:6\u0000org.eclipse.jdt.ui.javaPostfixProposalCategory:65542\u0000org.eclipse.jpt.jaxb.ui.jaxbCompletionProposals:8\u0000org.eclipse.jpt.jpa.ui.jpaProposalCategory:9\u0000org.eclipse.jst.ws.jaxws.ui.jaxwsProposalComputer:10\u0000org.eclipse.mylyn.java.ui.javaAllProposalCategory:11\u0000org.eclipse.pde.api.tools.ui.apitools_proposal_category:12\u0000
@org.eclipse.e4.ui.css.swt.theme=0.13.0.v20201026-1147
@org.eclipse.e4.ui.workbench.renderers.swt=0.15.400.v20220308-0630
*** Current Install Configuration:
Id: org.eclipse.e4.ui.css.swt, Version: 0.14.400.v20211026-1534, Location: reference:file:plugins/org.eclipse.e4.ui.css.swt_0.14.400.v20211026-1534.jar
Id: org.eclipse.e4.ui.css.swt.theme, Version: 0.13.0.v20201026-1147, Location: reference:file:plugins/org.eclipse.e4.ui.css.swt.theme_0.13.0.v20201026-1147.jar
Id: org.eclipse.e4.ui.swt.gtk, Version: 1.1.100.v20210108-1832, Location: reference:file:plugins/org.eclipse.e4.ui.swt.gtk_1.1.100.v20210108-1832.jar
Id: org.eclipse.e4.ui.workbench.addons.swt, Version: 1.4.400.v20211102-0453, Location: reference:file:plugins/org.eclipse.e4.ui.workbench.addons.swt_1.4.400.v20211102-0453.jar
Id: org.eclipse.e4.ui.workbench.renderers.swt, Version: 0.15.400.v20220308-0630, Location: reference:file:plugins/org.eclipse.e4.ui.workbench.renderers.swt_0.15.400.v20220308-0630.jar
Id: org.eclipse.e4.ui.workbench.swt, Version: 0.16.400.v20220222-1128, Location: reference:file:plugins/org.eclipse.e4.ui.workbench.swt_0.16.400.v20220222-1128.jar
Id: org.eclipse.swt, Version: 3.119.0.v20220223-1102, Location: reference:file:plugins/org.eclipse.swt_3.119.0.v20220223-1102.jar
Id: org.eclipse.swt.gtk.linux.x86_64, Version: 3.119.0.v20220223-1102, Location: reference:file:plugins/org.eclipse.swt.gtk.linux.x86_64_3.119.0.v20220223-1102.jar
*** Security Configuration:
heike2718 commentedon May 30, 2022
The crashes may be related to the cache / clipboard. They seem to occur more often when I have just cached texts from another application (Ctrl + C) or have not yet cleared the cache.
The interaction between Eclipse and the clipboard is quite unstable overall. Sometimes the IDE freezes when I have texts in the cache, so I have to empty it first.
The instability has been like this for several versions, but with the latest version the described crashes are added.
sxc731 commentedon Jun 4, 2022
This issue also occurs on Ubuntu 22.04 (Wayland); everything is up-to-date as of this writing. I've had three occurrences over the last couple of days, with:
For me, this typically occurs when hitting CTRL+Space in order to auto-complete some stuff, eg: in a Javadoc comment is the one that occurred most recently. Let me know how I can further assist in debugging this?
Some version info:
Perhaps change the title of the ticket to reflect this doesn't only happen on Debian?
[-]Eclipse crashes on Debian 10 in Webkit code[/-][+]Eclipse crashes in Webkit code[/+]iloveeclipse commentedon Jun 4, 2022
@sxc731 : please attach full crash log. If you enable core dumps, you can open core file with gdb and print backtrace via "bt", this would be also good to have.
heike2718 commentedon Jun 4, 2022
@sxc731
you are right. There are 2 different actions triggering the crashes several times a day:
So this is hopefully reproduceable.
sxc731 commentedon Jun 5, 2022
I have attempted to open the crash file and print a backtrace as requested. I don't think I'm getting anything too useful (due to lack of debug symbols?). Below is an edited excerpt. The crash file is 318MB; I'm happy to upload it if it might actually be of any use; please confirm?
iloveeclipse commentedon Jun 5, 2022
Can you please attach crash dump file generated by JVM (not the core file)?
sxc731 commentedon Jun 5, 2022
Here's one; I have a couple more in case that helps: hs_err_pid30699.log.
Also, FWIW security patches were recently issued for libwebkit and it is quite possible that this coincides with the beginning of these issues; some of these patches certainly caused issues with other software. However, I can't say for sure because I also happened to upgrade my OS (Ubuntu 21.10->22.04) around the same time.
sxc731 commentedon Jun 6, 2022
Got a little bit more lucky with
btthis time. This was again a crash triggered by invoking auto-complete.This happened a minute or so after I saw the weird striped screen mentioned here. Unlike the crash (which is thankfully not too easily reproduced), the striped screen can be readily triggered by invoking an in-line refactor/rename (ALT+SHIFT+R) and it seems possible as mentioned on the other ticket that this destabilizes Eclipse (?)
Coredump bt:
JVM crash dump hs_err_pid114718.log:
18 remaining items
gietki commentedon Jun 10, 2022
This is critical. It's a bug in webkit2gtk lib I presume? Happens to me as well (open a project, move mouse over to a method name and wait for autocomplete - boom, crash sigsegv).
Edit: using ubuntu 22.04 fully patched (libwebkit2gtk-4.0-37), eclipse 2022-03R
cpfeiffer commentedon Jun 11, 2022
Here's the stacktrace;
If necessary, I can provide the coredump, but it's > 200 MB 7zipped,
SyntevoAlex commentedon Jun 11, 2022
Finally, someone provided something useful! Thanks!
Seems to be this bug:
https://bugs.webkit.org/show_bug.cgi?id=200856
It mentions hardware acceleration. This hints why it's only seen on some machines and not the others.
SyntevoAlex commentedon Jun 11, 2022
The old bug was fixed, but then it reappeared as:
https://bugs.webkit.org/show_bug.cgi?id=239429
SyntevoAlex commentedon Jun 11, 2022
After enabling 3D acceleration in my Ubuntu 22.04 VM, the crash is reproducible for me as well.
SyntevoAlex commentedon Jun 11, 2022
I understand that this is a problem of WebKit (see https://bugs.webkit.org/show_bug.cgi?id=239429) and not a bug in Eclipse.
gietki commentedon Jun 11, 2022
Yes, thanks for pointing the issue in Webkit, I guess we will have to wait until it is fixed (no one assigned to that issue and priority set to normal). Is there any workaround? @SyntevoAlex you mentioned that when you enabled 3D acceleration, you meant enabling it in VirtualBox? Does anybody know any native (non-VM) workaround?
SyntevoAlex commentedon Jun 11, 2022
Yes, I'm running Ubuntu in VirtualBox, and I meant that enabling 3D acceleration there caused the crash to occur for me. Bug in WebKit is outside of my work scope, therefore I will not assist with this problem further, sorry.
cpfeiffer commentedon Jun 11, 2022
Thanks! I guess the workaround would be to switch from Wayland to X11, at the moment.
heike2718 commentedon Jun 19, 2022
@cpfeiffer thanks a lot for your hint. This seems to be a workaround. It saved my day
xxorax commentedon Jan 5, 2023
Is there a way to disable Webkit hardware acceleration to temporary fix the issue ? Like evolution does.
The easiest way to reproduce it on my side is to go to Preferences > General > Web Browser : it crashes without showing the settings.
akurtakov commentedon Jan 5, 2023
There is no way to disable hardware acceleration but you can add if you want . Just use an example how ignoreTls is done https://github.com/eclipse-platform/eclipse.platform.swt/blob/master/bundles/org.eclipse.swt/Eclipse%20SWT%20WebKit/gtk/org/eclipse/swt/browser/WebKit.java#L250 and https://github.com/eclipse-platform/eclipse.platform.swt/blob/master/bundles/org.eclipse.swt/Eclipse%20SWT%20WebKit/gtk/org/eclipse/swt/browser/WebKit.java#L680 . I would be happy to review your patch.
akurtakov commentedon Mar 29, 2024
Would you please try with https://download.eclipse.org/eclipse/downloads/drops4/I20240329-0530/ ? It should workaround the problem for now.