New issue
Advanced search Search tips

Issue 825982 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

ChromeHeadless crashed on $window.saveAs

Reported by dwilc...@gmail.com, Mar 26 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

Steps to reproduce the problem:
1. Write an Angular.js app that invokes $window.saveAs to save a downloaded file like this:

    $http(...)
        .then(resp => {
            const blob = new $window.Blob([resp.data], {type: "text/csv"});
            $window.saveAs(blob, "file.csv");
}

2. This will work OK in my computer using Chrome, but in ChromeHeadless it makes it crash.

What is the expected behavior?
I expected the call to either:
- fail because it cannot open an UI dialog to ask for a filename
- download the file to /tmp
- ignore the call altogether

What went wrong?
Chrome crashed with this message (happens every time):

    26 03 2018 19:24:33.397:INFO [karma]: Karma v2.0.0 server started at http://0.0.0.0:9876/
    26 03 2018 19:24:33.398:INFO [launcher]: Launching browser ChromeHeadless with unlimited concurrency
    26 03 2018 19:24:33.402:INFO [launcher]: Starting browser ChromeHeadless
    26 03 2018 19:24:33.823:INFO [HeadlessChrome 64.0.3282 (Linux 0.0.0)]: Connected on socket ********* with id ******
    26 03 2018 19:24:35.782:ERROR [launcher]: ChromeHeadless crashed.
    	[0326/192433.621138:ERROR:gpu_process_transport_factory.cc(1009)] Lost UI shared context.
    [0326/192433.622091:ERROR:instance.cc(49)] Unable to locate service manifest for metrics
    [0326/192433.622111:ERROR:service_manager.cc(890)] Failed to resolve service name: metrics

    DevTools listening on ws://127.0.0.1:9222/devtools/browser/1e5ee129-5ce9-4d2b-aaf2-10d4a582fdea
    [0326/192433.726018:ERROR:instance.cc(49)] Unable to locate service manifest for metrics
    [0326/192433.726040:ERROR:service_manager.cc(890)] Failed to resolve service name: metrics	

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 64.0.3282  Channel: stable
OS Version: 16.04.2 LTS
Flash Version: 

I use ChromeHeadless in a Jenkins box to run my Karma/Jasmine tests of an Angular.js app. The failure
 
Components: Internals>Headless
Labels: Triaged-ET Proj-Headless
As this issue is related to Chrome Headless, hence adding Internals>Headless component to it. Could someone from the Internals>Headless team have a look at this issue.

Thanks!
Status: WontFix (was: Unconfirmed)
For now you'll need to enable download functionality in headless as described in bug 696481.

Sign in to add a comment