Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Codegen won't work as well as running my spider #12119

Closed
Scuurpro opened this issue Feb 15, 2022 · 3 comments
Closed

[BUG] Codegen won't work as well as running my spider #12119

Scuurpro opened this issue Feb 15, 2022 · 3 comments

Comments

@Scuurpro
Copy link

Scuurpro commented Feb 15, 2022

Context:

  • Playwright Version: [what Playwright version do you use?]
  • Operating System: [WSL 2]
  • Node.js version: [v17.5.0]
  • Browser: [All, Chromium, Firefox, WebKit]
    I've been trying to use to for scrapy following this guide https://www.youtube.com/watch?v=0wO7K-SoUHM
    When I try and run my spider I get this
    2022-02-15 10:56:50 [scrapy.extensions.logstats] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
    If I remove playwright I can scrape items just fine.
Also everything works on my mac, I just won't have access to it for a bit. 

==================== Browser output: ====================
<launching> /home/mack/.cache/ms-playwright/chromium-956323/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=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,AcceptCHFrame,AutoExpandDetailsElement --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 --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-P648Xc --remote-debugging-pipe --no-startup-window
<launched> pid=8300
[pid=8300][err] [8300:8300:0215/104930.345672:FATAL:ozone_platform_x11.cc(231)] Check failed: x11::Connection::Get()->Ready(). Missing X server or $DISPLAY
[pid=8300][err] #0 0x55d244294ae9 base::debug::CollectStackTrace()
[pid=8300][err] #1 0x55d2441fcf03 base::debug::StackTrace::StackTrace()
[pid=8300][err] #2 0x55d24420ff50 logging::LogMessage::~LogMessage()
[pid=8300][err] #3 0x55d244210a9e logging::LogMessage::~LogMessage()
[pid=8300][err] #4 0x55d24147cf49 ui::(anonymous namespace)::OzonePlatformX11::InitializeUI()
[pid=8300][err] #5 0x55d241418a17 ui::OzonePlatform::InitializeForUI()
[pid=8300][err] #6 0x55d2459d05de aura::Env::Init()
[pid=8300][err] #7 0x55d2459d057a aura::Env::CreateInstance()
[pid=8300][err] #8 0x55d241dfb3aa content::BrowserMainLoop::InitializeToolkit()
[pid=8300][err] #9 0x55d241dfbd08 content::BrowserMainRunnerImpl::Initialize()
[pid=8300][err] #10 0x55d241df8143 content::BrowserMain()
[pid=8300][err] #11 0x55d243da8b08 content::RunBrowserProcessMain()
[pid=8300][err] #12 0x55d243da9e89 content::ContentMainRunnerImpl::RunBrowser()
[pid=8300][err] #13 0x55d243da992e content::ContentMainRunnerImpl::Run()
[pid=8300][err] #14 0x55d243da6de4 content::RunContentProcess()
[pid=8300][err] #15 0x55d243da78f7 content::ContentMain()
[pid=8300][err] #16 0x55d240b3f88b ChromeMain
[pid=8300][err] #17 0x7f06b33460b3 __libc_start_main
[pid=8300][err] #18 0x55d240b3f66a _start
[pid=8300][err] Crash keys:
[pid=8300][err]   "io_scheduler_async_stack" = "0x55D241C2D0F4 0x0"
[pid=8300][err]   "variations" = "6aa15a86-86f8c66a,23a898eb-fc93cf74,5f2c0f7c-3f4a17df,69d4ebd5-3f4a17df,"
[pid=8300][err]   "num-experiments" = "4"
[pid=8300][err]   "switch-31" = "--enable-crashpad"
[pid=8300][err]   "switch-30" = "--no-startup-window"
[pid=8300][err]   "switch-29" = "--remote-debugging-pipe"
[pid=8300][err]   "switch-28" = "--user-data-dir=/tmp/playwright_chromiumdev_profile-P648Xc"
[pid=8300][err]   "switch-27" = "--no-sandbox"
[pid=8300][err]   "switch-26" = "--export-tagged-pdf"
[pid=8300][err]   "switch-25" = "--no-service-autorun"
[pid=8300][err]   "switch-24" = "--use-mock-keychain"
[pid=8300][err]   "switch-23" = "--password-store=basic"
[pid=8300][err]   "switch-22" = "--enable-automation"
[pid=8300][err]   "switch-21" = "--no-first-run"
[pid=8300][err]   "switch-20" = "--metrics-recording-only"
[pid=8300][err]   "switch-19" = "--force-color-profile=srgb"
[pid=8300][err]   "switch-18" = "--disable-sync"
[pid=8300][err]   "switch-17" = "--disable-renderer-backgrounding"
[pid=8300][err]   "switch-16" = "--disable-prompt-on-repost"
[pid=8300][err]   "switch-15" = "--disable-popup-blocking"
[pid=8300][err]   "switch-14" = "--disable-ipc-flooding-protection"
[pid=8300][err]   "switch-13" = "--disable-hang-monitor"
[pid=8300][err]   "switch-12" = "--allow-pre-commit-input"
[pid=8300][err]   "switch-11" = "--disable-features=ImprovedCookieControls,LazyFrameLoading,Globa"
[pid=8300][err]   "switch-10" = "--disable-extensions"
[pid=8300][err]   "switch-9" = "--disable-dev-shm-usage"
[pid=8300][err]   "switch-8" = "--disable-default-apps"
[pid=8300][err]   "switch-7" = "--disable-component-extensions-with-background-pages"
[pid=8300][err]   "switch-6" = "--disable-client-side-phishing-detection"
[pid=8300][err]   "switch-5" = "--disable-breakpad"
[pid=8300][err]   "switch-4" = "--disable-backgrounding-occluded-windows"
[pid=8300][err]   "switch-3" = "--disable-background-timer-throttling"
[pid=8300][err]   "switch-2" = "--enable-features=NetworkService,NetworkServiceInProcess"
[pid=8300][err]   "switch-1" = "--disable-background-networking"
[pid=8300][err]   "num-switches" = "31"
[pid=8300][err]   "osarch" = "x86_64"
[pid=8300][err]   "pid" = "8300"
[pid=8300][err]   "ptype" = "browser"
[pid=8300][err]
[pid=8300][err] [0215/104930.379408:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[pid=8300][err] [0215/104930.379439:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[pid=8300][err] Received signal 6
[pid=8300][err] #0 0x55d244294ae9 base::debug::CollectStackTrace()
[pid=8300][err] #1 0x55d2441fcf03 base::debug::StackTrace::StackTrace()
[pid=8300][err] #2 0x55d2442945c1 base::debug::(anonymous namespace)::StackDumpSignalHandler()
[pid=8300][err] #3 0x7f06b42193c0 (/usr/lib/x86_64-linux-gnu/libpthread-2.31.so+0x153bf)
[pid=8300][err] #4 0x7f06b336518b gsignal
[pid=8300][err] #5 0x7f06b3344859 abort
[pid=8300][err] #6 0x55d244293855 base::debug::BreakDebuggerAsyncSafe()
[pid=8300][err] #7 0x55d24421037f logging::LogMessage::~LogMessage()
[pid=8300][err] #8 0x55d244210a9e logging::LogMessage::~LogMessage()
[pid=8300][err] #9 0x55d24147cf49 ui::(anonymous namespace)::OzonePlatformX11::InitializeUI()
[pid=8300][err] #10 0x55d241418a17 ui::OzonePlatform::InitializeForUI()
[pid=8300][err] #11 0x55d2459d05de aura::Env::Init()
[pid=8300][err] #12 0x55d2459d057a aura::Env::CreateInstance()
[pid=8300][err] #13 0x55d241dfb3aa content::BrowserMainLoop::InitializeToolkit()
[pid=8300][err] #14 0x55d241dfbd08 content::BrowserMainRunnerImpl::Initialize()
[pid=8300][err] #15 0x55d241df8143 content::BrowserMain()
[pid=8300][err] #16 0x55d243da8b08 content::RunBrowserProcessMain()
[pid=8300][err] #17 0x55d243da9e89 content::ContentMainRunnerImpl::RunBrowser()
[pid=8300][err] #18 0x55d243da992e content::ContentMainRunnerImpl::Run()
[pid=8300][err] #19 0x55d243da6de4 content::RunContentProcess()
[pid=8300][err] #20 0x55d243da78f7 content::ContentMain()
[pid=8300][err] #21 0x55d240b3f88b ChromeMain
[pid=8300][err] #22 0x7f06b33460b3 __libc_start_main
[pid=8300][err] #23 0x55d240b3f66a _start
[pid=8300][err]   r8: 0000000000000000  r9: 00007ffd21a837d0 r10: 0000000000000008 r11: 0000000000000246
[pid=8300][err]  r12: 00000316002b8780 r13: 00007ffd21a83a30 r14: 00000316002b8790 r15: aaaaaaaaaaaaaaaa
[pid=8300][err]   di: 0000000000000002  si: 00007ffd21a837d0  bp: 00007ffd21a83a20  bx: 00007f06b2183e00
[pid=8300][err]   dx: 0000000000000000  ax: 0000000000000000  cx: 00007f06b336518b  sp: 00007ffd21a837d0
[pid=8300][err]   ip: 00007f06b336518b efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
[pid=8300][err]  trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[pid=8300][err] [end of stack trace]
=========================== logs ===========================
<launching> /home/mack/.cache/ms-playwright/chromium-956323/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=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,AcceptCHFrame,AutoExpandDetailsElement --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 --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-P648Xc --remote-debugging-pipe --no-startup-window
<launched> pid=8300
[pid=8300][err] [8300:8300:0215/104930.345672:FATAL:ozone_platform_x11.cc(231)] Check failed: x11::Connection::Get()->Ready(). Missing X server or $DISPLAY
[pid=8300][err] #0 0x55d244294ae9 base::debug::CollectStackTrace()
[pid=8300][err] #1 0x55d2441fcf03 base::debug::StackTrace::StackTrace()
[pid=8300][err] #2 0x55d24420ff50 logging::LogMessage::~LogMessage()
[pid=8300][err] #3 0x55d244210a9e logging::LogMessage::~LogMessage()
[pid=8300][err] #4 0x55d24147cf49 ui::(anonymous namespace)::OzonePlatformX11::InitializeUI()
[pid=8300][err] #5 0x55d241418a17 ui::OzonePlatform::InitializeForUI()
[pid=8300][err] #6 0x55d2459d05de aura::Env::Init()
[pid=8300][err] #7 0x55d2459d057a aura::Env::CreateInstance()
[pid=8300][err] #8 0x55d241dfb3aa content::BrowserMainLoop::InitializeToolkit()
[pid=8300][err] #9 0x55d241dfbd08 content::BrowserMainRunnerImpl::Initialize()
[pid=8300][err] #10 0x55d241df8143 content::BrowserMain()
[pid=8300][err] #11 0x55d243da8b08 content::RunBrowserProcessMain()
[pid=8300][err] #12 0x55d243da9e89 content::ContentMainRunnerImpl::RunBrowser()
[pid=8300][err] #13 0x55d243da992e content::ContentMainRunnerImpl::Run()
[pid=8300][err] #14 0x55d243da6de4 content::RunContentProcess()
[pid=8300][err] #15 0x55d243da78f7 content::ContentMain()
[pid=8300][err] #16 0x55d240b3f88b ChromeMain
[pid=8300][err] #17 0x7f06b33460b3 __libc_start_main
[pid=8300][err] #18 0x55d240b3f66a _start
[pid=8300][err] Crash keys:
[pid=8300][err]   "io_scheduler_async_stack" = "0x55D241C2D0F4 0x0"
[pid=8300][err]   "variations" = "6aa15a86-86f8c66a,23a898eb-fc93cf74,5f2c0f7c-3f4a17df,69d4ebd5-3f4a17df,"
[pid=8300][err]   "num-experiments" = "4"
[pid=8300][err]   "switch-31" = "--enable-crashpad"
[pid=8300][err]   "switch-30" = "--no-startup-window"
[pid=8300][err]   "switch-29" = "--remote-debugging-pipe"
[pid=8300][err]   "switch-28" = "--user-data-dir=/tmp/playwright_chromiumdev_profile-P648Xc"
[pid=8300][err]   "switch-27" = "--no-sandbox"
[pid=8300][err]   "switch-26" = "--export-tagged-pdf"
[pid=8300][err]   "switch-25" = "--no-service-autorun"
[pid=8300][err]   "switch-24" = "--use-mock-keychain"
[pid=8300][err]   "switch-23" = "--password-store=basic"
[pid=8300][err]   "switch-22" = "--enable-automation"
[pid=8300][err]   "switch-21" = "--no-first-run"
[pid=8300][err]   "switch-20" = "--metrics-recording-only"
[pid=8300][err]   "switch-19" = "--force-color-profile=srgb"
[pid=8300][err]   "switch-18" = "--disable-sync"
[pid=8300][err]   "switch-17" = "--disable-renderer-backgrounding"
[pid=8300][err]   "switch-16" = "--disable-prompt-on-repost"
[pid=8300][err]   "switch-15" = "--disable-popup-blocking"
[pid=8300][err]   "switch-14" = "--disable-ipc-flooding-protection"
[pid=8300][err]   "switch-13" = "--disable-hang-monitor"
[pid=8300][err]   "switch-12" = "--allow-pre-commit-input"
[pid=8300][err]   "switch-11" = "--disable-features=ImprovedCookieControls,LazyFrameLoading,Globa"
[pid=8300][err]   "switch-10" = "--disable-extensions"
[pid=8300][err]   "switch-9" = "--disable-dev-shm-usage"
[pid=8300][err]   "switch-8" = "--disable-default-apps"
[pid=8300][err]   "switch-7" = "--disable-component-extensions-with-background-pages"
[pid=8300][err]   "switch-6" = "--disable-client-side-phishing-detection"
[pid=8300][err]   "switch-5" = "--disable-breakpad"
[pid=8300][err]   "switch-4" = "--disable-backgrounding-occluded-windows"
[pid=8300][err]   "switch-3" = "--disable-background-timer-throttling"
[pid=8300][err]   "switch-2" = "--enable-features=NetworkService,NetworkServiceInProcess"
[pid=8300][err]   "switch-1" = "--disable-background-networking"
[pid=8300][err]   "num-switches" = "31"
[pid=8300][err]   "osarch" = "x86_64"
[pid=8300][err]   "pid" = "8300"
[pid=8300][err]   "ptype" = "browser"
[pid=8300][err]
[pid=8300][err] [0215/104930.379408:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[pid=8300][err] [0215/104930.379439:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[pid=8300][err] Received signal 6
[pid=8300][err] #0 0x55d244294ae9 base::debug::CollectStackTrace()
[pid=8300][err] #1 0x55d2441fcf03 base::debug::StackTrace::StackTrace()
[pid=8300][err] #2 0x55d2442945c1 base::debug::(anonymous namespace)::StackDumpSignalHandler()
[pid=8300][err] #3 0x7f06b42193c0 (/usr/lib/x86_64-linux-gnu/libpthread-2.31.so+0x153bf)
[pid=8300][err] #4 0x7f06b336518b gsignal
[pid=8300][err] #5 0x7f06b3344859 abort
[pid=8300][err] #6 0x55d244293855 base::debug::BreakDebuggerAsyncSafe()
[pid=8300][err] #7 0x55d24421037f logging::LogMessage::~LogMessage()
[pid=8300][err] #8 0x55d244210a9e logging::LogMessage::~LogMessage()
[pid=8300][err] #9 0x55d24147cf49 ui::(anonymous namespace)::OzonePlatformX11::InitializeUI()
[pid=8300][err] #10 0x55d241418a17 ui::OzonePlatform::InitializeForUI()
[pid=8300][err] #11 0x55d2459d05de aura::Env::Init()
[pid=8300][err] #12 0x55d2459d057a aura::Env::CreateInstance()
[pid=8300][err] #13 0x55d241dfb3aa content::BrowserMainLoop::InitializeToolkit()
[pid=8300][err] #14 0x55d241dfbd08 content::BrowserMainRunnerImpl::Initialize()
[pid=8300][err] #15 0x55d241df8143 content::BrowserMain()
[pid=8300][err] #16 0x55d243da8b08 content::RunBrowserProcessMain()
[pid=8300][err] #17 0x55d243da9e89 content::ContentMainRunnerImpl::RunBrowser()
[pid=8300][err] #18 0x55d243da992e content::ContentMainRunnerImpl::Run()
[pid=8300][err] #19 0x55d243da6de4 content::RunContentProcess()
[pid=8300][err] #20 0x55d243da78f7 content::ContentMain()
[pid=8300][err] #21 0x55d240b3f88b ChromeMain
[pid=8300][err] #22 0x7f06b33460b3 __libc_start_main
[pid=8300][err] #23 0x55d240b3f66a _start
[pid=8300][err]   r8: 0000000000000000  r9: 00007ffd21a837d0 r10: 0000000000000008 r11: 0000000000000246
[pid=8300][err]  r12: 00000316002b8780 r13: 00007ffd21a83a30 r14: 00000316002b8790 r15: aaaaaaaaaaaaaaaa
[pid=8300][err]   di: 0000000000000002  si: 00007ffd21a837d0  bp: 00007ffd21a83a20  bx: 00007f06b2183e00
[pid=8300][err]   dx: 0000000000000000  ax: 0000000000000000  cx: 00007f06b336518b  sp: 00007ffd21a837d0
[pid=8300][err]   ip: 00007f06b336518b efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
[pid=8300][err]  trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[pid=8300][err] [end of stack trace]
============================================================
    at launchContext (/mnt/c/Users/Mack-Work/PycharmProjects/playwright/venv/lib/python3.8/site-packages/playwright/driver/package/lib/cli/innerCli.js:296:37) {
  name: 'Error'
}
(venv) mack@DESKTOP-DIT38AA:/mnt/c/Users/Mack-Work/PycharmProjects/playwright$ cd pwdemo
(venv) mack@DESKTOP-DIT38AA:/mnt/c/Users/Mack-Work/PycharmProjects/playwright/pwdemo$ playwright codegen
browserType.launch: Browser closed.
==================== Browser output: ====================
<launching> /home/mack/.cache/ms-playwright/chromium-956323/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=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,AcceptCHFrame,AutoExpandDetailsElement --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 --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-6JtOhx --remote-debugging-pipe --no-startup-window
<launched> pid=8410
[pid=8410][err] [8410:8410:0215/104951.496094:FATAL:ozone_platform_x11.cc(231)] Check failed: x11::Connection::Get()->Ready(). Missing X server or $DISPLAY
[pid=8410][err] #0 0x5639043b1ae9 base::debug::CollectStackTrace()
[pid=8410][err] #1 0x563904319f03 base::debug::StackTrace::StackTrace()
[pid=8410][err] #2 0x56390432cf50 logging::LogMessage::~LogMessage()
[pid=8410][err] #3 0x56390432da9e logging::LogMessage::~LogMessage()
[pid=8410][err] #4 0x563901599f49 ui::(anonymous namespace)::OzonePlatformX11::InitializeUI()
[pid=8410][err] #5 0x563901535a17 ui::OzonePlatform::InitializeForUI()
[pid=8410][err] #6 0x563905aed5de aura::Env::Init()
[pid=8410][err] #7 0x563905aed57a aura::Env::CreateInstance()
[pid=8410][err] #8 0x563901f183aa content::BrowserMainLoop::InitializeToolkit()
[pid=8410][err] #9 0x563901f18d08 content::BrowserMainRunnerImpl::Initialize()
[pid=8410][err] #10 0x563901f15143 content::BrowserMain()
[pid=8410][err] #11 0x563903ec5b08 content::RunBrowserProcessMain()
[pid=8410][err] #12 0x563903ec6e89 content::ContentMainRunnerImpl::RunBrowser()
[pid=8410][err] #13 0x563903ec692e content::ContentMainRunnerImpl::Run()
[pid=8410][err] #14 0x563903ec3de4 content::RunContentProcess()
[pid=8410][err] #15 0x563903ec48f7 content::ContentMain()
[pid=8410][err] #16 0x563900c5c88b ChromeMain
[pid=8410][err] #17 0x7fa3a62a40b3 __libc_start_main
[pid=8410][err] #18 0x563900c5c66a _start
[pid=8410][err] Crash keys:
[pid=8410][err]   "io_scheduler_async_stack" = "0x563901D4A0F4 0x0"
[pid=8410][err]   "variations" = "6aa15a86-86f8c66a,23a898eb-fc93cf74,5f2c0f7c-3f4a17df,69d4ebd5-3f4a17df,"
[pid=8410][err]   "num-experiments" = "4"
[pid=8410][err]   "switch-31" = "--enable-crashpad"
[pid=8410][err]   "switch-30" = "--no-startup-window"
[pid=8410][err]   "switch-29" = "--remote-debugging-pipe"
[pid=8410][err]   "switch-28" = "--user-data-dir=/tmp/playwright_chromiumdev_profile-6JtOhx"
[pid=8410][err]   "switch-27" = "--no-sandbox"
[pid=8410][err]   "switch-26" = "--export-tagged-pdf"
[pid=8410][err]   "switch-25" = "--no-service-autorun"
[pid=8410][err]   "switch-24" = "--use-mock-keychain"
[pid=8410][err]   "switch-23" = "--password-store=basic"
[pid=8410][err]   "switch-22" = "--enable-automation"
[pid=8410][err]   "switch-21" = "--no-first-run"
[pid=8410][err]   "switch-20" = "--metrics-recording-only"
[pid=8410][err]   "switch-19" = "--force-color-profile=srgb"
[pid=8410][err]   "switch-18" = "--disable-sync"
[pid=8410][err]   "switch-17" = "--disable-renderer-backgrounding"
[pid=8410][err]   "switch-16" = "--disable-prompt-on-repost"
[pid=8410][err]   "switch-15" = "--disable-popup-blocking"
[pid=8410][err]   "switch-14" = "--disable-ipc-flooding-protection"
[pid=8410][err]   "switch-13" = "--disable-hang-monitor"
[pid=8410][err]   "switch-12" = "--allow-pre-commit-input"
[pid=8410][err]   "switch-11" = "--disable-features=ImprovedCookieControls,LazyFrameLoading,Globa"
[pid=8410][err]   "switch-10" = "--disable-extensions"
[pid=8410][err]   "switch-9" = "--disable-dev-shm-usage"
[pid=8410][err]   "switch-8" = "--disable-default-apps"
[pid=8410][err]   "switch-7" = "--disable-component-extensions-with-background-pages"
[pid=8410][err]   "switch-6" = "--disable-client-side-phishing-detection"
[pid=8410][err]   "switch-5" = "--disable-breakpad"
[pid=8410][err]   "switch-4" = "--disable-backgrounding-occluded-windows"
[pid=8410][err]   "switch-3" = "--disable-background-timer-throttling"
[pid=8410][err]   "switch-2" = "--enable-features=NetworkService,NetworkServiceInProcess"
[pid=8410][err]   "switch-1" = "--disable-background-networking"
[pid=8410][err]   "num-switches" = "31"
[pid=8410][err]   "osarch" = "x86_64"
[pid=8410][err]   "pid" = "8410"
[pid=8410][err]   "ptype" = "browser"
[pid=8410][err]
[pid=8410][err] [0215/104951.529245:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[pid=8410][err] [0215/104951.529274:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[pid=8410][err] Received signal 6
[pid=8410][err] #0 0x5639043b1ae9 base::debug::CollectStackTrace()
[pid=8410][err] #1 0x563904319f03 base::debug::StackTrace::StackTrace()
[pid=8410][err] #2 0x5639043b15c1 base::debug::(anonymous namespace)::StackDumpSignalHandler()
[pid=8410][err] #3 0x7fa3a71773c0 (/usr/lib/x86_64-linux-gnu/libpthread-2.31.so+0x153bf)
[pid=8410][err] #4 0x7fa3a62c318b gsignal
[pid=8410][err] #5 0x7fa3a62a2859 abort
[pid=8410][err] #6 0x5639043b0855 base::debug::BreakDebuggerAsyncSafe()
[pid=8410][err] #7 0x56390432d37f logging::LogMessage::~LogMessage()
[pid=8410][err] #8 0x56390432da9e logging::LogMessage::~LogMessage()
[pid=8410][err] #9 0x563901599f49 ui::(anonymous namespace)::OzonePlatformX11::InitializeUI()
[pid=8410][err] #10 0x563901535a17 ui::OzonePlatform::InitializeForUI()
[pid=8410][err] #11 0x563905aed5de aura::Env::Init()
[pid=8410][err] #12 0x563905aed57a aura::Env::CreateInstance()
[pid=8410][err] #13 0x563901f183aa content::BrowserMainLoop::InitializeToolkit()
[pid=8410][err] #14 0x563901f18d08 content::BrowserMainRunnerImpl::Initialize()
[pid=8410][err] #15 0x563901f15143 content::BrowserMain()
[pid=8410][err] #16 0x563903ec5b08 content::RunBrowserProcessMain()
[pid=8410][err] #17 0x563903ec6e89 content::ContentMainRunnerImpl::RunBrowser()
[pid=8410][err] #18 0x563903ec692e content::ContentMainRunnerImpl::Run()
[pid=8410][err] #19 0x563903ec3de4 content::RunContentProcess()
[pid=8410][err] #20 0x563903ec48f7 content::ContentMain()
[pid=8410][err] #21 0x563900c5c88b ChromeMain
[pid=8410][err] #22 0x7fa3a62a40b3 __libc_start_main
[pid=8410][err] #23 0x563900c5c66a _start
[pid=8410][err]   r8: 0000000000000000  r9: 00007fffcc764860 r10: 0000000000000008 r11: 0000000000000246
[pid=8410][err]  r12: 00003978002b8640 r13: 00007fffcc764ac0 r14: 00003978002b8650 r15: aaaaaaaaaaaaaaaa
[pid=8410][err]   di: 0000000000000002  si: 00007fffcc764860  bp: 00007fffcc764ab0  bx: 00007fa3a50e1e00
[pid=8410][err]   dx: 0000000000000000  ax: 0000000000000000  cx: 00007fa3a62c318b  sp: 00007fffcc764860
[pid=8410][err]   ip: 00007fa3a62c318b efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000
[pid=8410][err]  trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[pid=8410][err] [end of stack trace]
=========================== logs ===========================
<launching> /home/mack/.cache/ms-playwright/chromium-956323/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=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,AcceptCHFrame,AutoExpandDetailsElement --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 --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-6JtOhx --remote-debugging-pipe --no-startup-window
<launched> pid=8410
[pid=8410][err] [8410:8410:0215/104951.496094:FATAL:ozone_platform_x11.cc(231)] Check failed: x11::Connection::Get()->Ready(). Missing X server or $DISPLAY
[pid=8410][err] #0 0x5639043b1ae9 base::debug::CollectStackTrace()
[pid=8410][err] #1 0x563904319f03 base::debug::StackTrace::StackTrace()
[pid=8410][err] #2 0x56390432cf50 logging::LogMessage::~LogMessage()
[pid=8410][err] #3 0x56390432da9e logging::LogMessage::~LogMessage()
[pid=8410][err] #4 0x563901599f49 ui::(anonymous namespace)::OzonePlatformX11::InitializeUI()
[p`
```


@dgozman
Copy link
Contributor

dgozman commented Feb 15, 2022

Missing X server or $DISPLAY suggests that you are trying to run headed on linux without display, is that right? If so, just run headless instead - that is the default behavior of Playwright.

@dgozman dgozman closed this as completed Feb 15, 2022
@Scuurpro
Copy link
Author

uggests that you are trying to run headed on linux without display, is that right? If so, just run headless instead - that is the default behavior of P

I honestly dont know I just followed the guides for WSL 2 and Ubuntu setup to use scrapy as I needed on my windows instead of my mac. I'm not sure how to switch between headless and headed.

@dgozman
Copy link
Contributor

dgozman commented Feb 15, 2022

@Scuurpro Sorry, we are unable to help in this case, because we don't know the details of your setup with scrapy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants