linkspector icon indicating copy to clipboard operation
linkspector copied to clipboard

[BUG] Failed to launch the browser process

Open Goooler opened this issue 2 months ago • 2 comments

Describe the bug

 Running linkspector with reviewdog 🐶 ...
  💥 Main error: Failed to launch the browser process:  Code: 2
  
  stderr:
  /home/runner/.cache/puppeteer/chrome/linux_arm-142.0.7444.162/chrome-linux64/chrome: 1: $@@@�����Dv�Dv��������U1�U1���������P��: not found
  /home/runner/.cache/puppeteer/chrome/linux_arm-142.0.7444.162/chrome-linux64/chrome: 2: �������,5����������h: not found
  /home/runner/.cache/puppeteer/chrome/linux_arm-142.0.7444.162/chrome-linux64/chrome: 1: ELF: not found
  /home/runner/.cache/puppeteer/chrome/linux_arm-142.0.7444.162/chrome-linux64/chrome: 1: Syntax error: Unterminated quoted string
  
  TROUBLESHOOTING: https://pptr.dev/troubleshooting
  
  reviewdog: parse error: failed to unmarshal rdjson (DiagnosticResult): proto: syntax error (line 1:1): unexpected token 
  Error: Process completed with exit code 1.

See

To Reproduce Steps to reproduce the behavior:

Use the action:

  - uses: umbrelladocs/action-linkspector@v1
    with:
      reporter: github-pr-check
      fail_on_error: true
      filter_mode: nofilter
      fail_level: any

Run it and you'll see. Or reproduce the issue in https://github.com/GradleUp/shadow.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Goooler avatar Nov 14 '25 08:11 Goooler

Thank you @Goooler

The issue is that the action is running on OS: Linux (arm64) which is not supported by Puppeteer on Linux.

However, there is a workaround to download the Chrome binary and then provide it to puppeteer. Till I get to update the action and gracefully handle this, can you test if it works on x64 architecture for you?

Thanks.

gaurav-nelson avatar Nov 16 '25 23:11 gaurav-nelson

After switching to ubuntu-latest, it works. Thanks for the help!

BTW, the action worked on ubuntu-24.04-arm but failed randomly. I filed issue #141. Now it always fails on the arm runners.

Goooler avatar Nov 17 '25 01:11 Goooler