xk6-browser
xk6-browser copied to clipboard
nil pointer: page.getFrameElement
Brief summary
Test Run ID: 2015119
There is a nil pointer exception in:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x11af156]
goroutine 2213 [running]:
github.com/grafana/xk6-browser/common.(*Page).getFrameElement(0xc00225d1e0, 0xc002d50540)
github.com/grafana/[email protected]/common/page.go:274 +0x2d6
github.com/grafana/xk6-browser/common.(*Frame).FrameElement(0xc002d50540)
github.com/grafana/[email protected]/common/frame.go:834 +0x106
github.com/grafana/xk6-browser/common.(*ElementHandle).checkHitTargetAt(0xc0002d1a90, {0x19d8f28?, 0xc002a7ab60?}, {0x407eff2000000000, 0x407da00000000000})
github.com/grafana/[email protected]/common/element_handle.go:70 +0x6a
github.com/grafana/xk6-browser/common.(*ElementHandle).newPointerAction.func1({0x19d8f28, 0xc002a7ab60}, 0x0?)
github.com/grafana/[email protected]/common/element_handle.go:1449 +0x52b
github.com/grafana/xk6-browser/common.retryPointerAction({0x19d8f28, 0xc002a7ab60}, 0xc000ea60a0, 0xc000b3cf00)
github.com/grafana/[email protected]/common/element_handle.go:1488 +0x3c
github.com/grafana/xk6-browser/common.(*ElementHandle).newPointerAction.func2({0x19d8f28?, 0xc002a7ab60?}, 0xc000b3cf00?, 0x44f120?)
github.com/grafana/[email protected]/common/element_handle.go:1476 +0x35
github.com/grafana/xk6-browser/common.(*Frame).click.(*Frame).newPointerAction.func2({0x19d8f28, 0xc002a7ab60}, 0xc0009d3e00, 0xc0009d3e60)
github.com/grafana/[email protected]/common/frame.go:1991 +0x116
created by github.com/grafana/xk6-browser/common.call in goroutine 2212
github.com/grafana/[email protected]/common/helpers.go:102 +0x15c
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.
Maybe related with the #1087 That issue produces similar panic:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x11af1d6]
goroutine 472 [running]:
github.com/grafana/xk6-browser/common.(*Page).getFrameElement(0xc000603d40, 0xc0002341c0)
github.com/grafana/[email protected]/common/page.go:274 +0x2d6
github.com/grafana/xk6-browser/common.(*Frame).FrameElement(0xc0002341c0)
github.com/grafana/[email protected]/common/frame.go:834 +0x106
github.com/grafana/xk6-browser/common.(*ElementHandle).checkHitTargetAt(0xc0010c8f50, {0x19d8f48?, 0xc000b05180?}, {0x404daa0000000000, 0x40433d70a3d70a3d})
github.com/grafana/[email protected]/common/element_handle.go:70 +0x6a
github.com/grafana/xk6-browser/common.(*ElementHandle).Click.(*ElementHandle).newPointerAction.func2({0x19d8f48, 0xc000b05180}, 0x0?)
github.com/grafana/[email protected]/common/element_handle.go:1449 +0x471
github.com/grafana/xk6-browser/common.retryPointerAction({0x19d8f48, 0xc000b05180}, 0xc000b5d120, 0xc00040ea20)
github.com/grafana/[email protected]/common/element_handle.go:1488 +0x3c
github.com/grafana/xk6-browser/common.(*ElementHandle).Click.(*ElementHandle).newPointerAction.func3({0x19d8f48?, 0xc000b05180?}, 0x116d027?, 0xc001b56fa0?)
github.com/grafana/[email protected]/common/element_handle.go:1476 +0x35
created by github.com/grafana/xk6-browser/common.call in goroutine 471
github.com/grafana/[email protected]/common/helpers.go:102 +0x15c