Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headless Chrome crashes during npm run test on ubuntu-latest #6686

Closed
2 of 11 tasks
BenLuts opened this issue Dec 5, 2022 · 6 comments
Closed
2 of 11 tasks

Headless Chrome crashes during npm run test on ubuntu-latest #6686

BenLuts opened this issue Dec 5, 2022 · 6 comments
Labels
bug report investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu

Comments

@BenLuts
Copy link

BenLuts commented Dec 5, 2022

Description

Since last friday we can not run npm test anymore. The process fails to launch Chome Headless.

`05 12 2022 06:32:42.413:INFO [karma-server]: Karma v6.4.0 server started at http://localhost:9876/
05 12 2022 06:32:42.415:INFO [launcher]: Launching browsers ChromeHeadless with concurrency unlimited
05 12 2022 06:32:42.460:INFO [launcher]: Starting browser ChromeHeadless
05 12 2022 06:32:44.909:ERROR [launcher]: Cannot start ChromeHeadless

DevTools listening on ws://127.0.0.1:9222/devtools/browser/f93225f1-51cf-4a41-a932-7df8503c560e
[1205/063243.725972:WARNING:gpu_process_host.cc(1206)] The GPU process has crashed 1 time(s)
[1205/063243.883740:WARNING:gpu_process_host.cc(1206)] The GPU process has crashed 2 time(s)
[1205/063244.058874:WARNING:gpu_process_host.cc(1206)] The GPU process has crashed 3 time(s)
[1205/063244.209427:WARNING:gpu_process_host.cc(1206)] The GPU process has crashed 4 time(s)
[1205/063244.356800:WARNING:gpu_process_host.cc(1206)] The GPU process has crashed 5 time(s)
[1205/063244.504552:WARNING:gpu_process_host.cc(1206)] The GPU process has crashed 6 time(s)
[1205/063244.504592:FATAL:gpu_data_manager_impl_private.cc(918)] The display compositor is frequently crashing. Goodbye.
`

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 10.15
  • macOS 11
  • macOS 12
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Image: ubuntu-22.04
Version: 20221127.1

Is it regression?

ubuntu-latest on December 1st was working fine.

Expected behavior

Headless Chrome starts correctly

Actual behavior

The display compositor is frequently crashing

Repro steps

npm install karma
ng test --watch=false --project prd --browsers=ChromeHeadless

@mikhailkoliada
Copy link
Member

Hello, Please provide the minimal workflow with all the dependencies to reproduce the issue.

@mikhailkoliada mikhailkoliada added OS: Ubuntu investigate Collect additional information, like space on disk, other tool incompatibilities etc. and removed needs triage labels Dec 5, 2022
@BenLuts
Copy link
Author

BenLuts commented Dec 5, 2022

We install the angular CLI
npm i @angular/cli

We create a demo angular application by doing
ng new angular-tour-of-heroes

We then run
ng test --watch=false --browsers=ChromeHeadless

Depencies needed is npm 16.x.x

@BenLuts
Copy link
Author

BenLuts commented Dec 5, 2022

Issue at first glance appears to be similar to this old issue puppeteer/puppeteer#5661 (comment)

@KirillMetrik
Copy link

Hello,
experiencing exactly the same issue. We use Azure DevOps with ubuntu-latest for building and testing our Angular application.
Since yesterday the karma tests started to fail with an error:

ERROR [launcher]: Cannot start ChromeHeadless
	
DevTools listening on ws://127.0.0.1:9222/devtools/browser/4e745292-ddc4-4e8b-930d-b364004d1296
[1206/154355.308842:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[1206/154355.657144:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=159
[1206/154355.657177:WARNING:gpu_process_host.cc(1299)] The GPU process has crashed 1 time(s)
[1206/154355.684671:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[1206/154355.807485:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=159
[1206/154355.807532:WARNING:gpu_process_host.cc(1299)] The GPU process has crashed 2 time(s)

After downgrading to ubuntu-20.04 the problem is gone.

@BenLuts
Copy link
Author

BenLuts commented Dec 8, 2022

Downgrading to ubuntu-20.04 does fix the problem.

@mikhailkoliada
Copy link
Member

Hello! @BenLuts we can not guarantee that your code will work on ubuntu-22.04 at all due to version differences. From the log you provided we have not found faulty places we could fix on our side, that's why I am going to close the issue. Feel free to reach us out again if you have questions left.

adams85 added a commit to configcat/js-sdk that referenced this issue Jan 3, 2023
adams85 added a commit to configcat/js-sdk that referenced this issue Jan 3, 2023
adams85 added a commit to configcat/js-ssr-sdk that referenced this issue Jan 3, 2023
adams85 added a commit to configcat/js-ssr-sdk that referenced this issue Jan 3, 2023
adams85 added a commit to configcat/js-sdk that referenced this issue Jan 4, 2023
* Revises build configuration

* Improves naming in tsconfig hierarchy

* Updates public API and HttpConfigFetcher to match the upcoming configcat-common major version

* Re-exports public API types from configcat-common

* Replaces karma-typescript with karma-webpack (as module resolution is broken in the former) to unblock installing/upgrading to newer packages
+ configures source maps for meaningful stack traces in failing tests

* Adds/updates tests

* Updates samples

* Exports new public types

* Fixes sonar issues

* Fixes chromium tests (actions/runner-images#6686)

* Attempt at fixing failing checks

* Fixes HTTP tests
adams85 added a commit to configcat/js-ssr-sdk that referenced this issue Jan 4, 2023
* Revises build configuration

* Improves naming in tsconfig hierarchy

* Updates public API and HttpConfigFetcher to match the upcoming configcat-common major version

* Replaces karma-typescript with karma-webpack (as module resolution is broken in the former) to unblock installing/upgrading to newer packages
+ configures source maps for meaningful stack traces in failing tests

* Adds/updates tests

* Updates sample

* Exports new public types

* Fixes sonar issues

* Fixes chromium tests (actions/runner-images#6686)
adams85 added a commit to configcat/js-chromium-extension-sdk that referenced this issue Feb 17, 2023
adams85 added a commit to configcat/js-chromium-extension-sdk that referenced this issue Feb 20, 2023
* Revise build configuration

* Improve naming in tsconfig hierarchy

* Update public API and HttpConfigFetcher to match configcat-common v7.0

* Re-export public API types from configcat-common

* Replace karma-typescript with karma-webpack (as module resolution is broken in the former) to unblock installing/upgrading to newer packages
+ configures source maps for meaningful stack traces in failing tests

* Add/update tests

* Update sample

* Fix chromium tests (actions/runner-images#6686)

* Update package-lock.json
schneivo77 pushed a commit to schneivo77/streamkeys that referenced this issue Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu
Projects
None yet
Development

No branches or pull requests

3 participants