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

Nil pointer dereference in session.Execute #4121

Open
Tracked by #1138
ankur22 opened this issue Feb 7, 2024 · 0 comments
Open
Tracked by #1138

Nil pointer dereference in session.Execute #4121

ankur22 opened this issue Feb 7, 2024 · 0 comments

Comments

@ankur22
Copy link
Contributor

ankur22 commented Feb 7, 2024

Brief summary

Nil pointer dereference.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x90 pc=0x12487a2]

goroutine 430051 [running]:
github.com/grafana/xk6-browser/common.(*Session).Execute(0x0, {0x1b58040, 0xc0026fb320}, {0x17a4c16, 0xa}, {0x0?, 0x0}, {0x0, 0x0})
	github.com/grafana/[email protected]/common/session.go:111 +0x82
github.com/chromedp/cdproto/cdp.Execute({0x1b58040, 0xc0026fb320}, {0x17a4c16, 0xa}, {0x0, 0x0}, {0x0, 0x0})
	github.com/chromedp/[email protected]/cdp/types.go:48 +0xbb
github.com/chromedp/cdproto/log.(*EnableParams).Do(0x1b58078?, {0x1b58040?, 0xc0026fb320?})
	github.com/chromedp/[email protected]/log/log.go:63 +0x3a
github.com/grafana/xk6-browser/common.(*Worker).initEvents(0xc0010e3b00)
	github.com/grafana/[email protected]/common/worker.go:54 +0x15d
github.com/grafana/xk6-browser/common.NewWorker({0x1b58078, 0xc002b405a0}, {0x1b5f158, 0x0}, {0xc00016afc0, 0x20}, {0xc0013b2d80, 0x76})
	github.com/grafana/[email protected]/common/worker.go:36 +0x21d
github.com/grafana/xk6-browser/common.(*FrameSession).attachWorkerToTarget(0xc001fdd680, 0xc001e5c990, {0xc00016af00, 0x20})
	github.com/grafana/[email protected]/common/frame_session.go:988 +0xa5
github.com/grafana/xk6-browser/common.(*FrameSession).onAttachedToTarget(0xc001fdd680, 0xc00223dae0)
	github.com/grafana/[email protected]/common/frame_session.go:907 +0x2a5
github.com/grafana/xk6-browser/common.(*FrameSession).initEvents.func1()
	github.com/grafana/[email protected]/common/frame_session.go:282 +0x368
created by github.com/grafana/xk6-browser/common.(*FrameSession).initEvents in goroutine 430026
	github.com/grafana/[email protected]/common/frame_session.go:223 +0x19b
'

With test id: 2292256

xk6-browser version

v1.3.0 (browser) v0.48.0 (k6)

OS

NA

Chrome version

NA

Docker version and image (if applicable)

No response

Steps to reproduce the problem

Go to test 2292256

Expected behaviour

Should not panic.

Actual behaviour

Panics.

@ankur22 ankur22 added the bug label Feb 7, 2024
@ankur22 ankur22 transferred this issue from grafana/xk6-browser Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant