Bug 2036205 - 'Failed to load GLES library' error when starting the headless_shell of chromium-headless
Summary: 'Failed to load GLES library' error when starting the headless_shell of chrom...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: chromium
Version: epel7
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-30 12:05 UTC by peifer
Modified: 2023-03-11 03:09 UTC (History)
5 users (show)

Fixed In Version: chromium-110.0.5481.177-1.el7 chromium-110.0.5481.177-1.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-05 01:13:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description peifer 2021-12-30 12:05:57 UTC
Description of problem:
I only installed the package chromium-headless. When I try to execute the contained headless_shell, it fails: 

$ /usr/lib64/chromium-browser/headless_shell
[1230/125746.230047:WARNING:headless_browser_main_parts.cc(83)] Cannot create Pref Service with no user data dir.
[1230/125746.264845:ERROR:egl_util.cc(74)] Failed to load GLES library: /usr/lib64/chromium-browser/swiftshader/libGLESv2.so: /usr/lib64/chromium-browser/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[1230/125746.267370:ERROR:viz_main_impl.cc(150)] Exiting GPU process due to errors during initialization
[1230/125746.273181:ERROR:egl_util.cc(74)] Failed to load GLES library: /usr/lib64/chromium-browser/swiftshader/libGLESv2.so: /usr/lib64/chromium-browser/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory


Version-Release number of selected component (if applicable):
90.0.4430.212 (CentOS Linux release 7.9)

Expected results:
The headless_shell should start without any errors.

Comment 1 Tom "spot" Callaway 2021-12-30 19:04:47 UTC
Chromium in EPEL7 is unmaintained. Newer versions of Chromium will no longer build with any of the available toolchains for EL7.

As there are many (many, MANY) security holes in the last build of Chromium in EPEL7, I strongly recommend that you remove it (or update your system to EL8, where newer builds are still possible).

If you still wish to use this ancient build, installing the "chromium" package will provide the missing files. I'm moving these files to chromium-common so this problem will not be an issue in current builds.

Comment 2 Kirby Zhou 2023-02-21 08:19:18 UTC
This bug still exist in EPEL-8 and EPEL-9 in the latest version (v103, v109 v110)

~]$ /usr/lib64/chromium-browser/headless_shell 
[0221/161743.332269:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
[0221/161743.334912:ERROR:egl_util.cc(55)] Failed to load GLES library: /usr/lib64/chromium-browser/libGLESv2.so: /usr/lib64/chromium-browser/libGLESv2.so: cannot open shared object file: No such file or directory
[0221/161743.345816:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[0221/161743.350917:ERROR:egl_util.cc(55)] Failed to load GLES library: /usr/lib64/chromium-browser/libGLESv2.so: /usr/lib64/chromium-browser/libGLESv2.so: cannot open shared object file: No such file or directory
[0221/161743.354260:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[0221/161743.361653:ERROR:gpu_init.cc(486)] Passthrough is not supported, GL is disabled, ANGLE is

Comment 3 Than Ngo 2023-02-21 11:37:02 UTC
i can reproduce this issue. I am working on a fix.

Comment 4 Fedora Update System 2023-02-24 19:09:43 UTC
FEDORA-EPEL-2023-29b054d297 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-29b054d297

Comment 5 Than Ngo 2023-02-24 19:12:11 UTC
Could you please download and test? Please don't forget to add the karma!

Thanks!

Comment 6 Fedora Update System 2023-02-25 04:15:49 UTC
FEDORA-EPEL-2023-29b054d297 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-29b054d297

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2023-02-25 08:40:10 UTC
FEDORA-2023-523a24d90a has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-523a24d90a

Comment 8 Fedora Update System 2023-02-26 02:01:55 UTC
FEDORA-2023-523a24d90a has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-523a24d90a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Kirby Zhou 2023-03-01 08:07:34 UTC
Tested with chromium-headless-110.0.5481.177-1.el7.x86_64
It works as expected now.

~]$ /usr/lib64/chromium-browser/headless_shell --no-sandbox --disable-gpu --screenshot https://www.kernel.org
[0301/160704.372538:WARNING:sandbox_linux.cc(393)] InitializeSandbox() called with multiple threads in process gpu-process.
[0301/160709.177494:INFO:headless_shell.cc(107)] 106730 bytes written to file screenshot.png

Comment 10 Fedora Update System 2023-03-05 01:13:18 UTC
FEDORA-EPEL-2023-29b054d297 has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2023-03-11 03:09:08 UTC
FEDORA-2023-523a24d90a has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.