Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#54339 - [chromium] cannot launch in headless mode due to missing libosmesa.so

Attached to Project: Arch Linux
Opened by Ran Benita (bluetech) - Wednesday, 07 June 2017, 09:18 GMT
Last edited by Evangelos Foutras (foutrelis) - Wednesday, 07 June 2017, 17:30 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Launching chromium in headless mode fails.


Additional info:

* package version(s)
extra/chromium 59.0.3071.86-1

* config and/or log files etc.
Gnome shell Wayland session.
mesa 17.1.1-1


Steps to reproduce:

Run the following in a terminal: `chromium --headless`.

It output the following log before failing:

[0607/121654.823796:ERROR:gl_implementation.cc(246)] Failed to load /usr/lib/chromium/libosmesa.so: /usr/lib/chromium/libosmesa.so: cannot open shared object file: No such file or directory
[0607/121654.921356:ERROR:gpu_child_thread.cc(174)] Exiting GPU process due to errors during initialization
[0607/121654.926455:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
[0607/121654.926684:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
[0607/121654.926752:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
[0607/121654.926814:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
[0607/121654.926844:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
[0607/121654.926868:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Wednesday, 07 June 2017, 17:30 GMT
Reason for closing:  Not a bug
Comment by Matthias Lisin (matthias.lisin) - Wednesday, 07 June 2017, 11:34 GMT
mesa provides /usr/lib/libOSMesa.so

Lowercase symlink works as a workaround.
Comment by Evangelos Foutras (foutrelis) - Wednesday, 07 June 2017, 17:29 GMT
For now, you will need to pass --disable-gpu to Chromium (along with --headless):

https://developers.google.com/web/updates/2017/04/headless-chrome
https://news.ycombinator.com/item?id=14240460

According to upstream, this will not be needed in the future.

Loading...