-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
nil pointer: page.getFrameElement #4124
Comments
Maybe related with the grafana/xk6-browser#1087
|
test run: 3531167 Similar stack trace: panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x15900db]
goroutine 1085505 [running]:
github.com/grafana/xk6-browser/common.NewJSHandle(...)
github.com/grafana/[email protected]/common/js_handle.go:65
github.com/grafana/xk6-browser/common.(*ExecutionContext).adoptBackendNodeID(0xc00dab96b0, 0x0)
github.com/grafana/[email protected]/common/execution_context.go:116 +0x37b
github.com/grafana/xk6-browser/common.(*Frame).adoptBackendNodeID(0xc009e30380, {0x1c1e3ad, 0x4}, 0x0)
github.com/grafana/[email protected]/common/frame.go:2060 +0x242
github.com/grafana/xk6-browser/common.(*Page).getFrameElement(0xc002a6fa00, 0xc00a61c8c0)
github.com/grafana/[email protected]/common/page.go:622 +0x3c5
github.com/grafana/xk6-browser/common.(*Frame).FrameElement(0xc00a61c8c0)
github.com/grafana/[email protected]/common/frame.go:1008 +0xf8
github.com/grafana/xk6-browser/common.(*ElementHandle).checkHitTargetAt(0xc0051759a0, {0x1f9ad78?, 0xc0127ef1f0?}, {0x4082e55000000000, 0x407ac60000000000})
github.com/grafana/[email protected]/common/element_handle.go:72 +0x77
github.com/grafana/xk6-browser/common.(*ElementHandle).newPointerAction.func1({0x1f9ad78, 0xc0127ef1f0}, 0x0?)
github.com/grafana/[email protected]/common/element_handle.go:1627 +0x517
github.com/grafana/xk6-browser/common.retryPointerAction({0x1f9ad78, 0xc0127ef1f0}, 0xc00f3741a0, 0xc0205550e0)
github.com/grafana/[email protected]/common/element_handle.go:1672 +0x3c
github.com/grafana/xk6-browser/common.(*ElementHandle).newPointerAction.func2({0x1f9ad78, 0xc0127ef1f0}, 0xc027172c40, 0xc027172cb0)
github.com/grafana/[email protected]/common/element_handle.go:1654 +0x59
github.com/grafana/xk6-browser/common.(*Frame).click.(*Frame).newPointerAction.func2({0x1f9ad78, 0xc0127ef1f0}, 0xc027172c40, 0xc027172cb0)
github.com/grafana/[email protected]/common/frame.go:2208 +0x116
created by github.com/grafana/xk6-browser/common.call in goroutine 1085504
github.com/grafana/[email protected]/common/helpers.go:103 +0x14c It looks like a CDP request could return nil or a
|
After taking a close look at this issue, as well as taking inspiration from Playwright code base (specifically 1 -> 2 -> 3) and this Playwright issue, i think if your seeing this error then you're very likely hitting a race condition during an API call to
If you're seeing this error while working with |
Brief summary
Test Run ID: 2015119
There is a nil pointer exception in:
xk6-browser version
1.1.0
OS
remote
Chrome version
remote
Docker version and image (if applicable)
No response
Steps to reproduce the problem
Run the test script locally.
Expected behaviour
No panics.
Actual behaviour
Panics.
The text was updated successfully, but these errors were encountered: