You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2020-12-18T11:51:26.862Z info: chromium.launch()
pw:browser <launching> /test/node_modules/playwright/.local-browsers/chromium-833159/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies,LazyFrameLoading --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 --user-data-dir=/tmp/playwright_chromiumdev_profile-lKflzS --remote-debugging-pipe --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --disable-dev-shm-usage --disable-gpu --no-startup-window +0ms
pw:browser <launched> pid=107 +13ms
pw:browser [err] [1218/115127.182152:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory +107ms
2020-12-18T11:51:27.186Z info: suite setup done
2020-12-18T11:51:27.188Z info: browser.newContext()
2020-12-18T11:51:27.195Z info: context.newPage()
Here, the await context.newPage() resolved quickly and the test runner could move on. The browser output shows
pw:browser [err] Calling _exit(1). Core file will not be generated. +0ms
pw:browser [err] [1218/115128.810815:WARNING:gpu_process_host.cc(1275)] The GPU process has crashed 3 time(s) +1ms
pw:browser [err] [1218/115128.816207:WARNING:gpu_process_host.cc(999)] Reinitialized the GPU process after a crash. The reported initialization time was 0 ms
That is, even with --disable-gpuThe GPU process has crashed 3 time(s). But that wasn't deadly.
Discussion / conclusions
await context.newPage() can hang indefinitely, and should get some error handling love. It should error out instead of hanging indefinitely. Maybe there should be a timeout; and when that hits in the browser log should be emitted -- using DEBUG=pw:browser should not be necessary to get further information.
Context:
Code Snippet
Using this code:
Describe the bug
Using
DEBUG=pw:browser.Broken case:
Note the The GPU process has crashed 6 time(s)
The NodeJS process hangs infinitely in the last line shown in the code snippet above, in
const page = await context.newPage();.No further log output produced by playwright.
That is,
await context.newPage()does not resolve, as was for example reported here (without root-causing this): #3939I then changed the browser instantiation to use the
--disable-gpuarg:resulting in
Here, the
await context.newPage()resolved quickly and the test runner could move on. The browser output showsThat is, even with
--disable-gpuThe GPU process has crashed 3 time(s). But that wasn't deadly.Discussion / conclusions
await context.newPage()can hang indefinitely, and should get some error handling love. It should error out instead of hanging indefinitely. Maybe there should be a timeout; and when that hits in the browser log should be emitted -- usingDEBUG=pw:browsershould not be necessary to get further information.--disable-gpube the default in headless mode? To me it seems like [BUG] Chromium headless on Windows does not launch without --disable-gpu #2698 needs more discussion maybe.