-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eclipse crashes in Webkit code #179
Comments
Backtrace:
|
Please provide all System properties matching |
*** Date: Montag, 30. Mai 2022 um 13:30:54 Mitteleuropäische Sommerzeit *** Platform Details: *** System properties: *** System environment variables: *** Features: *** Plug-in Registry: *** User Preferences: *** 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 *** Security Configuration: |
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. |
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? |
@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. |
you are right. There are 2 different actions triggering the crashes several times a day:
So this is hopefully reproduceable. |
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?
|
Can you please attach crash dump file generated by JVM (not the core file)? |
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. |
Got a little bit more lucky with 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:
|
I tried to reproduce on my Ubuntu 22.04, but I didn't encounter anything suspicious. It would help if you could reproduce crash from #158 and get a backtrace for it. It seems that these two crashes are related. Also, please install webkit debug infos and get a better backtrace (you could use the latest core dump you obtained):
|
Hi there, Thanks for the instructions. I haven't gone through the debug libs installation just yet (and actually haven't encountered any crash since my last post) but I notice you're suggesting to install I have installed 4.1-0 (alongside 4.0-37) and restarted Eclipse. How do I ascertain which version of the |
Right, my bad. I did |
Once you install |
If installing libwebkit2gtk-4.1-0 solves the problem this sounds like the issue lies in the old version which Ubuntu fixed so nothing to be done on SWT side. |
OK so immediately after a cold start, Eclipse doesn't appear to load Interestingly, after I trigger the striped screen, then I see that Eclipse has several references to The striped screen, which is 100% reproducible for me, is at the very least a pretty jarring cosmetic bug and possibly a more serious smoking gun, and it does seem to involve To reproduce the striped screen, I created an empty workspace with the single following class: public class Test { } If you select I'll let you know if I manage to reproduce the crash with the debug libs. As for #158, instructions to reproduce suggest clicking "Migrate" on the Welcome screen. I do not have that "Migrate* option (my deployment is a straight up "Java developers") so cannot reproduce. |
@sxc731 do you have any plugins installed? Can you try removing them? |
@sxc731 any HTML link on the welcome screen toolbar, crashes the Eclipse SDK for me using Wayland. |
@vogella : so you can follow this: #179 (comment) to provide additional information? |
Better yet, please reply to #158 (comment) and #158 (comment) |
I continue to suspect some Eclipse plugin or non-default Ubuntu package. |
Also not reproducible for me in Eclipse 2022-03 on Ubuntu 22.04 |
In the past we had wayland "drawing" problems that happened only with certain video drivers. So that path is worth investigating. |
I tried a naked "2022-03 Eclipse for Java developers" and can still 100% reproduce the striped screen. To @akurtakov's point above, my laptop doesn't have fancy graphics: regular Tiger Lake with integrated Intel GPU. That said, since this was also reported here, it's not just me. I definitely didn't use to have this issue with a combination of Ubuntu 21.10/Eclipse 2021-12/pre security-patch libwebkit2gtk. The actual crash somehow hasn't re-occured as yet. |
I can reproduce the crash on Ubuntu 22.04 by clicking on a link on the welcome page with
I cannot reproduce the crash in the same way on Debian Unstable, where I also could not reproduce the crash on Ubuntu 20.04 with I can do further debugging on Ubuntu 22.04 if needed. |
@cpfeiffer Please follow steps from #158 (comment) |
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 |
Here's the stacktrace;
If necessary, I can provide the coredump, but it's > 200 MB 7zipped, |
Finally, someone provided something useful! Thanks! Seems to be this bug: It mentions hardware acceleration. This hints why it's only seen on some machines and not the others. |
The old bug was fixed, but then it reappeared as: |
After enabling 3D acceleration in my Ubuntu 22.04 VM, the crash is reproducible for me as well. |
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. |
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? |
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. |
Thanks! I guess the workaround would be to switch from Wayland to X11, at the moment. |
@cpfeiffer thanks a lot for your hint. This seems to be a workaround. It saved my day |
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. |
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. |
Would you please try with https://download.eclipse.org/eclipse/downloads/drops4/I20240329-0530/ ? It should workaround the problem for now. |
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:
[] All OS
[ ] Windows
[X ] Linux
[ ] macOS
never faced it on Windows
Operating System: Debian GNU/Linux 10 (buster)
Kernel: Linux 4.19.0-20-amd64
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:
hs_err_pid14497.log
The text was updated successfully, but these errors were encountered: