tenox7 / wrp

Web Rendering Proxy: Use vintage, historical, legacy browsers on modern web
Apache License 2.0
1.06k stars 50 forks source link

No longer working on FreeBSD #114

Open Matias314 opened 6 months ago

Matias314 commented 6 months ago

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/chromedp@v0.8.6/allocate.go:235 +0xe5
created by github.com/chromedp/chromedp.(*ExecAllocator).Allocate
        /Users/tenox/go/pkg/mod/github.com/chromedp/chromedp@v0.8.6/allocate.go:216 +0xdea
root@WRP:~ #
tenox7 commented 6 months ago

did they fix the chromium bug on freebsd?

Matias314 commented 1 month ago

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/chromedp@v0.10.0/allocate.go:236 +0xd6
created by github.com/chromedp/chromedp.(*ExecAllocator).Allocate in goroutine 42
    /Users/tenox/go/pkg/mod/github.com/chromedp/chromedp@v0.10.0/allocate.go:217 +0xcf5
root@WRP:~ #