go-rod / rod

A Chrome DevTools Protocol driver for web automation and scraping.
https://go-rod.github.io
MIT License
5.43k stars 357 forks source link

linux auto install chromium were killed #1122

Closed twolao closed 1 month ago

twolao commented 1 month ago

Rod Version: v0.116.2

The code to demonstrate your question

  1. Clone Rod to your local and cd to the repository:

    git clone https://github.com/go-rod/rod
    cd rod
  2. Use your code to replace the content of function TestRod in file rod_test.go.

  3. Test your code with: go test -run TestRod, make sure it fails as expected.

  4. Replace ALL THE CONTENT under "The code to demonstrate your question" with your TestRod function, like below:

package main

import (
    "github.com/go-rod/rod"
    "log"
)

func main() {
    page := rod.New().MustConnect().MustPage("https://google.com")
    page.MustWaitLoad()
    page.MustWaitStable().MustScreenshot("a.png")
    select {} 
}

What you got

[launcher.Browser]2024/10/12 11:02:09 Download: https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1321438/chrome-linux.zip [launcher.Browser]2024/10/12 11:02:10 Progress: 00% [launcher.Browser]2024/10/12 11:02:11 Progress: 24% Killed

What you expect to see

ubuntu 22

install chromium and get a screenshot

What have you tried to solve the question

ysmood commented 1 month ago

It might be not enough memory or disk space for your system.

twolao commented 1 month ago

It might be not enough memory or disk space for your system.

twolao commented 1 month ago

thanx