Page Unresponsive
and Failed to open file: /run/rosetta/rosetta
in Headed Chromium using Docker Desktop on Apple Silicon Mac
#7552
Labels
Description
I have a setup that is using a headed version of chromium to load pages in the web in a docker image. It works well in lambda and on my coworker's intel macbook from 2019, but locally on my M2 Max laptop I cannot get around this one issue.
On some sites like
verizon.com
, I am able to load the main page content and scroll the page but certain parts of the page (perhaps they are javascript-derived) to not run. Eventually after trying to load for a while it says pops up the error "Page Unresponsive". This prevents me from being able to use any of the sites that I am loading.However, I am able to load youtube fine and watch youtube videos through the connected VNC viewer, so javascript must work in some capacity. Also I tried disabling the VNC viewer and it still has the same issue.
I am using the Apple Virtualization framework on an M2 Max with
Use Rosetta for x86_64/amd64 emulation on Apple Silicon
checked. I have tried turning off the rosetta or using the Docker VMM and it significantly slows down the runtime execution to where it's unusable so that is not an option.I encounter the following errors when running my script, and I feel like the rosetta one is a good culprit but can't figure out how to fix it:
logs from my coworker's successful run on his intel mac, for comparison:
I am using chrome version 123 (revision 1262506) as it seems to be the most stable in a lambda env. Other versions such as revision 1097615 and 1135561 have the same exact issue.
I am running chrome with the flags
i am not using the following flags as they cause issues with initial page loads:
I've tried every combination of flags I can think of. Can't find anyone else with the same issue online. Any and all help would be greatly appreciated.
Build & Run script:
Reproduce
Expected behavior
It should load the pages fine, without "Page Unresponsive" ever appearing.
docker version
Client: Version: 27.4.0 API version: 1.47 Go version: go1.22.10 Git commit: bde2b89 Built: Sat Dec 7 10:35:43 2024 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.37.2 (179585) Engine: Version: 27.4.0 API version: 1.47 (minimum version 1.24) Go version: go1.22.10 Git commit: 92a8393 Built: Sat Dec 7 10:38:33 2024 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.7.21 GitCommit: 472731909fa34bd7bc9c087e4c27943f9835f111 runc: Version: 1.1.13 GitCommit: v1.1.13-0-g58aa920 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Diagnostics ID
6B598F01-B7A3-4CAD-89DF-E913C8018CC5/20250116195929
Additional Info
No response
The text was updated successfully, but these errors were encountered: