playwright-community / playwright-go

Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
https://playwright-community.github.io/playwright-go/
MIT License
2.25k stars 163 forks source link

[Bug]: chromium crash inside lambda: could not create page: playwright: target closed: Target page, context or browser has been closed #466

Closed billysutomo closed 5 months ago

billysutomo commented 5 months ago

Environments

Bug description

crash inside lambda

To Reproduce Please provide a mini reproduction rather than just a description. For example:

package main

import "github.com/playwright-community/playwright-go"

func main() {
    playwrightPath :=  "/app"

    log.Println("run playwright...")
    pw, err := playwright.Run(&playwright.RunOptions{
        Browsers:        []string{"chromium"},
        DriverDirectory: playwrightPath,
        Stdout:          os.Stdout,
        Stderr:          os.Stderr,
    })
    if err != nil {
        log.Fatalf("could not start playwright: %v", err)
    }

    log.Println("launch chromium...")
    browser, err := pw.Chromium.Launch(playwright.BrowserTypeLaunchOptions{
        // Headless: playwright.Bool(false),
        Args: []string{
            "--headless=new",
            "--disable-gpu",
        },
        SlowMo: playwright.Float(500),
    })
    if err != nil {
        log.Fatalf("could not launch browser: %v", err)
    }

    log.Println("new browser context...")
    context, err := browser.NewContext(playwright.BrowserNewContextOptions{
        UserAgent: playwright.String("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"),
    })
    if err != nil {
        log.Fatalf("could not create context: %v", err)
    }

    log.Println("new page...")
    page, err := context.NewPage()
    if err != nil {
        log.Fatalf("could not create page: %v", err)
    }
}

Additional context logs below

