You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we get a EventFrameRequestedNavigation CDP event from chrome, it might be associated to a stale frame that no longer exists in memory. This is the stack trace that we see:
panic: GoError: handling frameRequestedNavigation event to "https://...": no frame exists with ID DB9E6F291E31070542D4EDD570CBC4E3
goroutine 101631 [running]:
go.k6.io/k6/js/common.Throw(...)
go.k6.io/k6/js/common/util.go:17
github.com/grafana/xk6-browser/k6ext.Panic.func1(0xc000360c08, {0xc003aaf5e0?, 0x1f79dd8?, 0xc003f75d01?})
github.com/grafana/[email protected]/k6ext/panic.go:35 +0x74
github.com/grafana/xk6-browser/k6ext.sharedPanic({0x1f9ad08, 0xc000688d70}, 0xc004120da8, {0xc003aaf5e0, 0x2, 0x2})
github.com/grafana/[email protected]/k6ext/panic.go:64 +0x274
github.com/grafana/xk6-browser/k6ext.Panic({0x1f9ad08?, 0xc000688d70?}, {0x1c7d0e7?, 0xc0038033b0?}, {0xc003aaf5e0?, 0x0?, 0x0?})
github.com/grafana/[email protected]/k6ext/panic.go:37 +0x4b
github.com/grafana/xk6-browser/common.(*FrameSession).onFrameRequestedNavigation(0xc00408fc80, 0xc003fb13c0)
github.com/grafana/[email protected]/common/frame_session.go:867 +0x285
github.com/grafana/xk6-browser/common.(*FrameSession).initEvents.func1()
github.com/grafana/[email protected]/common/frame_session.go:283 +0x773
created by github.com/grafana/xk6-browser/common.(*FrameSession).initEvents in goroutine 528
github.com/grafana/[email protected]/common/frame_session.go:239 +0x19b
The fix is to not return an error from frameRequestedNavigation when frame == nil, and instead just return nil (no error).
Brief summary
When we get a
EventFrameRequestedNavigation
CDP event from chrome, it might be associated to a stale frame that no longer exists in memory. This is the stack trace that we see:The fix is to not return an error from frameRequestedNavigation when
frame == nil
, and instead just returnnil
(no error).It's the same in PW (1 -> 2).
xk6-browser version
v1.9.1
OS
NA
Chrome version
NA
Docker version and image (if applicable)
No response
Steps to reproduce the problem
Expected behaviour
Actual behaviour
Tasks
The text was updated successfully, but these errors were encountered: