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

could not launch browser: [launcher] Failed to get the debug url #528

Open
wong-justin opened this issue Sep 12, 2024 · 2 comments
Open

Comments

@wong-justin
Copy link

Description
vhs fails to launch chromium.
Setup

  • Ubuntu 18.04 inside WSL 2.2.4.0 on Windows 10
  • vhs 0.8.0

To Reproduce
Steps to reproduce the behavior:

  1. Create test tape with vhs new demo.tape
  2. Run vhs demo.tape
  3. Receive the following error after chromium finishes downloading:
File: demo.tape
could not launch browser: [launcher] Failed to get the debug url: [0912/091916.350611:ERROR:exception_handler_server.cc(362)] getsockopt: Invalid argument (22)

[0912/091916.351347:ERROR:socket.cc(153)] unhandled cmsg -1431655766, -1431655766
[0912/091916.352719:ERROR:exception_handler_server.cc(362)] getsockopt: Invalid argument (22)
[24871:24871:0912/091916.352887:ERROR:socket.cc(153)] unhandled cmsg -1431655766, -1431655766
[24871:24871:0912/091916.353069:FATAL:crashpad_linux.cc(256)] Check failed: client.StartHandler(handler_path, *database_path, metrics_path, url, annotations, arguments, false, false).
#0 0x7ff0b5e20662 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b375bb7)
#1 0x7ff0b5e0db5e (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b3630b3)
#2 0x7ff0b5d6467a (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b2b9bcf)
#3 0x7ff0b5d6455d (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b2b9ab2)
#4 0x7ff0b5d4d590 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b2a2ae5)
#5 0x7ff0b5d4d5ee (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b2a2b43)
#6 0x7ff0b5d4d373 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b2a28c8)
#7 0x7ff0b8607c0c (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460db5d161)
#8 0x7ff0b85fea58 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460db53fad)
#9 0x7ff0b0f34377 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d546064898cc)
#10 0x7ff0b51da640 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460a72fb95)
#11 0x7ff0b51d8749 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460a72dc9e)
#12 0x7ff0b51d8ba7 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460a72e0fc)
#13 0x7ff0b0f32370 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d546064878c5)
#14 0x7ff0a7ea1c87 (/lib/x86_64-linux-gnu/libc-2.27.so+0x5555d545fd3f71dc)
#15 0x7ff0b0f3202a (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460648757f)

Received signal 6
#0 0x7ff0b5e20662 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b375bb7)
#1 0x7ff0b5e0db5e (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b3630b3)
#2 0x7ff0b5e20071 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b3755c6)
#3 0x7ff0ac7e2980 (/lib/x86_64-linux-gnu/libpthread-2.27.so+0x5555d54601d37ed5)
#4 0x7ff0a7ebee87 (/lib/x86_64-linux-gnu/libc-2.27.so+0x5555d545fd4143dc)
#5 0x7ff0a7ec07f1 (/lib/x86_64-linux-gnu/libc-2.27.so+0x5555d545fd415d46)
#6 0x7ff0b5e017d5 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b356d2a)
#7 0x7ff0b5d651c4 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b2ba719)
#8 0x7ff0b5d6505d (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b2ba5b2)
#9 0x7ff0b5d64c74 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b2ba1c9)
#10 0x7ff0b5d6455d (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b2b9ab2)
#11 0x7ff0b5d4d590 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b2a2ae5)
#12 0x7ff0b5d4d5ee (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b2a2b43)
#13 0x7ff0b5d4d373 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460b2a28c8)
#14 0x7ff0b8607c0c (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460db5d161)
#15 0x7ff0b85fea58 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460db53fad)
#16 0x7ff0b0f34377 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d546064898cc)
#17 0x7ff0b51da640 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460a72fb95)
#18 0x7ff0b51d8749 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460a72dc9e)
#19 0x7ff0b51d8ba7 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460a72e0fc)
#20 0x7ff0b0f32370 (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d546064878c5)
#21 0x7ff0a7ea1c87 (/lib/x86_64-linux-gnu/libc-2.27.so+0x5555d545fd3f71dc)
#22 0x7ff0b0f3202a (/root/.cache/rod/browser/chromium-1321438/chrome+0x5555d5460648757f)
  r8: 0000000000000000  r9: 00007fffc9f30a00 r10: 0000000000000008 r11: 0000000000000008
 r12: 00007fffc9f30cd0 r13: 000000000000007a r14: 00007ff0ae5cc944 r15: 00007fffc9f30d18
  di: 0000000000000002  si: 00007fffc9f30a00  bp: 00007fffc9f30c50  bx: 0000000000000100
  dx: 0000000000000000  ax: 0000000000000000  cx: 0000000000000008  sp: 00007fffc9f30a00
  ip: 00007ff0a7ebee87 efl: 0000000000000246 cgf: 00000053002b0033 erf: 0000000000000000
 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]

Expected behavior
Expected vhs to successfully launch chromium and create a gif.

Additional context
I'm guessing this has something to do with WSL and networks / ports, but I'm not sure.

