puppeteer: [Bug]: Running puppeteer on docker alpine on Mac failed
Bug description
I’m trying to execute a puppeteer script in a docker container, but it fail, I guess due to new apple MacBook architecture.
I tried a lot of args without success, “GPU not usable” is always thrown.
Is anything I miss ?
Thank you
Steps to reproduce the problem:
MacBook Pro 2021 with M1Max chip.
- Build Docker image as in [troubleshooting] (I added bash)
`FROM alpine
RUN apk add --no-cache
chromium
nss
freetype
harfbuzz
ca-certificates
ttf-freefont
nodejs
yarn
bash
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
RUN addgroup -S pptruser && adduser -S -g pptruser pptruser
&& mkdir -p /home/pptruser/Downloads /app
&& chown -R pptruser:pptruser /home/pptruser
&& chown -R pptruser:pptruser /app
USER pptruser WORKDIR /app RUN yarn add puppeteer@10.0.0 `
- Try to execute test.js file in the docker image built on step 1
const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch({ args: ['--no-sandbox', '--disable-setuid-sandbox'], devtools: false, headless: true, dumpio:true }) const page = await browser.newPage() await page.goto('https://www.google.com/') page.on('dialog', async dialog => { console.log(dialog.message()) await dialog.dismiss() }) await page.evaluate(() => alert('This message is inside an alert box')) await browser.close() })()
docker run -v $(pwd):/app -v /app/node_modules --rm puppeteer-chrome-linux:latest bash -c 'node test.js'
Puppeteer version
10.0.0
Node.js version
14.18.1
npm version
using yarn 1.22.10
What operating system are you seeing the problem on?
macOS
Relevant log output
[1104/185135.919040:ERROR:stack_trace_posix.cc(676)] Failed to parse the contents of /proc/self/maps
[1104/185136.111426:ERROR:stack_trace_posix.cc(676)] Failed to parse the contents of /proc/self/maps
[1104/185136.111799:ERROR:stack_trace_posix.cc(676)] Failed to parse the contents of /proc/self/maps
[1104/185136.131606:FATAL:zygote_main_linux.cc(161)] Check failed: sandbox::ThreadHelpers::IsSingleThreaded().
[1104/185136.131756:FATAL:zygote_main_linux.cc(161)] Check failed: sandbox::ThreadHelpers::IsSingleThreaded().
Received signal 6
r8: 000000400bfb12f0Received signal r9: 000000400f62affc r10: 0000000000000008 r11: 0000000000000000
r12: 000000400ead2b50 r13: 000000400ead2b00 r14: 0000004010609d80 r15: 000000000000006f
di: 0000000000000002 si: 000000400bfb1180 bp: 000000400bfb1180 bx: 0000000000000000
dx: 00000000000000006 ax: 0000000000000000 cx: 0000000000000000 sp: 000000400bfb1178
ip:
000000400bff93f2 efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
trp: ffffffffffffffff msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
r8: 000000400bfb12e0qemu: uncaught target signal 6 (Aborted) - core dumped
r9: 000000400f62affc r10: 0000000000000008 r11: 0000000000000000
r12: 000000400eab8940 r13: 000000400eab8900 r14: 0000004010609d80 r15: 000000000000006f
di: 0000000000000002 si: 000000400bfb1170 bp: 000000400bfb1170 bx: 0000000000000000
dx: 0000000000000000 ax: 0000000000000000 cx: 0000000000000000 sp: 000000400bfb1168
ip: 000000400bff93f2 efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
trp: ffffffffffffffff msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
qemu: uncaught target signal 6 (Aborted) - core dumped
[1104/185136.251404:ERROR:bus.cc(392)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[1104/185136.274733:WARNING:dns_config_service_linux.cc(470)] Failed to read DnsConfig.
[1104/185136.343527:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=1002
[1104/185136.343698:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 1 time(s)
[1104/185136.358011:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=1002
[1104/185136.358076:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 2 time(s)
[1104/185136.362151:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=1002
[1104/185136.362204:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 3 time(s)
DevTools listening on ws://127.0.0.1:38921/devtools/browser/6d14c9f4-afd4-48e4-92a3-b16e9b0c0aac
[1104/185136.366420:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=1002
[1104/185136.366473:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 4 time(s)
[1104/185136.369730:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=1002
[1104/185136.369787:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 5 time(s)
[1104/185136.372838:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=1002
[1104/185136.372888:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 6 time(s)
[1104/185136.383133:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=1002
[1104/185136.383192:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 7 time(s)
[1104/185136.418293:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=1002
[1104/185136.419210:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 8 time(s)
[1104/185136.588798:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=1002
[1104/185136.588893:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 9 time(s)
[1104/185136.589027:FATAL:gpu_data_manager_impl_private.cc(414)] GPU process isn't usable. Goodbye.
Received signal 6
r8: 00000040140d4f60 r9: 000000401976beec r10: 0000000000000008 r11: 0000000000000000
r12: 000000401976a908 r13: 00000040140d59b8 r14: 00000040140d53d8 r15: 0000000000000063
di: 0000000000000002 si: 00000040140d4df0 bp: 00000040140d4df0 bx: 0000000000000000
dx: 0000000000000000 ax: 0000000000000000 cx: 0000000000000000 sp: 00000040140d4de8
ip: 000000400bff93f2 efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
trp: ffffffffffffffff msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
qemu: uncaught target signal 6 (Aborted) - core dumped
(node:1) UnhandledPromiseRejectionWarning: #<ErrorEvent>
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 25
- Comments: 38 (1 by maintainers)
I’ve had success working around this by enabling the beta feature ‘Use Rosetta for x86/amd64 emulation on Apple Silicon’ via the docker settings.
Thanks a lot @luke-rogers!
Strange times… we started using docker to avoid these “it works on my machine” moments, and now docker is causing these issues itself 🙈
🖖 Live long and prosper @luke-rogers
I added the ‘–single-process’ option to :
await puppeteer.launch({ args: ['--no-sandbox', '--disable-setuid-sandbox', '--single-process'], devtools: false, headless: true, dumpio:true })
same issue on mac m1
Does the official docker image work for anyone on M1 Macs? https://github.com/puppeteer/puppeteer/pkgs/container/puppeteer
Here’s my dockerfile and it works correctly
I see this same thing. Unfortunately, even using this exact line await puppeteer.launch({ args: [‘–no-sandbox’, ‘–disable-setuid-sandbox’, ‘–single-process’], devtools: false, headless: true, dumpio:true }) I’m still seeing it. Not sure how to fix.
Well said, @TheSalarKhan.
I can confirm that the 'Use Rosetta" suggestion from @luke-rogers worked for me.
I had to update Docker Desktop and macOS to get the option to show up, but with it set I didn’t need any of the puppeteer.launch options people have suggested above.
same issue on mac m1
Error: Browser closed. ==================== Browser output: ==================== <launching> /root/.cache/ms-playwright/chromium-1028/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --single-process --disable-gpu --disable-dev-shm-usage --disable-setuid-sandbox --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-dxU1O2 --remote-debugging-pipe --no-startup-window <launched> pid=790 [pid=790][err] [1103/150937.308676:ERROR:stack_trace_posix.cc(711)] Failed to parse the contents of /proc/self/maps [pid=790][err] [1103/150937.941605:ERROR:stack_trace_posix.cc(711)] Failed to parse the contents of /proc/self/maps [pid=790][err] [1103/150937.952756:ERROR:stack_trace_posix.cc(711)] Failed to parse the contents of /proc/self/maps [pid=790][err] [1103/150937.965572:FATAL:zygote_main_linux.cc(162)] Check failed: sandbox::ThreadHelpers::IsSingleThreaded(). [pid=790][err] #0 0x00400769f342 base::debug::CollectStackTrace() [pid=790][err] #1 0x0040076104f3 base::debug::StackTrace::StackTrace() [pid=790][err] #2 0x00400760d737 logging::LogMessage::~LogMessage() [pid=790][err] #3 0x00400760e4ce logging::LogMessage::~LogMessage() [pid=790][err] #4 0x00400715e437 content::ZygoteMain() [pid=790][err] #5 0x004007158871 content::RunZygote() [pid=790][err] #6 0x004007159734 content::RunOtherNamedProcessTypeMain() [pid=790][err] #7 0x00400715a617 content::ContentMainRunnerImpl::Run() [pid=790][err] #8 0x004007157ba9 content::RunContentProcess() [pid=790][err] #9 0x004007157d0e content::ContentMain() [pid=790][err] #10 0x0040071b9d86 headless::(anonymous namespace)::RunContentMain() [pid=790][err] #11 0x0040071b9c03 headless::RunChildProcessIfNeeded() [pid=790][err] #12 0x0040071b87d5 headless::HeadlessShellMain() [pid=790][err] #13 0x0040037591e3 ChromeMain [pid=790][err] #14 0x0040100efd90 <unknown> [pid=790][err] #15 0x0040100efe40 __libc_start_main [pid=790][err] #16 0x00400375902a _start [pid=790][err] [pid=790][err] qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped [pid=790][err] [1103/150937.977493:FATAL:zygote_main_linux.cc(162)] Check failed: sandbox::ThreadHelpers::IsSingleThreaded(). [pid=790][err] #0 0x00400769f342 base::debug::CollectStackTrace() [pid=790][err] #1 0x0040076104f3 base::debug::StackTrace::StackTrace() [pid=790][err] #2 0x00400760d737 logging::LogMessage::~LogMessage() [pid=790][err] #3 0x00400760e4ce logging::LogMessage::~LogMessage() [pid=790][err] #4 0x00400715e437 content::ZygoteMain() [pid=790][err] #5 0x004007158871 content::RunZygote() [pid=790][err] #6 0x004007159734 content::RunOtherNamedProcessTypeMain() [pid=790][err] #7 0x00400715a617 content::ContentMainRunnerImpl::Run() [pid=790][err] #8 0x004007157ba9 content::RunContentProcess() [pid=790][err] #9 0x004007157d0e content::ContentMain() [pid=790][err] #10 0x0040071b9d86 headless::(anonymous namespace)::RunContentMain() [pid=790][err] #11 0x0040071b9c03 headless::RunChildProcessIfNeeded() [pid=790][err] #12 0x0040071b87d5 headless::HeadlessShellMain() [pid=790][err] #13 0x0040037591e3 ChromeMain [pid=790][err] #14 0x0040100efd90 <unknown> [pid=790][err] #15 0x0040100efe40 __libc_start_main [pid=790][err] #16 0x00400375902a _start [pid=790][err] [pid=790][err] qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped [pid=790][err] Received signal 11 SEGV_MAPERR 2e332e6f732e77 [pid=790][err] #0 0x00400769f342 base::debug::CollectStackTrace() [pid=790][err] #1 0x0040076104f3 base::debug::StackTrace::StackTrace() [pid=790][err] #2 0x00400769ee61 base::debug::(anonymous namespace)::StackDumpSignalHandler() [pid=790][err] #3 0x004010108520 <unknown> [pid=790][err] #4 0x0040087b5838 FcStrSerializeAlloc [pid=790][err] #5 0x0040087a3fae FcDirCacheBuild [pid=790][err] #6 0x0040087a9b46 FcDirCacheScan [pid=790][err] #7 0x0040087a9bde IA__FcDirCacheRead [pid=790][err] #8 0x00400879fa27 FcConfigAddDirList [pid=790][err] #9 0x00400879f972 IA__FcConfigBuildFonts [pid=790][err] #10 0x0040087ad9c1 IA__FcInitLoadConfigAndFonts [pid=790][err] #11 0x00400879ee12 FcConfigInit [pid=790][err] #12 0x00400883ad24 _ZN4base12NoDestructorIN3gfx12_GLOBAL__N_116GlobalFontConfigEDnEC2IJEEEDpOT_ [pid=790][err] #13 0x00400883a61d gfx::GetGlobalFontConfig() [pid=790][err] #14 0x004004bd788e content::BrowserMainRunnerImpl::Initialize() [pid=790][err] #15 0x00400715fd8a headless::HeadlessContentMainDelegate::RunProcess() [pid=790][err] #16 0x004007159332 content::RunBrowserProcessMain() [pid=790][err] #17 0x00400715a7f2 content::ContentMainRunnerImpl::RunBrowser() [pid=790][err] #18 0x00400715a63b content::ContentMainRunnerImpl::Run() [pid=790][err] #19 0x004007157ba9 content::RunContentProcess() [pid=790][err] #20 0x004007157d0e content::ContentMain() [pid=790][err] #21 0x0040071b9d86 headless::(anonymous namespace)::RunContentMain() [pid=790][err] #22 0x0040071b9a28 headless::HeadlessShellMain() [pid=790][err] #23 0x0040037591e3 ChromeMain [pid=790][err] #24 0x0040100efd90 <unknown> [pid=790][err] #25 0x0040100efe40 __libc_start_main [pid=790][err] #26 0x00400375902a _start [pid=790][err] r8: 0000000000000000 r9: 0000000000000018 r10: 0000000000014000 r11: 000000000000001f [pid=790][err] r12: 00003940002ce170 r13: 00003940003a1540 r14: 000000000000001a r15: 00003940002c4000 [pid=790][err] di: 00003940002322a0 si: 00003940002322a0 bp: 000000400f3cf600 bx: 00003940002322a0 [pid=790][err] dx: 00000001ca0e518b ax: 312e332e6f732e6f cx: 00003941ca316000 sp: 000000400f3cf5e0 [pid=790][err] ip: 00000040087b5838 efl: 0000000000000206 cgf: 002b000000000033 erf: 0000000000000004 [pid=790][err] trp: ffffffffffffffff msk: 0000000000000000 cr2: 002e332e6f732e77 [pid=790][err] [end of stack trace] [pid=790][err] qemu: uncaught target signal 11 (Segmentation fault) - core dumped Failed to launch browser. ==================== Browser output: ==================== <launching> /root/.cache/ms-playwright/chromium-1028/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --single-process --disable-gpu --disable-dev-shm-usage --disable-setuid-sandbox --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-dxU1O2 --remote-debugging-pipe --no-startup-window <launched> pid=790 [pid=790][err] [1103/150937.308676:ERROR:stack_trace_posix.cc(711)] Failed to parse the contents of /proc/self/maps [pid=790][err] [1103/150937.941605:ERROR:stack_trace_posix.cc(711)] Failed to parse the contents of /proc/self/maps [pid=790][err] [1103/150937.952756:ERROR:stack_trace_posix.cc(711)] Failed to parse the contents of /proc/self/maps [pid=790][err] [1103/150937.965572:FATAL:zygote_main_linux.cc(162)] Check failed: sandbox::ThreadHelpers::IsSingleThreaded(). [pid=790][err] #0 0x00400769f342 base::debug::CollectStackTrace() [pid=790][err] #1 0x0040076104f3 base::debug::StackTrace::StackTrace() [pid=790][err] #2 0x00400760d737 logging::LogMessage::~LogMessage() [pid=790][err] #3 0x00400760e4ce logging::LogMessage::~LogMessage() [pid=790][err] #4 0x00400715e437 content::ZygoteMain() [pid=790][err] #5 0x004007158871 content::RunZygote() [pid=790][err] #6 0x004007159734 content::RunOtherNamedProcessTypeMain() [pid=790][err] #7 0x00400715a617 content::ContentMainRunnerImpl::Run() [pid=790][err] #8 0x004007157ba9 content::RunContentProcess() [pid=790][err] #9 0x004007157d0e content::ContentMain() [pid=790][err] #10 0x0040071b9d86 headless::(anonymous namespace)::RunContentMain() [pid=790][err] #11 0x0040071b9c03 headless::RunChildProcessIfNeeded() [pid=790][err] #12 0x0040071b87d5 headless::HeadlessShellMain() [pid=790][err] #13 0x0040037591e3 ChromeMain [pid=790][err] #14 0x0040100efd90 <unknown> [pid=790][err] #15 0x0040100efe40 __libc_start_main [pid=790][err] #16 0x00400375902a _start [pid=790][err] [pid=790][err] qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped [pid=790][err] [1103/150937.977493:FATAL:zygote_main_linux.cc(162)] Check failed: sandbox::ThreadHelpers::IsSingleThreaded(). [pid=790][err] #0 0x00400769f342 base::debug::CollectStackTrace() [pid=790][err] #1 0x0040076104f3 base::debug::StackTrace::StackTrace() [pid=790][err] #2 0x00400760d737 logging::LogMessage::~LogMessage() [pid=790][err] #3 0x00400760e4ce logging::LogMessage::~LogMessage() [pid=790][err] #4 0x00400715e437 content::ZygoteMain() [pid=790][err] #5 0x004007158871 content::RunZygote() [pid=790][err] #6 0x004007159734 content::RunOtherNamedProcessTypeMain() [pid=790][err] #7 0x00400715a617 content::ContentMainRunnerImpl::Run() [pid=790][err] #8 0x004007157ba9 content::RunContentProcess() [pid=790][err] #9 0x004007157d0e content::ContentMain() [pid=790][err] #10 0x0040071b9d86 headless::(anonymous namespace)::RunContentMain() [pid=790][err] #11 0x0040071b9c03 headless::RunChildProcessIfNeeded() [pid=790][err] #12 0x0040071b87d5 headless::HeadlessShellMain() [pid=790][err] #13 0x0040037591e3 ChromeMain [pid=790][err] #14 0x0040100efd90 <unknown> [pid=790][err] #15 0x0040100efe40 __libc_start_main [pid=790][err] #16 0x00400375902a _start [pid=790][err] [pid=790][err] qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped [pid=790][err] Received signal 11 SEGV_MAPERR 2e332e6f732e77 [pid=790][err] #0 0x00400769f342 base::debug::CollectStackTrace() [pid=790][err] #1 0x0040076104f3 base::debug::StackTrace::StackTrace() [pid=790][err] #2 0x00400769ee61 base::debug::(anonymous namespace)::StackDumpSignalHandler() [pid=790][err] #3 0x004010108520 <unknown> [pid=790][err] #4 0x0040087b5838 FcStrSerializeAlloc [pid=790][err] #5 0x0040087a3fae FcDirCacheBuild [pid=790][err] #6 0x0040087a9b46 FcDirCacheScan [pid=790][err] #7 0x0040087a9bde IA__FcDirCacheRead [pid=790][err] #8 0x00400879fa27 FcConfigAddDirList [pid=790][err] #9 0x00400879f972 IA__FcConfigBuildFonts [pid=790][err] #10 0x0040087ad9c1 IA__FcInitLoadConfigAndFonts [pid=790][err] #11 0x00400879ee12 FcConfigInit [pid=790][err] #12 0x00400883ad24 _ZN4base12NoDestructorIN3gfx12_GLOBAL__N_116GlobalFontConfigEDnEC2IJEEEDpOT_ [pid=790][err] #13 0x00400883a61d gfx::GetGlobalFontConfig() [pid=790][err] #14 0x004004bd788e content::BrowserMainRunnerImpl::Initialize() [pid=790][err] #15 0x00400715fd8a headless::HeadlessContentMainDelegate::RunProcess() [pid=790][err] #16 0x004007159332 content::RunBrowserProcessMain() [pid=790][err] #17 0x00400715a7f2 content::ContentMainRunnerImpl::RunBrowser() [pid=790][err] #18 0x00400715a63b content::ContentMainRunnerImpl::Run() [pid=790][err] #19 0x004007157ba9 content::RunContentProcess() [pid=790][err] #20 0x004007157d0e content::ContentMain() [pid=790][err] #21 0x0040071b9d86 headless::(anonymous namespace)::RunContentMain() [pid=790][err] #22 0x0040071b9a28 headless::HeadlessShellMain() [pid=790][err] #23 0x0040037591e3 ChromeMain [pid=790][err] #24 0x0040100efd90 <unknown> [pid=790][err] #25 0x0040100efe40 __libc_start_main [pid=790][err] #26 0x00400375902a _start [pid=790][err] r8: 0000000000000000 r9: 0000000000000018 r10: 0000000000014000 r11: 000000000000001f [pid=790][err] r12: 00003940002ce170 r13: 00003940003a1540 r14: 000000000000001a r15: 00003940002c4000 [pid=790][err] di: 00003940002322a0 si: 00003940002322a0 bp: 000000400f3cf600 bx: 00003940002322a0 [pid=790][err] dx: 00000001ca0e518b ax: 312e332e6f732e6f cx: 00003941ca316000 sp: 000000400f3cf5e0 [pid=790][err] ip: 00000040087b5838 efl: 0000000000000206 cgf: 002b000000000033 erf: 0000000000000004 [pid=790][err] trp: ffffffffffffffff msk: 0000000000000000 cr2: 002e332e6f732e77 [pid=790][err] [end of stack trace] [pid=790][err] qemu: uncaught target signal 11 (Segmentation fault) - core dumped at /app/node_modules/.pnpm/playwright-core@1.27.1/node_modules/playwright-core/lib/server/chromium/crConnection.js:206:16 at new Promise (<anonymous>) at CRSession.send (/app/node_modules/.pnpm/playwright-core@1.27.1/node_modules/playwright-core/lib/server/chromium/crConnection.js:202:12) at Function.connect (/app/node_modules/.pnpm/playwright-core@1.27.1/node_modules/playwright-core/lib/server/chromium/crBrowser.js:58:35) at Chromium._connectToTransport (/app/node_modules/.pnpm/playwright-core@1.27.1/node_modules/playwright-core/lib/server/chromium/chromium.js:166:33) at Chromium._innerLaunch (/app/node_modules/.pnpm/playwright-core@1.27.1/node_modules/playwright-core/lib/server/browserType.js:155:32) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Chromium._innerLaunchWithRetries (/app/node_modules/.pnpm/playwright-core@1.27.1/node_modules/playwright-core/lib/server/browserType.js:111:14) at async ProgressController.run (/app/node_modules/.pnpm/playwright-core@1.27.1/node_modules/playwright-core/lib/server/progress.js:101:22) at async Chromium.launch (/app/node_modules/.pnpm/playwright-core@1.27.1/node_modules/playwright-core/lib/server/browserType.js:86:21)
Same issue on mac m1, I’ve tried the following args:
PD: I also had to disable the sandbox, even when I’m not using the default root user
UPDATE: I’ve managed to get this working by enabling to the experimental Big Sur virtualization framework on Docker Desktop
A workaound is to add ‘–single-process’ option to chromium args.
Should I keep my issue here or report it to chromium ?