browserless / browserless

Deploy headless browsers in Docker. Run on our cloud or bring your own. Free for non-commercial uses.
https://browserless.io
Other
8.67k stars 710 forks source link

chromium launched failed for arm64 (2.17.1) #4247

Closed youshoubianer closed 1 month ago

youshoubianer commented 2 months ago

browserless is running on docker. browserless version: 2.17.1 arch: arm64

run the chromium lanuched command (from browserless container logs) in the browserless container.

I'm not sure why such an error occurs. Can you give me some help? 1、Received signal 11 SEGV_ACCERR ffff8a382a60 2、ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=139

command:

/usr/local/bin/playwright-browsers/chromium-1129/chrome-linux/chrome --allow-pre-commit-input --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-hang-monitor --disable-infobars --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-search-engine-choice-screen --disable-sync --enable-automation --export-tagged-pdf --generate-pdf-document-outline --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --disable-features=Translate,AcceptCHFrame,MediaRouter,OptimizationHints,ProcessPerSiteUpToMainFrameThreshold,IsolateSandboxedIframes --enable-features=PdfOopif --headless=new --hide-scrollbars --mute-audio about:blank --remote-debugging-port=38777 --no-sandbox --user-data-dir=/tmp/browserless-data-dirs/browserless-data-dir-98214f47-f30e-4dd5-92e1-de9ceb6a54ea

the error log is:

