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

No longer working on FreeBSD #114

Open
Matias314 opened this issue Mar 18, 2024 · 2 comments
Open

No longer working on FreeBSD #114

Matias314 opened this issue Mar 18, 2024 · 2 comments

Comments

@Matias314
Copy link

It broke for me a long time ago because headless Chromium broke in FreeBSD. But I updated everything and now the issue seems to be chromedp?
info:
FreeBSD 13.1-RELEASE-p9
wrp-amd64-freebsd 4.6.2
Chromium 122.0.6261.111

root@WRP:~ # ./wrp-amd64-freebsd
2024/03/18 21:41:46 Web Rendering Proxy Version 4.6.0
2024/03/18 21:41:46 Args: ["./wrp-amd64-freebsd"]
2024/03/18 21:41:46 Default Img Type: gif, Geometry: {w:1152 h:600 c:216}
2024/03/18 21:41:46 Got UI template from built-in
2024/03/18 21:41:46 Starting WRP http server on :8080
2024/03/18 21:41:55 192.168.0.113:55742 Page Request for / []
2024/03/18 21:41:55 192.168.0.113:55742 WrpReq from UI Form: &{url: width:1152 height:600 zoom:1 colors:216 mouseX:0 mouseY:0 keys: buttons: imgType:gif w:0xc00023c000 r:0xc00022c100}
2024/03/18 21:41:58 192.168.0.113:55743 Page Request for / []
2024/03/18 21:41:58 192.168.0.113:55743 WrpReq from UI Form: &{url:http://www.google.com/search?q=test width:1152 height:600 zoom:1 colors:216 mouseX:0 mouseY:0 keys: buttons: imgType:gif w:0xc0000d60e0 r:0xc00003e200}
2024/03/18 21:41:58 192.168.0.113:55743 Processing Capture Request for http://www.google.com/search?q=test
2024/03/18 21:41:59 192.168.0.113:55743 could not dial "ws://127.0.0.1:34090/devtools/browser/07d82f59-a8a6-4dc6-8e07-756dc2560279": EOF
2024/03/18 21:41:59 192.168.0.113:55743 Landed on: http://www.google.com/search?q=test, Height: 0
panic: close of closed channel

goroutine 35 [running]:
github.com/chromedp/chromedp.(*ExecAllocator).Allocate.func2()
        /Users/tenox/go/pkg/mod/github.com/chromedp/[email protected]/allocate.go:235 +0xe5
created by github.com/chromedp/chromedp.(*ExecAllocator).Allocate
        /Users/tenox/go/pkg/mod/github.com/chromedp/[email protected]/allocate.go:216 +0xdea
root@WRP:~ #
@tenox7
Copy link
Owner

tenox7 commented Mar 28, 2024

did they fix the chromium bug on freebsd?

@Matias314
Copy link
Author

It seems to be fixed? chrome --headless works without crash for me now but WRP still fails:

root@WRP:~ # ./wrp-amd64-freebsd
2024/08/30 23:57:39 wrp.go:266: Web Rendering Proxy Version 4.8.0 (amd64)
2024/08/30 23:57:39 wrp.go:267: Using embedded ca-certs from github.com/breml/rootcerts
2024/08/30 23:57:39 wrp.go:268: Args: ["./wrp-amd64-freebsd"]
2024/08/30 23:57:39 util.go:20: Listen address: :8080
2024/08/30 23:57:39 util.go:37: My IP addresses: 172.16.0.6 
2024/08/30 23:57:39 wrp.go:300: Default Img Type: gif, Geometry: {w:1152 h:600 c:216}
2024/08/30 23:57:39 wrp.go:258: Got HTML UI template from embed
2024/08/30 23:57:39 wrp.go:307: Starting WRP http server
2024/08/30 23:57:45 wrp.go:202: 192.168.0.139:34964 Page Request for / []
2024/08/30 23:57:45 wrp.go:164: 192.168.0.139:34964 WrpReq from UI Form: &{url:http://www.google.com/search?q=test width:1152 height:600 zoom:1 nColors:216 jQual:75 mouseX:0 mouseY:0 keys: buttons: imgType:gif wrpMode:ismap maxSize:200 w:0xc000158000 r:0xc00016e000}
2024/08/30 23:57:45 ismap.go:86: 192.168.0.139:34964 Processing Navigate Request for http://www.google.com/search?q=test
2024/08/30 23:57:45 ismap.go:102: Context error: could not dial "ws://127.0.0.1:53780/devtools/browser/3e7ae478-fc50-484d-86b2-ea09b5d92f1d": EOF
2024/08/30 23:57:45 ismap.go:147: 192.168.0.139:34964 Landed on: http://www.google.com/search?q=test, Height: 0
panic: close of closed channel

goroutine 54 [running]:
github.com/chromedp/chromedp.(*ExecAllocator).Allocate.func2()
	/Users/tenox/go/pkg/mod/github.com/chromedp/[email protected]/allocate.go:236 +0xd6
created by github.com/chromedp/chromedp.(*ExecAllocator).Allocate in goroutine 42
	/Users/tenox/go/pkg/mod/github.com/chromedp/[email protected]/allocate.go:217 +0xcf5
root@WRP:~ # 

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