Skip to content
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 when rendering tooltips with formatted javadoc. #1155

Open
robmv opened this issue Apr 1, 2024 · 4 comments
Open

Eclipse crashes when rendering tooltips with formatted javadoc. #1155

robmv opened this issue Apr 1, 2024 · 4 comments
Labels
Linux/GTK Happens on Linux Webkit

Comments

@robmv
Copy link

robmv commented Apr 1, 2024

Describe the bug

After updating the OS (Fedora Linux 39) of the package javascriptcoregtk4.1 2.44.0-2.fc39, Eclipse keeps crashing every time it will try to render HTML. The previous version was 2.42.5-1.fc39

To Reproduce

  1. Open Eclipse in a Wayland session.
  2. Open any Java source file.
  3. Hover over a Java class or method from the base class library like String to show its javadoc
  4. The UI hangs and a few second later it crashes.

Before the crash this is show on stderr:

(Eclipse:26511): Gdk-CRITICAL **: 12:06:11.663: gdk_window_create_gl_context: assertion 'GDK_IS_WINDOW (window)' failed

Expected behavior

A Javadoc tooltip is shown.

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • All OS
    • Windows
    • Linux
    • macOS
  1. Additional OS info (e.g. OS version, Linux Desktop, etc)

Fedora Linux 39 x86_64

  1. JRE/JDK version

OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (17.0.10+7, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)

Version since

Eclipse 2024-03 (4.31.0)

Workaround (or) Additional context

Running Eclipse with the X11 backend instead of Wayland with GDK_BACKEND=x11 is a workaround.

Native stack trace of the WebKitGTK crash

The bugs is reported on WebKit bugzilla as a regression, reporting it here in case the Eclipse code is making a mistake in its WebKit usage.

@merks
Copy link
Contributor

merks commented Apr 2, 2024

I assume this is the same problem as

#158 (comment)

and that the workaround described in that issue still works.

@robmv
Copy link
Author

robmv commented Apr 2, 2024

Yes it looks like that stack trace at #158-2027347825 but not the original bug report of #158. The WEBKIT_DISABLE_COMPOSITING_MODE=1 workaround works, without needed to 'downgrade' to X11.

@merks
Copy link
Contributor

merks commented Apr 20, 2024

@iloveeclipse @akurtakov

I wonder if it's possible that SWT can detect configurations that are known not to work and inform the user? After all, an issue like the following one has been open "forever" without resolution:

#158

@iloveeclipse
Copy link
Member

I wonder if it's possible that SWT can detect configurations that are known not to work and inform the user?

SWT itself has no "feedback loop" to user, IDE / products would be responsible for that - if we would have a reliable way to detect the crash.

In theory this would be an external JVM started that would try to open a browser via SWT and we checking for the response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux/GTK Happens on Linux Webkit
Projects
None yet
Development

No branches or pull requests

4 participants