New issue
Advanced search Search tips

Issue 633207 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Dec 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Building chrome-headless on headless ubuntu on AWS does not have all files required for launch

Reported by zackaryc...@gmail.com, Aug 1 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36

Steps to reproduce the problem:
1. Use default Ubuntu install from AWS ec2 template
2. Fetch Chromium and build for headless
3. Launch browser

What is the expected behavior?
Browser should launch as expected 

What went wrong?
Libosmesa.so is missing during the build process so when the browser is launched it throws an error.  This prevents pages from rendering and screenshots from being captured. 

Did this work before? N/A 

Chrome version: 52.0.2743.82  Channel: n/a
OS Version: OS X 10.11.5
Flash Version: Shockwave Flash 22.0 r0

Running on headless ubuntu from the AWS image you need to install Mesa 3d library.  After pulling it down you need to run 
./configure --enable-osmesa --disable-driglx-direct --disable-dri --with-gallium-drivers=swrast --disable-egl

Then you need to copy the generated libOSMesa.so into the out/Debug dir
cp ~/mesa-11.0.7/lib/libOSMesa.so ./out/Debug/libosmesa.so
 
Screen Shot 2016-07-28 at 12.07.26 PM.png
189 KB View Download
Labels: Proj-Headless
Did you try this after https://codereview.chromium.org/2187353003 landed? It adds a dependency on osmesa for headless, which is automatically checkout out in Chrome's third party directory.
Looks like this landed a few days after my last pull.  I'll test again.
I last pulled on July 26th. Looks like this landed after that.
Labels: TE-NeedsfurtherTriage
Labels: -TE-NeedsfurtherTriage
That's odd. After running this command, do you see out/Release/libosmesa.so?

$ ninja -C out/Release headless_lib

You could also try building the 'osmesa' target directly.
Labels: Needs-Feedback
Components: UI>Browser
Labels: -OS-Mac OS-Linux
This was fixed by Eric I believe. 
Project Member

Comment 10 by sheriffbot@chromium.org, Aug 16 2016

Labels: -Needs-Feedback Needs-Review
Owner: tkonch...@chromium.org
Thank you for providing more feedback. Adding requester "tkonchada@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Needs-Review TE-NeedsTriageHelp
Owner: ----
I verified this last night and it is no longer an issue.  Please close. 
Status: Fixed (was: Unconfirmed)

Sign in to add a comment