Open luabagg opened 1 month ago
Same issue here, have anyone figured out a work around ?
Also, the instrumented chrome goes to 100% CPU usage, not sure why.
Ok, I just had to relearn how to debug go-rod
and chrome
.
It seems google-chrome
and the more recent chromium version fails if trying to use the GPU.
I fixed by adding the disable-gpu
and disable-software-rasterizer
flags in my instrumented code:
...
var controlURL string
chromePath, err := exec.LookPath("google-chrome")
var l *launcher.Launcher
if err == nil {
klog.V(1).Infof("Using system's Google Chrome")
l = launcher.New().Bin(chromePath)
} else {
klog.Warningf("Using rod downloaded chromium, with --no-sandbox")
l = launcher.New().NoSandbox(true)
}
controlURL = l.
Set("disable-gpu", "true").
Set("disable-software-rasterizer", "true").
Logger(os.Stderr).
MustLaunch()
...
Rod Version: v0.116.2
The code to demonstrate your question
Works as expected
Fails
What you got
Second case
What you expect to see
What have you tried to solve the question
Didn't look the problem yet. I'm opening the issue to inform you about the problem. Tested in 0.112.x, 0.115.x, 0.116.0 - all works as expected.