Bug 263664 - [GTK] Eclipse windows do not open due to the webkitgtk4 OS package on Linux
Summary: [GTK] Eclipse windows do not open due to the webkitgtk4 OS package on Linux
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: PC Linux
: P3 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2023-10-25 09:43 PDT by Miguel Morales
Modified: 2023-10-25 13:18 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Morales 2023-10-25 09:43:17 PDT
On Windows our Custom Eclipse Help Viewer launched an external browser to display web pages. But on Linux Eclipse is not launching an external browser but is instead trying to display it inside another Eclipse window. The new web browser control that it is starting to display the external web page is failing.

There seems to be a bug in /usr/libexec/webkit2gtk-4.0/WebKitWebProcess.

From Eclipse 4.3

(WebKitWebProcess:31922): Gdk-ERROR **: 10:00:47.391: The program 'WebKitWebProcess' received an X Window System error.
This probably reflects a bug in the program.
The error was 'GLXBadFBConfig'.
  (Details: serial 145 error_code 160 request_code 149 (GLX) minor_code 21)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

$ rpm -q -f /usr/libexec/webkit2gtk-4.0/WebKitWebProcess
webkitgtk4-2.22.7-2.el7.x86_64

$ yum info webkitgtk4-2.22.7-2.el7.x86_64
Installed Packages
Name        : webkitgtk4
Arch        : x86_64
Version     : 2.22.7
Release     : 2.el7
Size        : 93 M
Repo        : installed
From repo   : 10.134.60.102_pub_mount_redhat_rhel7.7_server_x86_64_disk_
Summary     : GTK+ Web content engine library
URL         : http://www.webkitgtk.org
License     : LGPLv2
Description : WebKitGTK+ is the port of the portable web rendering engine WebKit
            : to the GTK+ platform.
            :
            : This package contains WebKitGTK+ for GTK+ 3

In SLES 15.1 we got a worse result when trying to open external web pages from the Eclipse Help Viewer
We clicked on the link and then java crashed.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f03c56b20be, pid=44576, tid=44578
#
# JRE version: OpenJDK Runtime Environment (11.0.6+10) (build 11.0.6+10-suse-3.39.2-x8664)
# Java VM: OpenJDK 64-Bit Server VM (11.0.6+10-suse-3.39.2-x8664, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libwebkit2gtk-4.0.so.37+0x8a50be]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %e" (or dumping to /usr/lib64/jvm/core.44576)
#
Comment 1 Michael Catanzaro 2023-10-25 13:16:58 PDT
Hi, to report problems on this issue tracker you'll need to reproduce with the latest version of WebKitGTK, currently 2.42.1. We don't investigate problems with older versions here. 2.22 was released in September 2018, which was an eternity ago in software time.

If you're a RHEL customer, you can contact customer support for help, but there aren't going to be any fixes released for RHEL 7.7 (or any other version of RHEL 7).

Regarding SLES 15.1, again your best bet is probably their customer support.
Comment 2 Michael Catanzaro 2023-10-25 13:18:19 PDT
BTW when contacting customer support, it will help to show a backtrace taken with gdb according to the instructions in https://blogs.gnome.org/mcatanzaro/2021/09/18/creating-quality-backtraces-for-crash-reports/

For the X error, you'll additionally need to set GDK_SYNCHRONIZE=1 in the environment as recommended by the error message; otherwise, the error will be received asynchronously and the backtrace will be useless.