@RafaelWO
Copy link

RafaelWO commented Dec 20, 2024

I'm on Ubuntu 24.04 (no WSL) and I have a similar issue:

Traceback
File: assets/cli_demo.tape
could not launch browser: [launcher] Failed to get the debug url: [23376:23376:1220/133851.544708:FATAL:zygote_host_impl_linux.cc(126)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
#0 0x5d856cf63662 base::debug::CollectStackTrace()                                                                                                                                                                                                                                                                                                                                                                                           
#1 0x5d856cf50b5e base::debug::StackTrace::StackTrace()                                                                                                                                                                                                                                                                                                                                                                                      
#2 0x5d856cea767a logging::LogMessage::Flush()                                                                                                                                                                                                                                                                                                                                                                                               
#3 0x5d856cea8239 logging::LogMessageFatal::~LogMessageFatal()                                                                                                                                                                                                                                                                                                                                                                               
#4 0x5d856b1404ee content::ZygoteHostImpl::Init()                                                                                                                                                                                                                                                                                                                                                                                            
#5 0x5d856c31dafc content::ContentMainRunnerImpl::Initialize()                                                                                                                                                                                                                                                                                                                                                                               
#6 0x5d856c31b749 content::RunContentProcess()                                                                                                                                                                                                                                                                                                                                                                                               
#7 0x5d856c31bba7 content::ContentMain()                                                                                                                                                                                                                                                                                                                                                                                                     
#8 0x5d8568075370 ChromeMain                                                                                                                                                                                                                                                                                                                                                                                                                 
#9 0x7b1e5722a1ca (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)                                                                                                                                                                                                                                                                                                                                                                              
#10 0x7b1e5722a28b __libc_start_main                                                                                                                                                                                                                                                                                                                                                                                                         
#11 0x5d856807502a _start                                                                                                                                                                                                                                                                                                                                                                                                                    
Crash keys:                                                                                                                                                                                                                                                                                                                                                                                                                                  
  "switch-28" = "--use-angle=swiftshader-webgl"                                                                                                                                                                                                                                                                                                                                                                                              
  "switch-27" = "--ozone-override-screen-size=800,600"                                                                                                                                                                                                                                                                                                                                                                                       
  "switch-26" = "--ozone-platform=headless"                                                                                                                                                                                                                                                                                                                                                                                                  
  "switch-25" = "--noerrdialogs"                                                                                                                                                                                                                                                                                                                                                                                                             
  "switch-24" = "--user-data-dir=/tmp/rod/user-data/d31d83c78d6299b4"                                                                                                                                                                                                                                                                                                                                                                        
  "switch-23" = "--use-mock-keychain"                                                                                                                                                                                                                                                                                                                                                                                                        
  "switch-22" = "--remote-debugging-port=0"                                                                                                                                                                                                                                                                                                                                                                                                  
  "switch-21" = "--no-startup-window"                                                                                                                                                                                                                                                                                                                                                                                                        
  "switch-20" = "--no-first-run"                                                                                                                                                                                                                                                                                                                                                                                                             
  "switch-19" = "--metrics-recording-only"                                                                                                                                                                                                                                                                                                                                                                                                   
  "switch-18" = "--headless"                                                                                                                                                                                                                                                                                                                                                                                                                 
  "switch-17" = "--force-color-profile=srgb"                                                                                                                                                                                                                                                                                                                                                                                                 
  "switch-16" = "--enable-automation"                                                                                                                                                                                                                                                                                                                                                                                                        
  "switch-15" = "--disable-sync"                                                                                                                                                                                                                                                                                                                                                                                                             
  "switch-14" = "--disable-site-isolation-trials"                                                                                                                                                                                                                                                                                                                                                                                            
  "switch-13" = "--disable-renderer-backgrounding"                                                                                                                                                                                                                                                                                                                                                                                           
  "switch-12" = "--disable-prompt-on-repost"                                                                                                                                                                                                                                                                                                                                                                                                 
  "switch-11" = "--disable-popup-blocking"                                                                                                                                                                                                                                                                                                                                                                                                   
  "switch-10" = "--disable-ipc-flooding-protection"                                                                                                                                                                                                                                                                                                                                                                                          
  "switch-9" = "--disable-hang-monitor"                                                                                                                                                                                                                                                                                                                                                                                                      
  "switch-8" = "--disable-dev-shm-usage"                                                                                                                                                                                                                                                                                                                                                                                                     
  "switch-7" = "--disable-default-apps"                                                                                                                                                                                                                                                                                                                                                                                                      
  "switch-6" = "--disable-component-extensions-with-background-pages"                                                                                                                                                                                                                                                                                                                                                                        
  "switch-5" = "--disable-client-side-phishing-detection"                                                                                                                                                                                                                                                                                                                                                                                    
  "switch-4" = "--disable-breakpad"                                                                                                                                                                                                                                                                                                                                                                                                          
  "switch-3" = "--disable-backgrounding-occluded-windows"                                                                                                                                                                                                                                                                                                                                                                                    
  "switch-2" = "--disable-background-timer-throttling"                                                                                                                                                                                                                                                                                                                                                                                       
  "switch-1" = "--disable-background-networking"                                                                                                                                                                                                                                                                                                                                                                                             
  "num-switches" = "30"                                                                                                                                                                                                                                                                                                                                                                                                                      
  "commandline-disabled-feature-2" = "TranslateUI"                                                                                                                                                                                                                                                                                                                                                                                           
  "commandline-disabled-feature-1" = "site-per-process"                                                                                                                                                                                                                                                                                                                                                                                      
  "commandline-enabled-feature-2" = "NetworkServiceInProcess"                                                                                                                                                                                                                                                                                                                                                                                
  "commandline-enabled-feature-1" = "NetworkService"                                                                                                                                                                                                                                                                                                                                                                                         
  "osarch" = "x86_64"                                                                                                                                                                                                                                                                                                                                                                                                                        
  "pid" = "23376"                                                                                                                                                                                                                                                                                                                                                                                                                            
  "ptype" = "browser"                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                             
Received signal 6                                                                                                                                                                                                                                                                                                                                                                                                                            
#0 0x5d856cf63662 base::debug::CollectStackTrace()                                                                                                                                                                                                                                                                                                                                                                                           
#1 0x5d856cf50b5e base::debug::StackTrace::StackTrace()                                                                                                                                                                                                                                                                                                                                                                                      
#2 0x5d856cf63071 base::debug::(anonymous namespace)::StackDumpSignalHandler()                                                                                                                                                                                                                                                                                                                                                               
#3 0x7b1e57245320 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x4531f)                                                                                                                                                                                                                                                                                                                                                                              
#4 0x7b1e5729eb1c pthread_kill                                                                                                                                                                                                                                                                                                                                                                                                               
#5 0x7b1e5724526e gsignal                                                                                                                                                                                                                                                                                                                                                                                                                    
#6 0x7b1e572288ff abort                                                                                                                                                                                                                                                                                                                                                                                                                      
#7 0x5d856cf447d5 base::debug::BreakDebuggerAsyncSafe()                                                                                                                                                                                                                                                                                                                                                                                      
#8 0x5d856cea81c4 base::RepeatingCallback<>::Run()                                                                                                                                                                                                                                                                                                                                                                                           
#9 0x5d856cea805d logging::LogMessage::HandleFatal()                                                                                                                                                                                                                                                                                                                                                                                         
#10 0x5d856cea7c74 logging::LogMessage::Flush()                                                                                                                                                                                                                                                                                                                                                                                              
#11 0x5d856cea8239 logging::LogMessageFatal::~LogMessageFatal()                                                                                                                                                                                                                                                                                                                                                                              
#12 0x5d856b1404ee content::ZygoteHostImpl::Init()                                                                                                                                                                                                                                                                                                                                                                                           
#13 0x5d856c31dafc content::ContentMainRunnerImpl::Initialize()                                                                                                                                                                                                                                                                                                                                                                              
#14 0x5d856c31b749 content::RunContentProcess()                                                                                                                                                                                                                                                                                                                                                                                              
#15 0x5d856c31bba7 content::ContentMain()                                                                                                                                                                                                                                                                                                                                                                                                    
#16 0x5d8568075370 ChromeMain                                                                                                                                                                                                                                                                                                                                                                                                                
#17 0x7b1e5722a1ca (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9)                                                                                                                                                                                                                                                                                                                                                                             
#18 0x7b1e5722a28b __libc_start_main                                                                                                                                                                                                                                                                                                                                                                                                         
#19 0x5d856807502a _start                                                                                                                                                                                                                                                                                                                                                                                                                    
  r8: 00001d980021876b  r9: 000000000000087f r10: 0000000000000008 r11: 0000000000000246                                                                                                                                                                                                                                                                                                                                                     
 r12: 0000000000000006 r13: 0000000000000125 r14: 0000000000000016 r15: 00007ffc098e4e38                                                                                                                                                                                                                                                                                                                                                     
  di: 0000000000005b50  si: 0000000000005b50  bp: 00007ffc098e4c80  bx: 0000000000005b50                                                                                                                                                                                                                                                                                                                                                     
  dx: 0000000000000006  ax: 0000000000000000  cx: 00007b1e5729eb1c  sp: 00007ffc098e4c40                                                                                                                                                                                                                                                                                                                                                     
  ip: 00007b1e5729eb1c efl: 0000000000000246 cgf: 002b000000000033 erf: 0000000000000000                                                                                                                                                                                                                                                                                                                                                     
 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000                                                                                                                                                                                                                                                                                                                                                                           
[end of stack trace]

@DaltonSW
Copy link

I was having similar issues on WSL, though with a different error message. Following these steps got it to work for me (from https://go-rod.github.io/#/compatibility)

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt install ./google-chrome-stable_current_amd64.deb

I had to run the apt install as sudo

Not sure if it'll fix it, but hopefully!

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

3 participants