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

[Bug]: Chromium 109.0.5412.0 (r1069273) crashes on M1 Mac when using devtools console #9470

Closed
alexmi256 opened this issue Jan 6, 2023 · 4 comments · Fixed by #9489, #9495, #9500 or #9501
Closed

Comments

@alexmi256
Copy link

Bug description

Steps to reproduce the problem:

  1. Be on M1 Mac (ARM64)
  2. Launch puppeteer: v19.4.0 or puppeteer: v19.4.1 which use Chromium 109.0.5412.0 (r1069273) without headless mode OR download those versions of Chromium from https://storage.googleapis.com/chromium-browser-snapshots/Mac/1069273/chrome-mac.zip or https://storage.googleapis.com/chromium-browser-snapshots/Mac_Arm/1069273/chrome-mac.zip
  3. Try to use the write some javascript in the Chromium devtools JS console

Expect:

  • Can use devtools JS console

Actual:

  • Chromium crashes

Example script:

import puppeteer from 'puppeteer';

(async () => {
  const browser = await puppeteer.launch({
    ignoreHTTPSErrors: true,
    headless: false,
    devtools: true,
    ignoreDefaultArgs: ['--disable-extensions'],
    args: [
      '--no-sandbox',
      `--ignore-certificate-errors`,
    ],
  });
})();

Notes:

  • Windows version of chromium seems fine
  • Both x86_64 (which uses Rosetta) and ARM64 version of Chromium crash on M1 Mac
  • I've tried 19.2.0 which uses 1056772 and this works as expected
  • Chromium logs don't appear to give any relevant errors

Puppeteer version

19.4.1

Node.js version

19.1.0

npm version

8.19.3

What operating system are you seeing the problem on?

macOS

Configuration file

No response

Relevant log output

No response

@alexmi256 alexmi256 added the bug label Jan 6, 2023
@alexmi256 alexmi256 changed the title [Bug]: Chromium 109.0.5412.0 (r1069273) crashes on M1 Mac when using devtools [Bug]: Chromium 109.0.5412.0 (r1069273) crashes on M1 Mac when using devtools console Jan 6, 2023
@OrKoN
Copy link
Collaborator

OrKoN commented Jan 11, 2023

Able to repro but don't see any crash logs or anything like this. Note that we currently don't officially support ARM and it looks like a problem with the binary so it will be probably solved with the next binary roll.

@OrKoN
Copy link
Collaborator

OrKoN commented Jan 11, 2023

We also found a problem with the ARM experimental flag: it looks like the flag would lead to the x86 binary download as well. I will give it a try once the new version is published.

@alexmi256
Copy link
Author

We also found a problem with the ARM experimental flag: it looks like the flag would lead to the x86 binary download as well. I will give it a try once the new version is published.

AFAICT neither setting PUPPETEER_EXPERIMENTAL_CHROMIUM_MAC_ARM=1/true nor experiments: {macArmChromiumEnabled: true }, works for this

OrKoN pushed a commit that referenced this issue Jan 12, 2023
🤖 I have created a release *beep* *boop*
---


<details><summary>puppeteer: 19.5.2</summary>

##
[19.5.2](puppeteer-v19.5.1...puppeteer-v19.5.2)
(2023-01-11)


### Miscellaneous Chores

* **puppeteer:** Synchronize puppeteer versions


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * puppeteer-core bumped from 19.5.1 to 19.5.2
</details>

<details><summary>puppeteer-core: 19.5.2</summary>

##
[19.5.2](puppeteer-core-v19.5.1...puppeteer-core-v19.5.2)
(2023-01-11)


### Bug Fixes

* make sure browser fetcher in launchers uses configuration
([#9493](#9493))
([df55439](df55439)),
closes [#9470](#9470)
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@OrKoN OrKoN reopened this Jan 12, 2023
@OrKoN
Copy link
Collaborator

OrKoN commented Jan 12, 2023

PUPPETEER_EXPERIMENTAL_CHROMIUM_MAC_ARM is fixed in 19.5.2 but the crash still happens so #9470 (comment) still applies.

OrKoN pushed a commit that referenced this issue Jan 23, 2023
🤖 I have created a release *beep* *boop*
---


<details><summary>puppeteer: 19.6.0</summary>

##
[19.6.0](puppeteer-v19.5.2...puppeteer-v19.6.0)
(2023-01-23)


### Miscellaneous Chores

* **puppeteer:** Synchronize puppeteer versions


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * puppeteer-core bumped from 19.5.2 to 19.6.0
</details>

<details><summary>puppeteer-core: 19.6.0</summary>

##
[19.6.0](puppeteer-core-v19.5.2...puppeteer-core-v19.6.0)
(2023-01-23)


### Features

* **chromium:** roll to Chromium 110.0.5479.0 (r1083080)
([#9500](#9500))
([06e816b](06e816b)),
closes [#9470](#9470)
* **page:** Adding support for referrerPolicy in `page.goto`
([#9561](#9561))
([e3d69ec](e3d69ec))


### Bug Fixes

* firefox revision resolution should not update chrome revision
([#9507](#9507))
([f59bbf4](f59bbf4)),
closes [#9461](#9461)
* improve screenshot method types
([#9529](#9529))
([6847f88](6847f88))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment