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

Windows 11, many recent versions of WRP no longer functional. #126

Open
Xeddius opened this issue Feb 14, 2025 · 7 comments
Open

Windows 11, many recent versions of WRP no longer functional. #126

Xeddius opened this issue Feb 14, 2025 · 7 comments

Comments

@Xeddius
Copy link

Xeddius commented Feb 14, 2025

Running this on windows 11, this is the error that shows up when attempting to navigate to any website from the webui, upon hitting "go" it presents this crash and the page crashes/resets.

2025/02/14 02:26:13 server.go:3489: http: panic serving 127.0.0.1:50743: runtime error: invalid memory address or nil pointer dereference

goroutine 6 [running]:
net/http.(*conn).serve.func1()
        /usr/local/go/src/net/http/server.go:1947 +0xbe
panic({0x7e3ce0?, 0xeebd30?})
        /usr/local/go/src/runtime/panic.go:785 +0x132
main.(*wrpReq).captureScreenshot.func1({0x9f85e8?, 0xc000418270?})
        /Volumes/Data/Code/_github/wrp/ismap.go:142 +0x36
github.com/chromedp/chromedp.ActionFunc.Do(0xc0000a01e0?, {0x9f85e8?, 0xc000418270?})
        /Users/tenox/go/pkg/mod/github.com/chromedp/[email protected]/chromedp.go:720 +0x26
github.com/chromedp/chromedp.Tasks.Do(...)
        /Users/tenox/go/pkg/mod/github.com/chromedp/[email protected]/chromedp.go:730
github.com/chromedp/chromedp.Run({0x9f85e8, 0xc0000146f0}, {0xc00004d970, 0x4, 0x1?})
        /Users/tenox/go/pkg/mod/github.com/chromedp/[email protected]/chromedp.go:335 +0xf0
main.(*wrpReq).captureScreenshot(0xc0001502c0)
        /Volumes/Data/Code/_github/wrp/ismap.go:135 +0x3fd
main.pageServer({0x9f7df0, 0xc0003ea000}, 0xc00011e000)
        /Volumes/Data/Code/_github/wrp/wrp.go:217 +0x253
net/http.HandlerFunc.ServeHTTP(0xf07938?, {0x9f7df0?, 0xc0003ea000?}, 0x67aeeec7?)
        /usr/local/go/src/net/http/server.go:2220 +0x29
net/http.(*ServeMux).ServeHTTP(0x50ac5?, {0x9f7df0, 0xc0003ea000}, 0xc00011e000)
        /usr/local/go/src/net/http/server.go:2747 +0x1ca
net/http.serverHandler.ServeHTTP({0x9f5e70?}, {0x9f7df0?, 0xc0003ea000?}, 0x6?)
        /usr/local/go/src/net/http/server.go:3210 +0x8e
net/http.(*conn).serve(0xc000114120, {0x9f85e8, 0xc000093cb0})
        /usr/local/go/src/net/http/server.go:2092 +0x5d0
created by net/http.(*Server).Serve in goroutine 1
        /usr/local/go/src/net/http/server.go:3360 +0x485

@Xeddius
Copy link
Author

Xeddius commented Feb 14, 2025

Trying even from a modern browser presents this error on the browser side.
Image

@Xeddius
Copy link
Author

Xeddius commented Feb 14, 2025

I have noticed version 4.5.2 works, I will test each version to identify where it stopped working on Windows to narrow it down.
I will update this comment when I have found the culprit.

Version 4.5.3 crashes to desktop, every version afterwards will show a terminal window, but trying to navigate at all creates pointer errors and causes connection resets making the software unusable on windows as the host/server machine.
I haven't had a chance to test the other platform binaries to see if they also suffer from this issue.

@Xeddius Xeddius changed the title Windows 11, latest version of WRP Windows 11, many recent version of WRP no longer functional. Feb 14, 2025
@Xeddius Xeddius changed the title Windows 11, many recent version of WRP no longer functional. Windows 11, many recent versions of WRP no longer functional. Feb 14, 2025
@tenox7
Copy link
Owner

tenox7 commented Feb 14, 2025

Interesting. Thank you for reporting. I would first try to update the dependencies and rebuild it. I can make a pre-release to test.

@tenox7
Copy link
Owner

tenox7 commented Feb 14, 2025

I have rolled out release 4.8.2, can you please re-test on that?

@Xeddius
Copy link
Author

Xeddius commented Feb 14, 2025

Opens, but this is the output when attempting to load a website. in this case https://google.com.


2025/02/14 08:54:45 wrp.go:266: Web Rendering Proxy Version 4.8.2 (amd64)
2025/02/14 08:54:45 wrp.go:267: Using embedded ca-certs from github.com/breml/rootcerts
2025/02/14 08:54:45 wrp.go:268: Args: ["obfuscated\\wrp-amd64-windows(1).exe"]
2025/02/14 08:54:45 util.go:20: Listen address: :8080
2025/02/14 08:54:45 util.go:37: My IP addresses: obfuscated
2025/02/14 08:54:45 wrp.go:300: Default Img Type: gif, Geometry: {w:1152 h:600 c:216}
2025/02/14 08:54:45 wrp.go:258: Got HTML UI template from embed
2025/02/14 08:54:45 wrp.go:307: Starting WRP http server
2025/02/14 08:55:03 wrp.go:202: 127.0.0.1:2769 Page Request for / []
2025/02/14 08:55:03 wrp.go:164: 127.0.0.1:2769 WrpReq from UI Form: &{url: width:1152 height:600 zoom:1 nColors:216 jQual:75 mouseX:0 mouseY:0 keys: buttons: imgType:gif wrpMode:ismap maxSize:200 w:0xc000012000 r:0xc00041c000}
2025/02/14 08:55:10 wrp.go:202: 127.0.0.1:2769 Page Request for / []
2025/02/14 08:55:10 wrp.go:164: 127.0.0.1:2769 WrpReq from UI Form: &{url:https://google.com width:1152 height:600 zoom:1 nColors:216 jQual:75 mouseX:0 mouseY:0 keys: buttons: imgType:gif wrpMode:ismap maxSize:200 w:0xc0001180e0 r:0xc000218280}
2025/02/14 08:55:10 ismap.go:86: 127.0.0.1:2769 Processing Navigate Request for https://google.com
2025/02/14 08:55:14 server.go:3634: http: panic serving 127.0.0.1:2769: runtime error: invalid memory address or nil pointer dereference
goroutine 8 [running]:
net/http.(*conn).serve.func1()
        /usr/local/go/src/net/http/server.go:1947 +0xbe
panic({0xb55cc0?, 0x12cadb0?})
        /usr/local/go/src/runtime/panic.go:787 +0x132
main.(*wrpReq).captureScreenshot.func1({0xd772a8?, 0xc000096120?})
        /Volumes/Data/Code/_github/wrp/ismap.go:142 +0x36
github.com/chromedp/chromedp.ActionFunc.Do(0xc000414550?, {0xd772a8?, 0xc000096120?})
        /Users/tenox/go/pkg/mod/github.com/chromedp/[email protected]/chromedp.go:720 +0x26
github.com/chromedp/chromedp.Tasks.Do(...)
        /Users/tenox/go/pkg/mod/github.com/chromedp/[email protected]/chromedp.go:730
github.com/chromedp/chromedp.Run({0xd772a8, 0xc0004241e0}, {0xc000053970, 0x4, 0x1?})
        /Users/tenox/go/pkg/mod/github.com/chromedp/[email protected]/chromedp.go:335 +0xf0
main.(*wrpReq).captureScreenshot(0xc00012c000)
        /Volumes/Data/Code/_github/wrp/ismap.go:135 +0x3f9
main.pageServer({0xd76c70, 0xc0001180e0}, 0xc000218280)
        /Volumes/Data/Code/_github/wrp/wrp.go:217 +0x253
net/http.HandlerFunc.ServeHTTP(0x12e7aa0?, {0xd76c70?, 0xc0001180e0?}, 0xc000053b60?)
        /usr/local/go/src/net/http/server.go:2294 +0x29
net/http.(*ServeMux).ServeHTTP(0x379c25?, {0xd76c70, 0xc0001180e0}, 0xc000218280)
        /usr/local/go/src/net/http/server.go:2822 +0x1c4
net/http.serverHandler.ServeHTTP({0xd74930?}, {0xd76c70?, 0xc0001180e0?}, 0x6?)
        /usr/local/go/src/net/http/server.go:3301 +0x8e
net/http.(*conn).serve(0xc00018a120, {0xd772a8, 0xc0000c43c0})
        /usr/local/go/src/net/http/server.go:2102 +0x625
created by net/http.(*Server).Serve in goroutine 1
        /usr/local/go/src/net/http/server.go:3454 +0x485
2025/02/14 08:55:14 wrp.go:202: 127.0.0.1:2853 Page Request for / []
2025/02/14 08:55:14 wrp.go:164: 127.0.0.1:2853 WrpReq from UI Form: &{url:https://google.com width:1152 height:600 zoom:1 nColors:216 jQual:75 mouseX:0 mouseY:0 keys: buttons: imgType:gif wrpMode:ismap maxSize:200 w:0xc0002b80e0 r:0xc000218140}
2025/02/14 08:55:14 ismap.go:86: 127.0.0.1:2853 Processing Navigate Request for https://google.com
2025/02/14 08:55:15 server.go:3634: http: panic serving 127.0.0.1:2853: runtime error: invalid memory address or nil pointer dereference
goroutine 66 [running]:
net/http.(*conn).serve.func1()
        /usr/local/go/src/net/http/server.go:1947 +0xbe
panic({0xb55cc0?, 0x12cadb0?})
        /usr/local/go/src/runtime/panic.go:787 +0x132
main.(*wrpReq).captureScreenshot.func1({0xd772a8?, 0xc000444720?})
        /Volumes/Data/Code/_github/wrp/ismap.go:142 +0x36
github.com/chromedp/chromedp.ActionFunc.Do(0xc0002b6050?, {0xd772a8?, 0xc000444720?})
        /Users/tenox/go/pkg/mod/github.com/chromedp/[email protected]/chromedp.go:720 +0x26
github.com/chromedp/chromedp.Tasks.Do(...)
        /Users/tenox/go/pkg/mod/github.com/chromedp/[email protected]/chromedp.go:730
github.com/chromedp/chromedp.Run({0xd772a8, 0xc0004241e0}, {0xc000053970, 0x4, 0x1?})
        /Users/tenox/go/pkg/mod/github.com/chromedp/[email protected]/chromedp.go:335 +0xf0
main.(*wrpReq).captureScreenshot(0xc00025a0b0)
        /Volumes/Data/Code/_github/wrp/ismap.go:135 +0x3f9
main.pageServer({0xd76c70, 0xc0002b80e0}, 0xc000218140)
        /Volumes/Data/Code/_github/wrp/wrp.go:217 +0x253
net/http.HandlerFunc.ServeHTTP(0x12e7aa0?, {0xd76c70?, 0xc0002b80e0?}, 0xc0004fdb60?)
        /usr/local/go/src/net/http/server.go:2294 +0x29
net/http.(*ServeMux).ServeHTTP(0x379c25?, {0xd76c70, 0xc0002b80e0}, 0xc000218140)
        /usr/local/go/src/net/http/server.go:2822 +0x1c4
net/http.serverHandler.ServeHTTP({0xd74930?}, {0xd76c70?, 0xc0002b80e0?}, 0x6?)
        /usr/local/go/src/net/http/server.go:3301 +0x8e
net/http.(*conn).serve(0xc00018a630, {0xd772a8, 0xc0000c43c0})
        /usr/local/go/src/net/http/server.go:2102 +0x625
created by net/http.(*Server).Serve in goroutine 1
        /usr/local/go/src/net/http/server.go:3454 +0x485

@Xeddius
Copy link
Author

Xeddius commented Feb 16, 2025

Update doesn't seem to have helped, it's still busted for Windows.

@tenox7
Copy link
Owner

tenox7 commented Feb 17, 2025

okay I will debug it some more

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