[161:176:0822/014008.528186:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[161:179:0822/014008.530124:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[161:179:0822/014008.530181:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[161:176:0822/014008.534827:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[161:176:0822/014008.534878:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[161:176:0822/014008.534904:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[161:176:0822/014008.534925:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[161:176:0822/014008.534945:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Received signal 11 SEGV_ACCERR ffff8a382a60
[161:176:0822/014008.575832:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[161:176:0822/014008.575870:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Received signal 11 SEGV_ACCERR ffffb4142a60

DevTools listening on ws://127.0.0.1:38777/devtools/browser/0db4dbfc-4361-4d80-8ce8-d92bda2c8700
Received signal 11 SEGV_ACCERR ffffb4142a60
Received signal 11 SEGV_ACCERR ffffb4142a60
[161:209:0822/014008.680421:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[161:209:0822/014008.680476:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[161:209:0822/014008.680532:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[161:209:0822/014008.680568:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[161:209:0822/014008.680600:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
Received signal 11 SEGV_ACCERR ffffb4142a60
[161:161:0822/014010.162728:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=139
Received signal 11 SEGV_ACCERR ffff8a382a60
Received signal 11 SEGV_ACCERR ffffb4142a60
[161:161:0822/014010.686833:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=139
Received signal 11 SEGV_ACCERR ffff8a382a60
Received signal 11 SEGV_ACCERR ffffb4142a60
[161:161:0822/014011.253986:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=139
Received signal 11 SEGV_ACCERR ffff8a382a60
Received signal 11 SEGV_ACCERR ffffb4142a60
Received signal 11 SEGV_ACCERR ffffb4142a60
[161:161:0822/014011.800940:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=139
Received signal 11 SEGV_ACCERR ffff8a382a60
Received signal 11 SEGV_ACCERR ffffb4142a60
[161:161:0822/014012.447628:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=139
Received signal 11 SEGV_ACCERR ffff8a382a60
[161:161:0822/014012.966470:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=139
Received signal 11 SEGV_ACCERR ffff8a382a60
Received signal 11 SEGV_ACCERR ffffb4142a60
Received signal 11 SEGV_ACCERR ffffb4142a60
[161:161:0822/014013.643164:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=139
Received signal 11 SEGV_ACCERR ffff8a382a60
[161:161:0822/014014.183183:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=139
Received signal 11 SEGV_ACCERR ffff8a382a60
Received signal 11 SEGV_ACCERR ffffb4142a60
[161:161:0822/014014.789241:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=139
[161:161:0822/014014.789276:FATAL:gpu_data_manager_impl_private.cc(436)] GPU process isn't usable. Goodbye.
#0 0xaaaadf641c00 base::debug::CollectStackTrace()
#1 0xaaaadf630540 base::debug::StackTrace::StackTrace()
#2 0xaaaadf58ada8 logging::LogMessage::Flush()
#3 0xaaaadf58b818 logging::LogMessageFatal::~LogMessageFatal()
#4 0xaaaadd5c6d74 content::(anonymous namespace)::IntentionallyCrashBrowserForUnusableGpuProcess()
#5 0xaaaadd5c4070 content::GpuDataManagerImplPrivate::FallBackToNextGpuMode()
#6 0xaaaadd5c2c98 content::GpuDataManagerImpl::FallBackToNextGpuMode()
#7 0xaaaadd5ce154 content::GpuProcessHost::RecordProcessCrash()
#8 0xaaaadd5cf6e4 content::GpuProcessHost::OnProcessCrashed()
#9 0xaaaadd3bb3cc content::BrowserChildProcessHostImpl::OnChildDisconnected()
#10 0xaaaadff67724 IPC::internal::MessagePipeReader::OnPipeError()
#11 0xaaaadf55bf48 mojo::InterfaceEndpointClient::NotifyError()
#12 0xaaaadff6bf4c IPC::ChannelAssociatedGroupController::NotifyEndpointOfError()
#13 0xaaaadff6d72c IPC::ChannelAssociatedGroupController::OnPipeError()
#14 0xaaaadf558634 mojo::Connector::HandleError()
#15 0xaaaadf558f90 mojo::Connector::OnWatcherHandleReady()
#16 0xaaaadb73ac78 base::RepeatingCallback<>::Run()
#17 0xaaaadb044624 base::RepeatingCallback<>::Run()
#18 0xaaaadf92a4f0 mojo::SimpleWatcher::OnHandleReady()
#19 0xaaaadf92a7f8 base::internal::Invoker<>::RunOnce()
#20 0xaaaadf5d7cec base::TaskAnnotator::RunTaskImpl()
#21 0xaaaadf5f1704 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl()
#22 0xaaaadf5f12a8 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork()
#23 0xaaaadf65735c base::(anonymous namespace)::WorkSourceDispatch()
#24 0xffffba44194c g_main_context_dispatch
#25 0xffffba441bbc (/usr/lib/aarch64-linux-gnu/libglib-2.0.so.0.6400.6+0x51bbb)
#26 0xffffba441c5c g_main_context_iteration
#27 0xaaaadf656b24 base::MessagePumpGlib::Run()
#28 0xaaaadf5f1da0 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run()
#29 0xaaaadf5baebc base::RunLoop::Run()
#30 0xaaaadd3dcd40 content::BrowserMainLoop::RunMainMessageLoop()
#31 0xaaaadd3de844 content::BrowserMainRunnerImpl::Run()
#32 0xaaaadd3da56c content::BrowserMain()
#33 0xaaaadeb041f8 content::RunBrowserProcessMain()
#34 0xaaaadeb0587c content::ContentMainRunnerImpl::RunBrowser()
#35 0xaaaadeb05444 content::ContentMainRunnerImpl::Run()
#36 0xaaaadeb02d98 content::RunContentProcess()
#37 0xaaaadeb0324c content::ContentMain()
#38 0xaaaadae55324 ChromeMain
#39 0xffffb9560e10 __libc_start_main
#40 0xaaaadae55034 (/usr/local/bin/playwright-browsers/chromium-1129/chrome-linux/chrome+0x4585033)
Task trace:
#0 0xaaaadf92a68c mojo::SimpleWatcher::Context::Notify()
Crash keys:
  "num-extensions" = "0"
  "reentry_guard_tls_slot" = "unused"
  "variations" = "db59f83a-3f4a17df,8bccc03b-3f4a17df,bd6dd170-96cd1f5b,7a74f189-d34b6670,2922bcfb-d586dc56,6cd3ae7b-3f4a17df,b334488c-3f4a17df,391562d6-3f4a17df,af00e384-3f4a17df,ae727645-d13781e7,6b7d6c5-3f4a17df,f3ed486d-3f4a17df,da493d3c-3f4a17df,314a184e-3f4a17df,f503a768-3f4a17df,9dea5087-3f4a17df,a8045d2e-aaac510a,b45d023c-5fae3666,d625ae6a-5570cbfd,72bafd3e-cdb4c186,36d5ee52-3f4a17df,eaa63bb-3f4a17df,b13ca3d9-84f6cff8,3dbad317-3f4a17df,ade3efeb-e1cc0f14,d3897495-3f4a17df,265c01cc-3f4a17df,a872c765-8cf03b42,c892bdaf-4daf39ea,3bcba8c9-d6781875,97b1b2fe-3f4a17df,fc9ceed7-ee2a48b4,5f30b51a-f38d1999,1918000d-af12514f,28329b37-17727981,255aa854-6e4db4c1,45a2f2f-f9e1b5a8,10713630-3f4a17df,26179a49-3f4a17df,cad2b12b-8ef57898,24e1e5d7-3f4a17df,d91dc415-3f4a17df,a6e1c674-3f4a17df,dcceede7-908383eb,999e8980-6ec7edcb,49ad328f-3f4a17df,aabbd7a1-aabbd7a1,bb88d3f2-3f4a17df,f69863c5-3f4a17df,ef4764d7-88fcaf7d,d97f772b-c4b8b19c,31a21008-fdca1981,ecd9add5-3f4a17df,669a7db8-3f4a17df,f1cbb679-3d47f4f4,b86bee04-3f4a17df,62366563-3f4a17df,741e95d4-3f4a17df,5abe5347-3f4a17df,886fd002-3f4a17df,1a04f685-e44403bb,820f17d2-e484eeec,44666d99-3f4a17df,12733ec4-3f4a17df,3b03aade-3f4a17df,3c978b59-3f4a17df,ad4acdda-3f4a17df,c610516d-19361e9e,7fb629a1-60fdb59,3f752d-3f4a17df,d9ab447-b187d1bd,90860314-5ab828e2,eb96e6dd-71519e17,2468d6e5-3f4a17df,f5a1eb9a-3f4a17df,ac59e11a-3f4a17df,d6284ba0-9610fd4e,57d6085b-3f4a17df,6ad21bf6-727a1257,c76ebd-49bf2079,a98def31-2a5a8f5d,47be28a0-174c3153,ea9324c5-3f4a17df,d3566fbd-c6f74b94,e5354680-7e052551,56aa5797-e5fec5a6,4b266bfd-3f4a17df,f9be514e-3f4a17df,4d936449-fd549ada,dd037d0e-3f4a17df,5c7c8339-3f4a17df,2c262894-e5b2e0d7,585aa9da-3f4a17df,bbb8e428-3f4a17df,dedebdad-3f4a17df,2ad820b5-642c9997,95947c3d-3f4a17df,79662520-3f4a17df,b654e8a3-3f4a17df,8d6c3683-4ca34ce3,6b1f3ab8-d16f1562,7ec047c2-3f4a17df,44d0ae84-3f4a17df,23226e84-65aafa13,3f5c0edb-3f4a17df,9e5c75f1-30e1b12b,ab57163a-3f4a17df,4d625646-3f4a17df,35290cf-ce50784e,82ada734-df5071b7,349863a7-3f4a17df,8fe440e0-3f4a17df,40debc11-3f4a17df,725a78a7-ac3faf8,e5938e6b-3f4a17df,b53f3ef9-3f4a17df,647bb914-3f4a17df,dc88470b-339f19b3,cad46b80-3f4a17df,f3b6291d-128494d0,6e4a21fe-efc28565,bcb58f65-3f4a17df,c984ae3d-65bced95,f314f5b9-35ef4d3e,30cf4980-61673e6,194d8898-3f4a17df,96d006a-c3a49e71,b3a4e30a-3f4a17df,f43fe77d-3f4a17df,4190c9c9-3f4a17df,b0f15b33-b0f15b33,a53fd13b-3f4a17df,f112d133-3f4a17df,5c4d440e-58c8ac88,d512da3a-9e17c487,5eb9e4fc-3f4a17df,1fce7d57-3f4a17df,17f5c3f5-3f4a17df,35a386c3-3f4a17df,258151b3-3f4a17df,e8c68789-49a20295,d990c4ac-3f4a17df,97063883-1f820d08,aa540f4f-3f4a17df,2c561bd6-3f4a17df,64fc6f03-f716500,5133eb43-3f4a17df,ae1581ef-35f6ea04,86bc59c9-3f4a17df,bdfa447c-3f4a17df,b1ceb06f-3f4a17df,91cba98-b3b3bb94,6b7d4090-3f4a17df,d4754f61-3f4a17df,c1e0d32e-3f4a17df,54412203-573b100b,aa21b99b-3f4a17df,4076100b-3f4a17df,8d7344de-3f4a17df,72baad2d-3f4a17df,836f1ad3-3f4a17df,9b99945d-3f4a17df,fd051c38-3f4a17df,28410024-3f4a17df,4ea303a6-3f4a17df,e61eae14-3f4a17df,3042ad4b-ad2fa222,b3c54bb3-88fcaf7d,b56876e4-a6ad8aed,47a0a3b2-3f4a17df,dbfa96f6-3f4a17df,569d11c1-d2eecd9e,f2b6a878-3f4a17df,1d865dc8-3b8fb192,6c377b0f-a744f381,70678518-dee66fa8,be338734-dee66fa8,5f9907a9-dee66fa8,8eeccb9a-dee66fa8,2b465683-dee66fa8,52fc7926-dee66fa8,bc9b361d-dee66fa8,a41a7188-dee66fa8,ff71bfdc-dee66fa8,e7cc79d5-dee66fa8,6daa4147-dee66fa8,4b935545-3138f049,9a38bae3-3d47f4f4,2d1e43a3-3d47f4f4,386dc267-3d47f4f4,6b260bea-b31978bc,d69d967d-3695c92e,"
  "num-experiments" = "192"
  "switch-38" = "about:blank"
  "switch-37" = "--use-angle=swiftshader-webgl"
  "switch-36" = "--ozone-override-screen-size=800,600"
  "switch-35" = "--ozone-platform=headless"
  "switch-34" = "--noerrdialogs"
  "switch-33" = "--user-data-dir=/tmp/browserless-data-dirs/browserless-data-dir-"
  "switch-32" = "--no-sandbox"
  "switch-31" = "--remote-debugging-port=38777"
  "switch-30" = "--mute-audio"
  "switch-29" = "--hide-scrollbars"
  "switch-28" = "--headless=new"
  "switch-27" = "--use-mock-keychain"
  "switch-26" = "--password-store=basic"
  "switch-25" = "--no-first-run"
  "switch-24" = "--metrics-recording-only"
  "switch-23" = "--force-color-profile=srgb"
  "switch-22" = "--generate-pdf-document-outline"
  "switch-21" = "--export-tagged-pdf"
  "switch-20" = "--enable-automation"
  "switch-19" = "--disable-sync"
  "switch-18" = "--disable-search-engine-choice-screen"
  "switch-17" = "--disable-renderer-backgrounding"
  "switch-16" = "--disable-prompt-on-repost"
  "switch-15" = "--disable-popup-blocking"
  "switch-14" = "--disable-ipc-flooding-protection"
  "switch-13" = "--disable-infobars"
  "switch-12" = "--disable-hang-monitor"
  "switch-11" = "--disable-extensions"
  "switch-10" = "--disable-dev-shm-usage"
  "switch-9" = "--disable-default-apps"
  "switch-8" = "--disable-component-update"
  "switch-7" = "--disable-component-extensions-with-background-pages"
  "switch-6" = "--disable-client-side-phishing-detection"
  "switch-5" = "--disable-breakpad"
  "switch-4" = "--disable-backgrounding-occluded-windows"
  "switch-3" = "--disable-background-timer-throttling"
  "switch-2" = "--disable-background-networking"
  "switch-1" = "--allow-pre-commit-input"
  "num-switches" = "42"
  "commandline-disabled-feature-6" = "IsolateSandboxedIframes"
  "commandline-disabled-feature-5" = "ProcessPerSiteUpToMainFrameThreshold"
  "commandline-disabled-feature-4" = "OptimizationHints"
  "commandline-disabled-feature-3" = "MediaRouter"
  "commandline-disabled-feature-2" = "AcceptCHFrame"
  "commandline-disabled-feature-1" = "Translate"
  "commandline-enabled-feature-1" = "PdfOopif"
  "osarch" = "aarch64"
  "pid" = "161"
  "ptype" = "browser"

Received signal 6
#0 0xaaaadf641c00 base::debug::CollectStackTrace()
#1 0xaaaadf630540 base::debug::StackTrace::StackTrace()
#2 0xaaaadf641aac base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0xffffba5b066c ([vdso]+0x66b)
#4 0xffffb9573d78 gsignal
#5 0xffffb9560aac abort
#6 0xaaaadf624f50 base::debug::BreakDebuggerAsyncSafe()
#7 0xaaaadf58b790 base::RepeatingCallback<>::Run()
#8 0xaaaadf58b64c logging::LogMessage::HandleFatal()
#9 0xaaaadf58b2d4 logging::LogMessage::Flush()
#10 0xaaaadf58b818 logging::LogMessageFatal::~LogMessageFatal()
#11 0xaaaadd5c6d74 content::(anonymous namespace)::IntentionallyCrashBrowserForUnusableGpuProcess()
#12 0xaaaadd5c4070 content::GpuDataManagerImplPrivate::FallBackToNextGpuMode()
#13 0xaaaadd5c2c98 content::GpuDataManagerImpl::FallBackToNextGpuMode()
#14 0xaaaadd5ce154 content::GpuProcessHost::RecordProcessCrash()
#15 0xaaaadd5cf6e4 content::GpuProcessHost::OnProcessCrashed()
#16 0xaaaadd3bb3cc content::BrowserChildProcessHostImpl::OnChildDisconnected()
#17 0xaaaadff67724 IPC::internal::MessagePipeReader::OnPipeError()
#18 0xaaaadf55bf48 mojo::InterfaceEndpointClient::NotifyError()
#19 0xaaaadff6bf4c IPC::ChannelAssociatedGroupController::NotifyEndpointOfError()
#20 0xaaaadff6d72c IPC::ChannelAssociatedGroupController::OnPipeError()
#21 0xaaaadf558634 mojo::Connector::HandleError()
#22 0xaaaadf558f90 mojo::Connector::OnWatcherHandleReady()
#23 0xaaaadb73ac78 base::RepeatingCallback<>::Run()
#24 0xaaaadb044624 base::RepeatingCallback<>::Run()
#25 0xaaaadf92a4f0 mojo::SimpleWatcher::OnHandleReady()
#26 0xaaaadf92a7f8 base::internal::Invoker<>::RunOnce()
#27 0xaaaadf5d7cec base::TaskAnnotator::RunTaskImpl()
#28 0xaaaadf5f1704 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl()
#29 0xaaaadf5f12a8 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork()
#30 0xaaaadf65735c base::(anonymous namespace)::WorkSourceDispatch()
#31 0xffffba44194c g_main_context_dispatch
#32 0xffffba441bbc (/usr/lib/aarch64-linux-gnu/libglib-2.0.so.0.6400.6+0x51bbb)
#33 0xffffba441c5c g_main_context_iteration
#34 0xaaaadf656b24 base::MessagePumpGlib::Run()
#35 0xaaaadf5f1da0 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run()
#36 0xaaaadf5baebc base::RunLoop::Run()
#37 0xaaaadd3dcd40 content::BrowserMainLoop::RunMainMessageLoop()
#38 0xaaaadd3de844 content::BrowserMainRunnerImpl::Run()
#39 0xaaaadd3da56c content::BrowserMain()
#40 0xaaaadeb041f8 content::RunBrowserProcessMain()
#41 0xaaaadeb0587c content::ContentMainRunnerImpl::RunBrowser()
#42 0xaaaadeb05444 content::ContentMainRunnerImpl::Run()
#43 0xaaaadeb02d98 content::RunContentProcess()
#44 0xaaaadeb0324c content::ContentMain()
#45 0xaaaadae55324 ChromeMain
#46 0xffffb9560e10 __libc_start_main
#47 0xaaaadae55034 (/usr/local/bin/playwright-browsers/chromium-1129/chrome-linux/chrome+0x4585033)
[end of stack trace]
Aborted (core dumped)
joelgriffith commented 2 months ago

I see aarch64 in those logs, wanted to verify that you have gotten the correct arch pulled in docker?

docker pull --platform=linux/arm64 ghcr.io/browserless/chromium:latest
youshoubianer commented 2 months ago

@joelgriffith Thank you for your reply.

but I tried the command for the latest version of arm64, and got the same error...

the browserless debug error is:

puppeteer:protocol:SEND ► [
  puppeteer:protocol:SEND ►   '{"method":"Target.setAutoAttach","params":{"waitForDebuggerOnStart":true,"flatten":true,"autoAttach":true,"filter":[{}]},"id":1,"sessionId":"13A92AEF109DDD49E74D376B0E1A4859"}'
  puppeteer:protocol:SEND ► ] +0ms
  puppeteer:protocol:SEND ► [
  puppeteer:protocol:SEND ►   '{"method":"Runtime.runIfWaitingForDebugger","id":2,"sessionId":"13A92AEF109DDD49E74D376B0E1A4859"}'
  puppeteer:protocol:SEND ► ] +0ms
  puppeteer:protocol:RECV ◀ [
  puppeteer:protocol:RECV ◀   '{"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"33E3B8CD762BF1F9BBBA5CB9B5004CB9","type":"page","title":"","url":"about:blank","attached":false,"canAccessOpener":false,"browserContextId":"EE84E6C09BF11944C13D0D51389E729A"}}}'
  puppeteer:protocol:RECV ◀ ] +0ms
  puppeteer:protocol:RECV ◀ [
  puppeteer:protocol:RECV ◀   '{"method":"Target.targetInfoChanged","params":{"targetInfo":{"targetId":"33E3B8CD762BF1F9BBBA5CB9B5004CB9","type":"page","title":"","url":"about:blank","attached":true,"canAccessOpener":false,"browserContextId":"EE84E6C09BF11944C13D0D51389E729A"}}}'
  puppeteer:protocol:RECV ◀ ] +0ms
  puppeteer:protocol:RECV ◀ [
  puppeteer:protocol:RECV ◀   '{"method":"Target.attachedToTarget","params":{"sessionId":"05CA4763DB849B544C181308DA6A698E","targetInfo":{"targetId":"33E3B8CD762BF1F9BBBA5CB9B5004CB9","type":"page","title":"","url":"about:blank","attached":true,"canAccessOpener":false,"browserContextId":"EE84E6C09BF11944C13D0D51389E729A"},"waitingForDebugger":false},"sessionId":"13A92AEF109DDD49E74D376B0E1A4859"}'
  puppeteer:protocol:RECV ◀ ] +0ms
  puppeteer:protocol:SEND ► [
  puppeteer:protocol:SEND ►   '{"method":"Target.setAutoAttach","params":{"waitForDebuggerOnStart":true,"flatten":true,"autoAttach":true,"filter":[{}]},"id":1,"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:SEND ► ] +0ms
  puppeteer:protocol:SEND ► [
  puppeteer:protocol:SEND ►   '{"method":"Runtime.runIfWaitingForDebugger","id":2,"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:SEND ► ] +0ms
  puppeteer:protocol:SEND ► [
  puppeteer:protocol:SEND ►   '{"method":"Network.enable","id":3,"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:SEND ► ] +0ms
  puppeteer:protocol:SEND ► [
  puppeteer:protocol:SEND ►   '{"method":"Network.setCacheDisabled","params":{"cacheDisabled":false},"id":4,"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:SEND ► ] +0ms
  puppeteer:protocol:SEND ► [
  puppeteer:protocol:SEND ►   '{"method":"Fetch.disable","id":5,"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:SEND ► ] +0ms
  puppeteer:protocol:SEND ► [
  puppeteer:protocol:SEND ►   '{"method":"Page.enable","id":6,"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:SEND ► ] +0ms
  puppeteer:protocol:SEND ► [
  puppeteer:protocol:SEND ►   '{"method":"Page.getFrameTree","id":7,"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:SEND ► ] +0ms
  puppeteer:protocol:SEND ► [
  puppeteer:protocol:SEND ►   '{"method":"Page.setLifecycleEventsEnabled","params":{"enabled":true},"id":8,"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:SEND ► ] +0ms
  puppeteer:protocol:SEND ► [
  puppeteer:protocol:SEND ►   '{"method":"Runtime.enable","id":9,"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:SEND ► ] +0ms
  puppeteer:protocol:SEND ► [
  puppeteer:protocol:SEND ►   '{"method":"Performance.enable","id":10,"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:SEND ► ] +0ms
  puppeteer:protocol:SEND ► [
  puppeteer:protocol:SEND ►   '{"method":"Log.enable","id":11,"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:SEND ► ] +0ms
  puppeteer:protocol:RECV ◀ [
  puppeteer:protocol:RECV ◀   '{"id":1,"result":{},"sessionId":"13A92AEF109DDD49E74D376B0E1A4859"}'
  puppeteer:protocol:RECV ◀ ] +0ms
  puppeteer:protocol:RECV ◀ [
  puppeteer:protocol:RECV ◀   '{"id":2,"result":{},"sessionId":"13A92AEF109DDD49E74D376B0E1A4859"}'
  puppeteer:protocol:RECV ◀ ] +0ms
  puppeteer:protocol:RECV ◀ [
  puppeteer:protocol:RECV ◀   '{"id":5,"result":{},"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:RECV ◀ ] +0ms
  puppeteer:protocol:RECV ◀ [
  puppeteer:protocol:RECV ◀   '{"id":1,"result":{},"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:RECV ◀ ] +0ms
  puppeteer:protocol:RECV ◀ [
  puppeteer:protocol:RECV ◀   '{"method":"Network.loadingFailed","params":{"requestId":"FF2857032CC547D22E13B1E9D20E3A55","timestamp":30518803.392214,"type":"Document","errorText":"net::ERR_ABORTED","canceled":true},"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:RECV ◀ ] +0ms
  puppeteer:protocol:RECV ◀ [
  puppeteer:protocol:RECV ◀   '{"method":"Page.frameStoppedLoading","params":{"frameId":"33E3B8CD762BF1F9BBBA5CB9B5004CB9"},"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:RECV ◀ ] +0ms
  puppeteer:protocol:RECV ◀ [
  puppeteer:protocol:RECV ◀   '{"method":"Inspector.targetCrashed","params":{},"sessionId":"05CA4763DB849B544C181308DA6A698E"}'
  puppeteer:protocol:RECV ◀ ] +0ms
  puppeteer:protocol:RECV ◀ [
  puppeteer:protocol:RECV ◀   '{"method":"Target.targetCrashed","params":{"targetId":"33E3B8CD762BF1F9BBBA5CB9B5004CB9","status":"crashed","errorCode":139}}'
  puppeteer:protocol:RECV ◀ ] +0ms
  puppeteer:protocol:RECV ◀ [
  puppeteer:protocol:RECV ◀   '{"id":1,"result":{},"sessionId":"673703F2022297AE9F301847D087043B"}'
  puppeteer:protocol:RECV ◀ ] +0ms
  puppeteer:protocol:RECV ◀ [
  puppeteer:protocol:RECV ◀   '{"method":"Inspector.targetCrashed","params":{},"sessionId":"673703F2022297AE9F301847D087043B"}'
  puppeteer:protocol:RECV ◀ ] +0ms
  puppeteer:protocol:RECV ◀ [
  puppeteer:protocol:RECV ◀   '{"method":"Target.targetCrashed","params":{"targetId":"DCAB677046B139BC26B8A007FA64CE73","status":"crashed","errorCode":139}}'
  puppeteer:protocol:RECV ◀ ] +0ms
  puppeteer:browsers:launcher Browser process 21 onExit +12s
  puppeteer:error [
  puppeteer:error   TargetCloseError: Protocol error (Runtime.runIfWaitingForDebugger): Target closed
  puppeteer:error       at CallbackRegistry.clear (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:69:36)
  puppeteer:error       at CdpCDPSession._onClosed (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js:98:25)
  puppeteer:error       at #onClose (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:163:21)
  puppeteer:error       at WebSocket.<anonymous> (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js:43:30)
  puppeteer:error       at callListener (/usr/src/app/node_modules/puppeteer-core/node_modules/ws/lib/event-target.js:290:14)
  puppeteer:error       at WebSocket.onClose (/usr/src/app/node_modules/puppeteer-core/node_modules/ws/lib/event-target.js:220:9)
  puppeteer:error       at WebSocket.emit (node:events:518:28)
  puppeteer:error       at WebSocket.emitClose (/usr/src/app/node_modules/puppeteer-core/node_modules/ws/lib/websocket.js:272:10)
  puppeteer:error       at Socket.socketOnClose (/usr/src/app/node_modules/puppeteer-core/node_modules/ws/lib/websocket.js:1341:15)
  puppeteer:error       at Socket.emit (node:events:518:28) {
  puppeteer:error     cause: ProtocolError
  puppeteer:error         at <instance_members_initializer> (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:89:14)
  puppeteer:error         at new Callback (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:93:16)
  puppeteer:error         at CallbackRegistry.create (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:19:26)
  puppeteer:error         at Connection._rawSend (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:86:26)
  puppeteer:error         at CdpCDPSession.send (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js:63:33)
  puppeteer:error         at #onAttachedToTarget (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js:283:21)
  puppeteer:error         at listener (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js:123:42)
  puppeteer:error         at file:///usr/src/app/node_modules/puppeteer-core/lib/esm/third_party/mitt/mitt.js:36:7
  puppeteer:error         at Array.map (<anonymous>)
  puppeteer:error         at Object.emit (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/third_party/mitt/mitt.js:35:20)
  puppeteer:error   }
  puppeteer:error ] +0ms
  puppeteer:error [
  puppeteer:error   TargetCloseError: Protocol error (Runtime.runIfWaitingForDebugger): Target closed
  puppeteer:error       at CallbackRegistry.clear (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:69:36)
  puppeteer:error       at CdpCDPSession._onClosed (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js:98:25)
  puppeteer:error       at #onClose (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:163:21)
  puppeteer:error       at WebSocket.<anonymous> (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js:43:30)
  puppeteer:error       at callListener (/usr/src/app/node_modules/puppeteer-core/node_modules/ws/lib/event-target.js:290:14)
  puppeteer:error       at WebSocket.onClose (/usr/src/app/node_modules/puppeteer-core/node_modules/ws/lib/event-target.js:220:9)
  puppeteer:error       at WebSocket.emit (node:events:518:28)
  puppeteer:error       at WebSocket.emitClose (/usr/src/app/node_modules/puppeteer-core/node_modules/ws/lib/websocket.js:272:10)
  puppeteer:error       at Socket.socketOnClose (/usr/src/app/node_modules/puppeteer-core/node_modules/ws/lib/websocket.js:1341:15)
  puppeteer:error       at Socket.emit (node:events:518:28) {
  puppeteer:error     cause: ProtocolError
  puppeteer:error         at <instance_members_initializer> (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:89:14)
  puppeteer:error         at new Callback (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:93:16)
  puppeteer:error         at CallbackRegistry.create (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:19:26)
  puppeteer:error         at Connection._rawSend (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:86:26)
  puppeteer:error         at CdpCDPSession.send (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js:63:33)
  puppeteer:error         at #onAttachedToTarget (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js:283:21)
  puppeteer:error         at listener (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js:123:42)
  puppeteer:error         at file:///usr/src/app/node_modules/puppeteer-core/lib/esm/third_party/mitt/mitt.js:36:7
  puppeteer:error         at Array.map (<anonymous>)
  puppeteer:error         at Object.emit (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/third_party/mitt/mitt.js:35:20)
  puppeteer:error   }
  puppeteer:error ] +0ms
  puppeteer:error [
  puppeteer:error   TargetCloseError: Protocol error (Performance.enable): Target closed
  puppeteer:error       at CallbackRegistry.clear (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:69:36)
  puppeteer:error       at CdpCDPSession._onClosed (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js:98:25)
  puppeteer:error       at #onClose (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:163:21)
  puppeteer:error       at WebSocket.<anonymous> (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js:43:30)
  puppeteer:error       at callListener (/usr/src/app/node_modules/puppeteer-core/node_modules/ws/lib/event-target.js:290:14)
  puppeteer:error       at WebSocket.onClose (/usr/src/app/node_modules/puppeteer-core/node_modules/ws/lib/event-target.js:220:9)
  puppeteer:error       at WebSocket.emit (node:events:518:28)
  puppeteer:error       at WebSocket.emitClose (/usr/src/app/node_modules/puppeteer-core/node_modules/ws/lib/websocket.js:272:10)
  puppeteer:error       at Socket.socketOnClose (/usr/src/app/node_modules/puppeteer-core/node_modules/ws/lib/websocket.js:1341:15)
  puppeteer:error       at Socket.emit (node:events:518:28) {
  puppeteer:error     cause: ProtocolError
  puppeteer:error         at <instance_members_initializer> (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:89:14)
  puppeteer:error         at new Callback (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:93:16)
  puppeteer:error         at CallbackRegistry.create (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:19:26)
  puppeteer:error         at Connection._rawSend (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:86:26)
  puppeteer:error         at CdpCDPSession.send (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js:63:33)
  puppeteer:error         at #initialize (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js:281:43)
  puppeteer:error         at CdpPage._create (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js:93:31)
  puppeteer:error         at file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js:202:32
  puppeteer:error         at async PageTarget.page (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js:205:17)
  puppeteer:error         at async ChromiumCDP.onTargetCreated (file:///usr/src/app/build/browsers/browsers.cdp.js:43:26)
  puppeteer:error   }
  puppeteer:error ] +0ms
  puppeteer:error [
  puppeteer:error   TargetCloseError: Protocol error (Emulation.setTouchEmulationEnabled): Session closed. Most likely the page has been closed.
  puppeteer:error       at CdpCDPSession.send (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CDPSession.js:61:35)
  puppeteer:error       at #applyViewport (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js:143:32)
  puppeteer:error       at EmulatedState.<anonymous> (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js:139:23)
  puppeteer:error       at file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js:66:33
  puppeteer:error       at Array.map (<anonymous>)
  puppeteer:error       at EmulatedState.sync (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js:65:58)
  puppeteer:error       at EmulatedState.setState (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js:59:20)
  puppeteer:error       at EmulationManager.emulateViewport (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js:308:39)
  puppeteer:error       at CdpPage.setViewport (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js:718:58)
  puppeteer:error       at CdpPage._create (file:///usr/src/app/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js:96:28)
  puppeteer:error ] +0ms
joelgriffith commented 2 months ago

It’s interesting that chrome does launch enough to get going, then suddenly fails. Can you describe more about the machine you’re running this on and the resources available to it?

youshoubianer commented 2 months ago

The CPU model is Kunpeng 920 (Huawei Server).

$ lscpu

Architecture:          aarch64
Byte Order:            Little Endian
CPU(s):                64
On-line CPU(s) list:   0-63
Thread(s) per core:    1
Core(s) per socket:    32
Socket(s):             2
NUMA node(s):          2
Model:                 0
CPU max MHz:           2600.0000
CPU min MHz:           200.0000
BogoMIPS:              200.00
L1d cache:             64K
L1i cache:             64K
L2 cache:              512K
L3 cache:              32768K
NUMA node0 CPU(s):     0-31
NUMA node1 CPU(s):     32-63
Flags:                 fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm ssbs

mem: 256G

docker version: Docker version 19.03.9, build 9d98839

and I suspect it might be a chromium issue, with compatibility problems on some special arm CPU.

joelgriffith commented 2 months ago

Unfortunately this has come up a few times and I'm not sure how to solve it effectively. We use playwrights chromium binaries for this and there is potentially a problem with them in certain CPU architectures. Might take a look at the playwright issues and see if there's a relevant one tracking this?

joelgriffith commented 2 months ago

Also looks like there might be some GPU flags as well. Perhaps trying without some of those flags will yield better/working results.

youshoubianer commented 2 months ago

I find a similar issue of playwrights for Huiwei Kunpeng CPU. It mentions an error of System PageSize. https://github.com/microsoft/playwright/issues/15068 https://github.com/vogler/free-games-claimer/issues/38

And I test the arm64 version of browserless on different OS, the chromium works well on PAGESIZE 4K, but not on 64K.

Also, the chromium issue mentions it not support any arm system requiring the use of 64kB pages. https://issues.chromium.org/issues/40226770#comment6 😑

So I will use firefox instead of chromium to verify my scripts...

joelgriffith commented 2 months ago

Thanks for the information, good to know that firefox works instead as well.