puppeteer-sharp: NewPageAsync() hangs on Ubuntu Server 18 (x64)

Description

The method call NewPageAsync() hangs on Ubuntu Server 18.04.1 LTS. On Windows it is working very well. I used the PuppeteerSharpPdfDemo for easier reproducing.

The console shows

Downloading chromium
Navigating google

and then it hangs.

In lsof I can see that the chrome process is running:

chrome    30966          thomas  153u  IPv4 151469      0t0  TCP 127.0.0.1:44037 (LISTEN)

Complete minimal example reproducing the issue

  1. Simply use the PDF demo
  2. Publish to ubuntu server (Release / netcoreapp3.1 / linux-x64)
  3. Run published application on linux

Expected behavior:

Demo application should create PDF on linux system (just like it works under windows)

Actual behavior:

Program hangs forever

Versions

Tested with version 2.0.0 and version 2.0.2 (same behaviour) Targeting .net core 3.1

Additional Information

I love this library. I hope it will run on Linux soon. thank you for your help

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 25 (24 by maintainers)

Most upvoted comments

I noticed it because my NodeJS playwright kept hanging too 😂