<html>
<body>
<!--StartFragment-->
2024-06-10T18:07:25.926+07:00 | 2024/06/10 11:07:25 run playwright...
-- | --
  | 2024-06-10T18:07:33.065+07:00 | 2024/06/10 11:07:33 launch chromium...
  | 2024-06-10T18:07:33.598+07:00 | 2024-06-10T11:07:33.081Z pw:browser <launching> /app/ms-playwright/chromium-1117/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-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --headless=new --disable-gpu --user-data-dir=/tmp/playwright_chromiumdev_profile-XXXXXXNBxnoG --remote-debugging-pipe --no-startup-window
  | 2024-06-10T18:07:33.833+07:00 | 2024-06-10T11:07:33.833Z pw:browser <launched> pid=35
  | 2024-06-10T18:07:47.199+07:00 | 2024-06-10T11:07:47.199Z pw:browser [pid=35][err] prctl(PR_SET_NO_NEW_PRIVS) failed
  | 2024-06-10T18:07:47.201+07:00 | 2024-06-10T11:07:47.201Z pw:browser [pid=35][err] prctl(PR_SET_NO_NEW_PRIVS) failed
  | 2024-06-10T18:07:52.523+07:00 | 2024-06-10T11:07:52.523Z pw:browser [pid=35][err] [35:49:0610/110752.522579:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
  | 2024-06-10T18:07:53.341+07:00 | 2024-06-10T11:07:53.341Z pw:browser [pid=35][err] [35:52:0610/110753.341085:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
  | 2024-06-10T18:07:53.341+07:00 | 2024-06-10T11:07:53.341Z pw:browser [pid=35][err] [35:52:0610/110753.341736:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
  | 2024-06-10T18:07:54.068+07:00 | 2024-06-10T11:07:54.068Z pw:browser [pid=35][err] [35:49:0610/110754.068476: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")
  | 2024-06-10T18:07:54.068+07:00 | 2024-06-10T11:07:54.068Z pw:browser [pid=35][err] [35:49:0610/110754.068532: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")
  | 2024-06-10T18:07:54.069+07:00 | 2024-06-10T11:07:54.069Z pw:browser [pid=35][err] [35:49:0610/110754.068546: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")
  | 2024-06-10T18:07:54.069+07:00 | 2024-06-10T11:07:54.069Z pw:browser [pid=35][err] [35:49:0610/110754.068558: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")
  | 2024-06-10T18:07:54.635+07:00 | 2024-06-10T11:07:54.635Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:54.762+07:00 | 2024-06-10T11:07:54.762Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:54.821+07:00 | 2024-06-10T11:07:54.821Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:54.871+07:00 | 2024-06-10T11:07:54.871Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:55.118+07:00 | 2024-06-10T11:07:55.118Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:55.186+07:00 | 2024-06-10T11:07:55.186Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:55.243+07:00 | 2024-06-10T11:07:55.243Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:55.283+07:00 | 2024-06-10T11:07:55.283Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:55.285+07:00 | 2024-06-10T11:07:55.285Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:55.335+07:00 | 2024-06-10T11:07:55.335Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:55.386+07:00 | 2024-06-10T11:07:55.386Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:55.954+07:00 | 2024-06-10T11:07:55.954Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:56.195+07:00 | 2024-06-10T11:07:56.195Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:56.235+07:00 | 2024-06-10T11:07:56.234Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:56.698+07:00 | 2024-06-10T11:07:56.698Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:56.948+07:00 | 2024-06-10T11:07:56.947Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:56.950+07:00 | 2024-06-10T11:07:56.950Z pw:browser [pid=35][err] Fontconfig error: No writable cache directories
  | 2024-06-10T18:07:57.018+07:00 | 2024-06-10T11:07:57.018Z pw:browser [pid=35][err] prctl(PR_SET_NO_NEW_PRIVS) failed
  | 2024-06-10T18:07:58.968+07:00 | 2024-06-10T11:07:58.968Z pw:browser [pid=35][err] [35:49:0610/110758.968370: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")
  | 2024-06-10T18:07:58.968+07:00 | 2024-06-10T11:07:58.968Z pw:browser [pid=35][err] [35:49:0610/110758.968407: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")
  | 2024-06-10T18:08:00.276+07:00 | 2024-06-10T11:08:00.276Z pw:browser [pid=35][err] [35:35:0610/110800.276029:ERROR:gpu_process_host.cc(993)] GPU process launch failed: error_code=1002
  | 2024-06-10T18:08:00.280+07:00 | 2024-06-10T11:08:00.280Z pw:browser [pid=35][err] [35:35:0610/110800.280275:ERROR:network_service_instance_impl.cc(600)] Network service crashed, restarting service.
  | 2024-06-10T18:08:00.285+07:00 | 2024-06-10T11:08:00.285Z pw:browser [pid=35][err] prctl(PR_SET_NO_NEW_PRIVS) failed
  | 2024-06-10T18:08:00.324+07:00 | 2024-06-10T11:08:00.324Z pw:browser [pid=35][err] [35:35:0610/110800.323521:ERROR:gpu_process_host.cc(993)] GPU process launch failed: error_code=1002
  | 2024-06-10T18:08:00.360+07:00 | 2024-06-10T11:08:00.359Z pw:browser [pid=35][err] [35:68:0610/110800.359792:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
  | 2024-06-10T18:08:00.360+07:00 | 2024-06-10T11:08:00.360Z pw:browser [pid=35][err] [35:68:0610/110800.360286:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
  | 2024-06-10T18:08:00.361+07:00 | 2024-06-10T11:08:00.360Z pw:browser [pid=35][err] [35:68:0610/110800.360886:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
  | 2024-06-10T18:08:00.362+07:00 | 2024/06/10 11:08:00 new browser context...
  | 2024-06-10T18:08:00.363+07:00 | 2024-06-10T11:08:00.363Z pw:browser [pid=35][err] [35:68:0610/110800.363532:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
  | 2024-06-10T18:08:00.363+07:00 | 2024-06-10T11:08:00.363Z pw:browser [pid=35][err] [35:68:0610/110800.363752:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
  | 2024-06-10T18:08:00.422+07:00 | 2024-06-10T11:08:00.421Z pw:browser [pid=35][err] [35:35:0610/110800.421669:ERROR:gpu_process_host.cc(993)] GPU process launch failed: error_code=1002
  | 2024-06-10T18:08:00.442+07:00 | 2024-06-10T11:08:00.442Z pw:browser [pid=35][err] [35:35:0610/110800.442679:ERROR:network_service_instance_impl.cc(600)] Network service crashed, restarting service.
  | 2024-06-10T18:08:00.459+07:00 | 2024-06-10T11:08:00.459Z pw:browser [pid=35][err] prctl(PR_SET_NO_NEW_PRIVS) failed
  | 2024-06-10T18:08:00.462+07:00 | 2024-06-10T11:08:00.462Z pw:browser [pid=35][err] [35:35:0610/110800.461878:ERROR:gpu_process_host.cc(993)] GPU process launch failed: error_code=1002
  | 2024-06-10T18:08:00.521+07:00 | 2024/06/10 11:08:00 new page...
  | 2024-06-10T18:08:00.523+07:00 | 2024-06-10T11:08:00.523Z pw:browser [pid=35][err] [35:35:0610/110800.523044:ERROR:gpu_process_host.cc(993)] GPU process launch failed: error_code=1002
  | 2024-06-10T18:08:00.997+07:00 | 2024-06-10T11:08:00.997Z pw:browser [pid=35][err]
  | 2024-06-10T18:08:00.997+07:00 | 2024-06-10T11:08:00.997Z pw:browser [pid=35][err] (process:35): GLib-GIO-CRITICAL **: 11:08:00.996: g_settings_schema_source_lookup: assertion 'source != NULL' failed
  | 2024-06-10T18:08:01.564+07:00 | 2024-06-10T11:08:01.564Z pw:browser [pid=35][err] [35:35:0610/110801.564337:ERROR:gpu_process_host.cc(993)] GPU process launch failed: error_code=1002
  | 2024-06-10T18:08:05.384+07:00 | 2024-06-10T11:08:05.384Z pw:browser [pid=35][err] [35:35:0610/110801.564367:FATAL:gpu_data_manager_impl_private.cc(449)] GPU process isn't usable. Goodbye.
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #0 0x55ebf0c9a332 base::debug::CollectStackTrace()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #1 0x55ebf0c879fe base::debug::StackTrace::StackTrace()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #2 0x55ebf0be05e9 logging::LogMessage::Flush()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #3 0x55ebf0be10e9 logging::LogMessageFatal::~LogMessageFatal()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #4 0x55ebeebd8547 content::(anonymous namespace)::IntentionallyCrashBrowserForUnusableGpuProcess()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #5 0x55ebeebd5391 content::GpuDataManagerImplPrivate::FallBackToNextGpuMode()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #6 0x55ebeebd3f9b content::GpuDataManagerImpl::FallBackToNextGpuMode()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #7 0x55ebeebe09c9 content::GpuProcessHost::RecordProcessCrash()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #8 0x55ebeebe1ea7 content::GpuProcessHost::OnProcessLaunchFailed()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #9 0x55ebee9a7141 content::BrowserChildProcessHostImpl::OnProcessLaunchFailed()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #10 0x55ebeea22a0a content::internal::ChildProcessLauncherHelper::PostLaunchOnClientThread()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #11 0x55ebeea22d36 base::internal::Invoker<>::RunOnce()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #12 0x55ebf0c2df9f base::TaskAnnotator::RunTaskImpl()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #13 0x55ebf0c473ad base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #14 0x55ebf0c46e02 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #15 0x55ebf0c47845 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #16 0x55ebf0cb03bc base::MessagePumpGlib::Run()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #17 0x55ebf0c47bd0 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #18 0x55ebf0c0f871 base::RunLoop::Run()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #19 0x55ebee9c9a6a content::BrowserMainLoop::RunMainMessageLoop()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #20 0x55ebee9cb6d2 content::BrowserMainRunnerImpl::Run()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #21 0x55ebee9c6c66 content::BrowserMain()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #22 0x55ebf00cee9c content::RunBrowserProcessMain()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #23 0x55ebf00d047c content::ContentMainRunnerImpl::RunBrowser()
  | 2024-06-10T18:08:05.385+07:00 | 2024-06-10T11:08:05.385Z pw:browser [pid=35][err] #24 0x55ebf00d02b1 content::ContentMainRunnerImpl::Run()
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] #25 0x55ebf00cdc72 content::RunContentProcess()
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] #26 0x55ebf00cdeb7 content::ContentMain()
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] #27 0x55ebec24e35b ChromeMain
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] #28 0x7fb345f7ed90 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] #29 0x7fb345f7ee40 __libc_start_main
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] #30 0x55ebec24e02a _start
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] Task trace:
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] #0 0x55ebeea2289f content::internal::ChildProcessLauncherHelper::PostLaunchOnLauncherThread()
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] #1 0x55ebeea21d68 content::internal::ChildProcessLauncherHelper::StartLaunchOnClientThread()
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] #2 0x55ebf134d658 mojo::SimpleWatcher::Context::Notify()
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] #3 0x55ebeea21d68 content::internal::ChildProcessLauncherHelper::StartLaunchOnClientThread()
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] #4 0x55ebf134d658 mojo::SimpleWatcher::Context::Notify()
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] Task trace buffer limit hit, update PendingTask::kTaskBacktraceLength to increase.
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] Crash keys:
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] "num-extensions" = "0"
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] "reentry_guard_tls_slot" = "unused"
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] "variations" = "f38ef081-ca7d8d80,9481ce98-3d47f4f4,70678518-dee66fa8,be338734-dee66fa8,5f9907a9-dee66fa8,8eeccb9a-dee66fa8,2b465683-dee66fa8,52fc7926-dee66fa8,a41a7188-dee66fa8,ff71bfdc-dee66fa8,6daa4147-dee66fa8,4b935545-3d47f4f4,9a38bae3-3d47f4f4,2d1e43a3-3d47f4f4,386dc267-3d47f4f4,6b260bea-b31978bc,d69d967d-3695c92e,"
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] "num-experiments" = "17"
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] "switch-42" = "--use-angle=swiftshader-webgl"
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] "switch-41" = "--ozone-override-screen-size=800,600"
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] "switch-40" = "--ozone-platform=headless"
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] "switch-39" = "--noerrdialogs"
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] "switch-38" = "--no-startup-window"
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] "switch-37" = "--remote-debugging-pipe"
  | 2024-06-10T18:08:05.386+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] "switch-36" = "--user-data-dir=/tmp/playwright_chromiumdev_profile-XXXXXXNBxnoG"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.386Z pw:browser [pid=35][err] "switch-35" = "--disable-gpu"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-34" = "--headless=new"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-33" = "--no-sandbox"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-32" = "--blink-settings=primaryHoverType=2,availableHoverTypes=2,primar"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-31" = "--mute-audio"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-30" = "--hide-scrollbars"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-29" = "--headless"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-28" = "--disable-search-engine-choice-screen"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-27" = "--export-tagged-pdf"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-26" = "--no-service-autorun"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-25" = "--use-mock-keychain"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-24" = "--password-store=basic"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-23" = "--enable-automation"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-22" = "--no-first-run"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-21" = "--metrics-recording-only"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-20" = "--force-color-profile=srgb"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-19" = "--disable-renderer-backgrounding"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-18" = "--disable-prompt-on-repost"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-17" = "--disable-popup-blocking"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-16" = "--disable-ipc-flooding-protection"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-15" = "--disable-hang-monitor"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-14" = "--allow-pre-commit-input"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-13" = "--disable-extensions"
  | 2024-06-10T18:08:05.387+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-12" = "--disable-dev-shm-usage"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.387Z pw:browser [pid=35][err] "switch-11" = "--disable-default-apps"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.388Z pw:browser [pid=35][err] "switch-10" = "--no-default-browser-check"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.388Z pw:browser [pid=35][err] "switch-9" = "--disable-component-update"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.388Z pw:browser [pid=35][err] "switch-8" = "--disable-component-extensions-with-background-pages"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.388Z pw:browser [pid=35][err] "switch-7" = "--disable-client-side-phishing-detection"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.388Z pw:browser [pid=35][err] "switch-6" = "--disable-breakpad"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.388Z pw:browser [pid=35][err] "switch-5" = "--disable-back-forward-cache"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.388Z pw:browser [pid=35][err] "switch-4" = "--disable-backgrounding-occluded-windows"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.388Z pw:browser [pid=35][err] "switch-3" = "--disable-background-timer-throttling"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.388Z pw:browser [pid=35][err] "switch-2" = "--disable-background-networking"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.388Z pw:browser [pid=35][err] "switch-1" = "--disable-field-trial-config"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.388Z pw:browser [pid=35][err] "num-switches" = "46"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.388Z pw:browser [pid=35][err] "commandline-disabled-feature-13" = "PaintHolding"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.388Z pw:browser [pid=35][err] "commandline-disabled-feature-12" = "HttpsUpgrades"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.388Z pw:browser [pid=35][err] "commandline-disabled-feature-11" = "Translate"
  | 2024-06-10T18:08:05.388+07:00 | 2024-06-10T11:08:05.388Z pw:browser [pid=35][err] "commandline-disabled-feature-10" = "AvoidUnnecessaryBeforeUnloadCheckSync"
  | 2024-06-10T18:08:05.399+07:00 | 2024-06-10T11:08:05.399Z pw:browser [pid=35][err] "commandline-disabled-feature-9" = "CertificateTransparencyComponentUpdater"
  | 2024-06-10T18:08:05.399+07:00 | 2024-06-10T11:08:05.399Z pw:browser [pid=35][err] "commandline-disabled-feature-8" = "AutoExpandDetailsElement"
  | 2024-06-10T18:08:05.399+07:00 | 2024-06-10T11:08:05.399Z pw:browser [pid=35][err] "commandline-disabled-feature-7" = "AcceptCHFrame"
  | 2024-06-10T18:08:05.399+07:00 | 2024-06-10T11:08:05.399Z pw:browser [pid=35][err] "commandline-disabled-feature-6" = "DialMediaRouteProvider"
  | 2024-06-10T18:08:05.399+07:00 | 2024-06-10T11:08:05.399Z pw:browser [pid=35][err] "commandline-disabled-feature-5" = "MediaRouter"
  | 2024-06-10T18:08:05.399+07:00 | 2024-06-10T11:08:05.399Z pw:browser [pid=35][err] "commandline-disabled-feature-4" = "DestroyProfileOnBrowserClose"
  | 2024-06-10T18:08:05.399+07:00 | 2024-06-10T11:08:05.399Z pw:browser [pid=35][err] "commandline-disabled-feature-3" = "GlobalMediaControls"
  | 2024-06-10T18:08:05.399+07:00 | 2024-06-10T11:08:05.399Z pw:browser [pid=35][err] "commandline-disabled-feature-2" = "LazyFrameLoading"
  | 2024-06-10T18:08:05.399+07:00 | 2024-06-10T11:08:05.399Z pw:browser [pid=35][err] "commandline-disabled-feature-1" = "ImprovedCookieControls"
  | 2024-06-10T18:08:05.399+07:00 | 2024-06-10T11:08:05.399Z pw:browser [pid=35][err] "commandline-enabled-feature-2" = "NetworkServiceInProcess"
  | 2024-06-10T18:08:05.400+07:00 | 2024-06-10T11:08:05.399Z pw:browser [pid=35][err] "commandline-enabled-feature-1" = "NetworkService"
  | 2024-06-10T18:08:05.400+07:00 | 2024-06-10T11:08:05.400Z pw:browser [pid=35][err] "osarch" = "x86_64"
  | 2024-06-10T18:08:05.400+07:00 | 2024-06-10T11:08:05.400Z pw:browser [pid=35][err] "pid" = "35"
  | 2024-06-10T18:08:05.400+07:00 | 2024-06-10T11:08:05.400Z pw:browser [pid=35][err] "ptype" = "browser"
  | 2024-06-10T18:08:05.400+07:00 | 2024-06-10T11:08:05.400Z pw:browser [pid=35][err]
  | 2024-06-10T18:08:05.400+07:00 | 2024-06-10T11:08:05.400Z pw:browser [pid=35][err] [0610/110805.384390:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)
  | 2024-06-10T18:08:05.400+07:00 | 2024-06-10T11:08:05.400Z pw:browser [pid=35][err] Received signal 6
  | 2024-06-10T18:08:05.404+07:00 | 2024-06-10T11:08:05.404Z pw:browser [pid=35][err] #0 0x55ebf0c9a332 base::debug::CollectStackTrace()
  | 2024-06-10T18:08:05.427+07:00 | 2024-06-10T11:08:05.427Z pw:browser [pid=35][err] #1 0x55ebf0c879fe base::debug::StackTrace::StackTrace()
  | 2024-06-10T18:08:05.496+07:00 | 2024-06-10T11:08:05.496Z pw:browser [pid=35][err] #2 0x55ebf0c99d41 base::debug::(anonymous namespace)::StackDumpSignalHandler()
  | 2024-06-10T18:08:05.496+07:00 | 2024-06-10T11:08:05.496Z pw:browser [pid=35][err] #3 0x7fb345f97520 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x4251f)
  | 2024-06-10T18:08:05.496+07:00 | 2024-06-10T11:08:05.496Z pw:browser [pid=35][err] #4 0x7fb345feb9fc pthread_kill
  | 2024-06-10T18:08:05.497+07:00 | 2024-06-10T11:08:05.497Z pw:browser [pid=35][err] #5 0x7fb345f97476 raise
  | 2024-06-10T18:08:05.497+07:00 | 2024-06-10T11:08:05.497Z pw:browser [pid=35][err] #6 0x7fb345f7d7f3 abort
  | 2024-06-10T18:08:05.508+07:00 | 2024-06-10T11:08:05.508Z pw:browser [pid=35][err] #7 0x55ebf0c7a9d5 base::debug::BreakDebuggerAsyncSafe()
  | 2024-06-10T18:08:05.539+07:00 | 2024-06-10T11:08:05.539Z pw:browser [pid=35][err] #8 0x55ebf0be1074 base::RepeatingCallback<>::Run()
  | 2024-06-10T18:08:05.550+07:00 | 2024-06-10T11:08:05.550Z pw:browser [pid=35][err] #9 0x55ebf0be0f0d logging::LogMessage::HandleFatal()
  | 2024-06-10T18:08:05.569+07:00 | 2024-06-10T11:08:05.569Z pw:browser [pid=35][err] #10 0x55ebf0be0bc6 logging::LogMessage::Flush()
  | 2024-06-10T18:08:05.588+07:00 | 2024-06-10T11:08:05.588Z pw:browser [pid=35][err] #11 0x55ebf0be10e9 logging::LogMessageFatal::~LogMessageFatal()
  | 2024-06-10T18:08:05.602+07:00 | 2024-06-10T11:08:05.602Z pw:browser [pid=35][err] #12 0x55ebeebd8547 content::(anonymous namespace)::IntentionallyCrashBrowserForUnusableGpuProcess()
  | 2024-06-10T18:08:05.620+07:00 | 2024-06-10T11:08:05.619Z pw:browser [pid=35][err] #13 0x55ebeebd5391 content::GpuDataManagerImplPrivate::FallBackToNextGpuMode()
  | 2024-06-10T18:08:05.625+07:00 | 2024-06-10T11:08:05.625Z pw:browser [pid=35][err] #14 0x55ebeebd3f9b content::GpuDataManagerImpl::FallBackToNextGpuMode()
  | 2024-06-10T18:08:05.630+07:00 | 2024-06-10T11:08:05.630Z pw:browser [pid=35][err] #15 0x55ebeebe09c9 content::GpuProcessHost::RecordProcessCrash()
  | 2024-06-10T18:08:05.644+07:00 | 2024-06-10T11:08:05.644Z pw:browser [pid=35][err] #16 0x55ebeebe1ea7 content::GpuProcessHost::OnProcessLaunchFailed()
  | 2024-06-10T18:08:05.649+07:00 | 2024-06-10T11:08:05.649Z pw:browser [pid=35][err] #17 0x55ebee9a7141 content::BrowserChildProcessHostImpl::OnProcessLaunchFailed()
  | 2024-06-10T18:08:05.662+07:00 | 2024-06-10T11:08:05.662Z pw:browser [pid=35][err] #18 0x55ebeea22a0a content::internal::ChildProcessLauncherHelper::PostLaunchOnClientThread()
  | 2024-06-10T18:08:05.680+07:00 | 2024-06-10T11:08:05.679Z pw:browser [pid=35][err] #19 0x55ebeea22d36 base::internal::Invoker<>::RunOnce()
  | 2024-06-10T18:08:05.699+07:00 | 2024-06-10T11:08:05.691Z pw:browser [pid=35][err] #20 0x55ebf0c2df9f base::TaskAnnotator::RunTaskImpl()
  | 2024-06-10T18:08:05.710+07:00 | 2024-06-10T11:08:05.710Z pw:browser [pid=35][err] #21 0x55ebf0c473ad base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl()
  | 2024-06-10T18:08:05.729+07:00 | 2024-06-10T11:08:05.729Z pw:browser [pid=35][err] #22 0x55ebf0c46e02 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork()
  | 2024-06-10T18:08:05.761+07:00 | 2024-06-10T11:08:05.761Z pw:browser [pid=35][err] #23 0x55ebf0c47845 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork()
  | 2024-06-10T18:08:05.780+07:00 | 2024-06-10T11:08:05.780Z pw:browser [pid=35][err] #24 0x55ebf0cb03bc base::MessagePumpGlib::Run()
  | 2024-06-10T18:08:05.799+07:00 | 2024-06-10T11:08:05.799Z pw:browser [pid=35][err] #25 0x55ebf0c47bd0 base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run()
  | 2024-06-10T18:08:05.810+07:00 | 2024-06-10T11:08:05.810Z pw:browser [pid=35][err] #26 0x55ebf0c0f871 base::RunLoop::Run()
  | 2024-06-10T18:08:05.824+07:00 | 2024-06-10T11:08:05.824Z pw:browser [pid=35][err] #27 0x55ebee9c9a6a content::BrowserMainLoop::RunMainMessageLoop()
  | 2024-06-10T18:08:05.841+07:00 | 2024-06-10T11:08:05.841Z pw:browser [pid=35][err] #28 0x55ebee9cb6d2 content::BrowserMainRunnerImpl::Run()
  | 2024-06-10T18:08:05.846+07:00 | 2024-06-10T11:08:05.846Z pw:browser [pid=35][err] #29 0x55ebee9c6c66 content::BrowserMain()
  | 2024-06-10T18:08:05.863+07:00 | 2024-06-10T11:08:05.863Z pw:browser [pid=35][err] #30 0x55ebf00cee9c content::RunBrowserProcessMain()
  | 2024-06-10T18:08:05.880+07:00 | 2024-06-10T11:08:05.880Z pw:browser [pid=35][err] #31 0x55ebf00d047c content::ContentMainRunnerImpl::RunBrowser()
  | 2024-06-10T18:08:05.901+07:00 | 2024-06-10T11:08:05.901Z pw:browser [pid=35][err] #32 0x55ebf00d02b1 content::ContentMainRunnerImpl::Run()
  | 2024-06-10T18:08:05.910+07:00 | 2024-06-10T11:08:05.910Z pw:browser [pid=35][err] #33 0x55ebf00cdc72 content::RunContentProcess()
  | 2024-06-10T18:08:05.927+07:00 | 2024-06-10T11:08:05.927Z pw:browser [pid=35][err] #34 0x55ebf00cdeb7 content::ContentMain()
  | 2024-06-10T18:08:05.982+07:00 | 2024-06-10T11:08:05.982Z pw:browser [pid=35][err] #35 0x55ebec24e35b ChromeMain
  | 2024-06-10T18:08:05.982+07:00 | 2024-06-10T11:08:05.982Z pw:browser [pid=35][err] #36 0x7fb345f7ed90 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29d8f)
  | 2024-06-10T18:08:05.982+07:00 | 2024-06-10T11:08:05.982Z pw:browser [pid=35][err] #37 0x7fb345f7ee40 __libc_start_main
  | 2024-06-10T18:08:06.026+07:00 | 2024-06-10T11:08:06.026Z pw:browser [pid=35][err] #38 0x55ebec24e02a _start
  | 2024-06-10T18:08:06.026+07:00 | 2024-06-10T11:08:06.026Z pw:browser [pid=35][err] r8: 00007ffd85bba860 r9: 0000000000001675 r10: 0000000000000008 r11: 0000000000000246
  | 2024-06-10T18:08:06.026+07:00 | 2024-06-10T11:08:06.026Z pw:browser [pid=35][err] r12: 0000000000000006 r13: 0000000000000016 r14: 000055ebe9b380b5 r15: 00007ffd85bbaa68
  | 2024-06-10T18:08:06.026+07:00 | 2024-06-10T11:08:06.026Z pw:browser [pid=35][err] di: 0000000000000023 si: 0000000000000023 bp: 0000000000000023 bx: 00007fb344e560c0
  | 2024-06-10T18:08:06.026+07:00 | 2024-06-10T11:08:06.026Z pw:browser [pid=35][err] dx: 0000000000000006 ax: 0000000000000000 cx: 00007fb345feb9fc sp: 00007ffd85bba790
  | 2024-06-10T18:08:06.026+07:00 | 2024-06-10T11:08:06.026Z pw:browser [pid=35][err] ip: 00007fb345feb9fc efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
  | 2024-06-10T18:08:06.026+07:00 | 2024-06-10T11:08:06.026Z pw:browser [pid=35][err] trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
  | 2024-06-10T18:08:06.026+07:00 | 2024-06-10T11:08:06.026Z pw:browser [pid=35][err] [end of stack trace]
  | 2024-06-10T18:08:06.145+07:00 | 2024/06/10 11:08:06 could not create page: playwright: target closed: Target page, context or browser has been closed
  | 2024-06-10T18:08:06.150+07:00 | RequestId: 40e3074a-8460-45df-9f8b-84095d33d47d Error: Runtime exited with error: exit status 1 Runtime.ExitError

<!--EndFragment-->
</body>
</html>
billysutomo commented 5 months ago

add args --single-process solve this