--local-execution fails to send data to cloud. I get a timeout and the test does not run

Hi,

I am trying to run my k6 script locally however send all the data to my free grafana cloud account. Unfortunately when i run my script i get the below error. What also happens is that when i look at my cloud account i can see that the test was created but then it times out waiting for the data to be sent.

if i remove the --local-execution part of the command, it runs in the cloud fine. If i just use k6 run without the cloud part of the command it runs fine.

The command i use is:
k6 cloud run --local-execution scripts/script_signing_copy.js

The terminal output i get is:

goroutine 133 [sync.Mutex.Lock]:
sync.runtime_SemacquireMutex(0x6?, 0xb0?, 0xc000a0a750?)
        runtime/sema.go:95 +0x25
sync.(*Mutex).lockSlow(0xc0007aa534)
        sync/mutex.go:173 +0x15d
sync.(*Mutex).Lock(...)
        sync/mutex.go:92
sync.(*Once).doSlow(0xc000a0a750?, 0xc000a0a738)
        sync/once.go:72 +0x50
sync.(*Once).Do(...)
        sync/once.go:67
github.com/grafana/sobek.(*SourceTextModuleRecord).InitializeEnvironment(0x19c7cc0?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:542 +0x49
github.com/grafana/sobek.(*compiler).innerModuleLinking(0xc0001ee460, 0xc000a0a880, {0x1ff6a60?, 0xc000794780}, 0xc000a0a868, 0x0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:112 +0x48f
github.com/grafana/sobek.(*compiler).CyclicModuleRecordConcreteLink(0xc0001ee460, {0x1ff6a60, 0xc000794780})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:71 +0x1bd
github.com/grafana/sobek.(*SourceTextModuleRecord).Link(0xc000794780)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:668 +0xbb
go.k6.io/k6/js/modules.(*ModuleSystem).RunSourceData(0xc0003ac300, 0xc00030e7b0)
        go.k6.io/k6/js/modules/resolution.go:247 +0x102
go.k6.io/k6/js.(*Bundle).instantiate.func3()
        go.k6.io/k6/js/bundle.go:338 +0x27
reflect.Value.call({0x1932280?, 0xc0003acbc0?, 0xc000a2dc20?}, {0x1c74d3d, 0x4}, {0x306b440, 0x0, 0xc000a0b288?})
        reflect/value.go:581 +0xca6
reflect.Value.Call({0x1932280?, 0xc0003acbc0?, 0xc0003acbe0?}, {0x306b440?, 0x120?, 0x35554aaaa?})
        reflect/value.go:365 +0xb9
github.com/grafana/sobek.(*Runtime).newWrappedFunc.(*Runtime).wrapReflectFunc.func1({{0x0, 0x0}, {0x0, 0x0, 0x0}})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2029 +0x3bd
github.com/grafana/sobek.AssertFunction.func1.1()
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2464 +0x56
github.com/grafana/sobek.(*vm).try(0xc000b8c120, 0xc000a0b5a8)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:863 +0x249
github.com/grafana/sobek.(*Runtime).runWrapped(0xc000b86408, 0xc0008ea0b0?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2508 +0x65
github.com/grafana/sobek.AssertFunction.func1({0x0?, 0x0?}, {0x0?, 0x1?, 0xc0008ea0a8?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2463 +0x8c
go.k6.io/k6/js.(*Bundle).instantiate.func4()
        go.k6.io/k6/js/bundle.go:345 +0x23
go.k6.io/k6/js/eventloop.(*EventLoop).Start(0xc000b9a140, 0xc00079a900)
        go.k6.io/k6/js/eventloop/eventloop.go:177 +0x19a
go.k6.io/k6/js.(*Bundle).instantiate(0xc0002dadc8, 0xc000b8e400, 0x14)
        go.k6.io/k6/js/bundle.go:344 +0x390
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0002dadc8, {0x1ff6668, 0xc0002627d0}, 0x14)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc00025c2d0, {0x1ff6668?, 0xc0002627d0?}, 0x14, 0x14, 0xc0001fc620)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc000788180?, {0x1ff6668?, 0xc0002627d0?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc000561a00, {0x1ff6668, 0xc0002627d0}, 0xc0001fc620, {0x2011b60, 0xc0003019d0})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 134 [sync.Mutex.Lock]:
sync.runtime_SemacquireMutex(0x5?, 0x0?, 0xc00006a750?)
        runtime/sema.go:95 +0x25
sync.(*Mutex).lockSlow(0xc0007aa534)
        sync/mutex.go:173 +0x15d
sync.(*Mutex).Lock(...)
        sync/mutex.go:92
sync.(*Once).doSlow(0xc00006a750?, 0xc00006a738)
        sync/once.go:72 +0x50
sync.(*Once).Do(...)
        sync/once.go:67
github.com/grafana/sobek.(*SourceTextModuleRecord).InitializeEnvironment(0x19c7cc0?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:542 +0x49
github.com/grafana/sobek.(*compiler).innerModuleLinking(0xc00023a1c0, 0xc00006a880, {0x1ff6a60?, 0xc000794780}, 0xc00006a868, 0x0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:112 +0x48f
github.com/grafana/sobek.(*compiler).CyclicModuleRecordConcreteLink(0xc00023a1c0, {0x1ff6a60, 0xc000794780})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:71 +0x1bd
github.com/grafana/sobek.(*SourceTextModuleRecord).Link(0xc000794780)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:668 +0xbb
go.k6.io/k6/js/modules.(*ModuleSystem).RunSourceData(0xc0006ec560, 0xc00030e7b0)
        go.k6.io/k6/js/modules/resolution.go:247 +0x102
go.k6.io/k6/js.(*Bundle).instantiate.func3()
        go.k6.io/k6/js/bundle.go:338 +0x27
reflect.Value.call({0x1932280?, 0xc0006ec9a0?, 0x10?}, {0x1c74d3d, 0x4}, {0x306b440, 0x0, 0xc00006b288?})
        reflect/value.go:581 +0xca6
reflect.Value.Call({0x1932280?, 0xc0006ec9a0?, 0xc0006ec9c0?}, {0x306b440?, 0xd17ffd?, 0x35554aaaa?})
        reflect/value.go:365 +0xb9
github.com/grafana/sobek.(*Runtime).newWrappedFunc.(*Runtime).wrapReflectFunc.func1({{0x0, 0x0}, {0x0, 0x0, 0x0}})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2029 +0x3bd
github.com/grafana/sobek.AssertFunction.func1.1()
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2464 +0x56
github.com/grafana/sobek.(*vm).try(0xc00002a000, 0xc00006b5a8)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:863 +0x249
github.com/grafana/sobek.(*Runtime).runWrapped(0xc0003b3408, 0xc000792120?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2508 +0x65
github.com/grafana/sobek.AssertFunction.func1({0x0?, 0x0?}, {0x0?, 0x1?, 0xc0007920f8?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2463 +0x8c
go.k6.io/k6/js.(*Bundle).instantiate.func4()
        go.k6.io/k6/js/bundle.go:345 +0x23
go.k6.io/k6/js/eventloop.(*EventLoop).Start(0xc00070e000, 0xc000900630)
        go.k6.io/k6/js/eventloop/eventloop.go:177 +0x19a
go.k6.io/k6/js.(*Bundle).instantiate(0xc0002dadc8, 0xc0004f60c0, 0x18)
        go.k6.io/k6/js/bundle.go:344 +0x390
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0002dadc8, {0x1ff6668, 0xc0002627d0}, 0x18)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc00025c2d0, {0x1ff6668?, 0xc0002627d0?}, 0x18, 0x18, 0xc0001fc620)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0008de3c0?, {0x1ff6668?, 0xc0002627d0?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc000561a00, {0x1ff6668, 0xc0002627d0}, 0xc0001fc620, {0x2011b60, 0xc0003019d0})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 135 [sync.Mutex.Lock]:
sync.runtime_SemacquireMutex(0x4?, 0xc0?, 0xc0004b2750?)
        runtime/sema.go:95 +0x25
sync.(*Mutex).lockSlow(0xc00083a094)
        sync/mutex.go:173 +0x15d
sync.(*Mutex).Lock(...)
        sync/mutex.go:92
sync.(*Once).doSlow(0xc0004b2750?, 0xc0004b2738)
        sync/once.go:72 +0x50
sync.(*Once).Do(...)
        sync/once.go:67
github.com/grafana/sobek.(*SourceTextModuleRecord).InitializeEnvironment(0x19c7cc0?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:542 +0x49
github.com/grafana/sobek.(*compiler).innerModuleLinking(0xc00023a690, 0xc0004b2880, {0x1ff6a60?, 0xc000d34d20}, 0xc0004b2868, 0x0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:112 +0x48f
github.com/grafana/sobek.(*compiler).CyclicModuleRecordConcreteLink(0xc00023a690, {0x1ff6a60, 0xc000d34d20})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:71 +0x1bd
github.com/grafana/sobek.(*SourceTextModuleRecord).Link(0xc000d34d20)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:668 +0xbb
go.k6.io/k6/js/modules.(*ModuleSystem).RunSourceData(0xc0006ecc80, 0xc00030e7b0)
        go.k6.io/k6/js/modules/resolution.go:247 +0x102
go.k6.io/k6/js.(*Bundle).instantiate.func3()
        go.k6.io/k6/js/bundle.go:338 +0x27
reflect.Value.call({0x1932280?, 0xc0006ed000?, 0x10?}, {0x1c74d3d, 0x4}, {0x306b440, 0x0, 0xc0004b3288?})
        reflect/value.go:581 +0xca6
reflect.Value.Call({0x1932280?, 0xc0006ed000?, 0xc0006ed020?}, {0x306b440?, 0xd17ffd?, 0x35554aaaa?})
        reflect/value.go:365 +0xb9
github.com/grafana/sobek.(*Runtime).newWrappedFunc.(*Runtime).wrapReflectFunc.func1({{0x0, 0x0}, {0x0, 0x0, 0x0}})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2029 +0x3bd
github.com/grafana/sobek.AssertFunction.func1.1()
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2464 +0x56
github.com/grafana/sobek.(*vm).try(0xc000cb8b40, 0xc0004b35a8)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:863 +0x249
github.com/grafana/sobek.(*Runtime).runWrapped(0xc0008e0808, 0xc000792248?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2508 +0x65
github.com/grafana/sobek.AssertFunction.func1({0x0?, 0x0?}, {0x0?, 0x1?, 0xc0007921f8?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2463 +0x8c
go.k6.io/k6/js.(*Bundle).instantiate.func4()
        go.k6.io/k6/js/bundle.go:345 +0x23
go.k6.io/k6/js/eventloop.(*EventLoop).Start(0xc00070e8c0, 0xc000900f90)
        go.k6.io/k6/js/eventloop/eventloop.go:177 +0x19a
go.k6.io/k6/js.(*Bundle).instantiate(0xc0002dadc8, 0xc0004f65c0, 0x16)
        go.k6.io/k6/js/bundle.go:344 +0x390
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0002dadc8, {0x1ff6668, 0xc0002627d0}, 0x16)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc00025c2d0, {0x1ff6668?, 0xc0002627d0?}, 0x16, 0x16, 0xc0001fc620)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0008de360?, {0x1ff6668?, 0xc0002627d0?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc000561a00, {0x1ff6668, 0xc0002627d0}, 0xc0001fc620, {0x2011b60, 0xc0003019d0})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 136 [runnable]:
github.com/grafana/sobek.(*baseObject)._put(0xc000cb3500, {0x1c77388, 0x6}, {0x200b3f0, 0xc000cb3568})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/object.go:788 +0x165
github.com/grafana/sobek.(*baseFuncObject).init(0xc000cb3500, {0x21fa2c5, 0x43}, {0x200b948, 0x2dee8e8})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/func.go:507 +0xb6
github.com/grafana/sobek.(*Runtime).newWrappedFunc(0xc000c88408, {0x1961cc0?, 0xc000e0cc00?, 0xc000cd2290?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:786 +0x298
github.com/grafana/sobek.(*Runtime).toValue(0xc000c88408, {0x1961cc0, 0xc000e0cc00}, {0x0?, 0x0?, 0x40?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:1966 +0x1229
github.com/grafana/sobek.(*Runtime).ToValue(...)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:1792
github.com/grafana/sobek.initIndirect.exec({0x8?, 0xc000e0cc00?}, 0xc000c90000)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:2954 +0x59
github.com/grafana/sobek.(*vm).run(0xc000c90000)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:635 +0x5b
github.com/grafana/sobek.(*vm).runTryInner(0xc000cd2490?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:886 +0x52
github.com/grafana/sobek.(*generator).step(0xc000267b20)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/func.go:762 +0x2b
github.com/grafana/sobek.(*asyncRunner).start(0xc000267b20, 0x0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/func.go:733 +0xfd
github.com/grafana/sobek.(*baseJsFuncObject).asyncVmCall(0xc000cb3080, 0xc000c90000, 0x0, 0xc0007b5ea0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/func.go:664 +0x79
github.com/grafana/sobek.(*asyncFuncObject).vmCall(0xc000cb3080, 0xc000c90000, 0x0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/func.go:670 +0x65
github.com/grafana/sobek.call.exec(0xb03c00?, 0xc000c90000)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:3719 +0x66
github.com/grafana/sobek.(*vm).run(0xc000c90000)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:635 +0x5b
github.com/grafana/sobek.(*vm).runTryInner(0xc000c92080?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:886 +0x52
github.com/grafana/sobek.(*vm).runTry(0xc000c90000)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:872 +0x1e5
github.com/grafana/sobek.(*Runtime).RunProgram(0xc000c88408, 0xc000b3e9c0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:1481 +0x43c
github.com/grafana/sobek.(*SourceTextModuleRecord).Instantiate(0xc000cb7360, 0xc000c88408)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:651 +0x205
github.com/grafana/sobek.(*Runtime).innerModuleEvaluation(0xc000c88408, 0xc000c96230, {0x1ff6a60, 0xc000cb7360}, 0xc000cd2a98, 0x0, 0xc000cd2c18)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:224 +0x18f
github.com/grafana/sobek.(*Runtime).CyclicModuleRecordEvaluate(0xc000c88408, {0x1fff020, 0xc000cb7360}, 0xc000cd2c18)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:183 +0x47d
go.k6.io/k6/js/modules.(*ModuleSystem).RunSourceData(0xc000cac140, 0xc00030e7b0)
        go.k6.io/k6/js/modules/resolution.go:255 +0x1c8
go.k6.io/k6/js.(*Bundle).instantiate.func3()
        go.k6.io/k6/js/bundle.go:338 +0x27
reflect.Value.call({0x1932280?, 0xc000cac4c0?, 0x10?}, {0x1c74d3d, 0x4}, {0x306b440, 0x0, 0xc000c9f288?})
        reflect/value.go:581 +0xca6
reflect.Value.Call({0x1932280?, 0xc000cac4c0?, 0xc000cac4e0?}, {0x306b440?, 0xd17ffd?, 0x35554aaaa?})
        reflect/value.go:365 +0xb9
github.com/grafana/sobek.(*Runtime).newWrappedFunc.(*Runtime).wrapReflectFunc.func1({{0x0, 0x0}, {0x0, 0x0, 0x0}})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2029 +0x3bd
github.com/grafana/sobek.AssertFunction.func1.1()
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2464 +0x56
github.com/grafana/sobek.(*vm).try(0xc000c90000, 0xc000c9f5a8)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:863 +0x249
github.com/grafana/sobek.(*Runtime).runWrapped(0xc000c88408, 0xc000cae058?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2508 +0x65
github.com/grafana/sobek.AssertFunction.func1({0x0?, 0x0?}, {0x0?, 0x1?, 0xc000cae050?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2463 +0x8c
go.k6.io/k6/js.(*Bundle).instantiate.func4()
        go.k6.io/k6/js/bundle.go:345 +0x23
go.k6.io/k6/js/eventloop.(*EventLoop).Start(0xc000c96000, 0xc000626700)
        go.k6.io/k6/js/eventloop/eventloop.go:177 +0x19a
go.k6.io/k6/js.(*Bundle).instantiate(0xc0002dadc8, 0xc000c92040, 0xd)
        go.k6.io/k6/js/bundle.go:344 +0x390
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0002dadc8, {0x1ff6668, 0xc0002627d0}, 0xd)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc00025c2d0, {0x1ff6668?, 0xc0002627d0?}, 0xd, 0xd, 0xc0001fc620)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0008de480?, {0x1ff6668?, 0xc0002627d0?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc000561a00, {0x1ff6668, 0xc0002627d0}, 0xc0001fc620, {0x2011b60, 0xc0003019d0})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 137 [runnable]:
github.com/grafana/sobek.importEntriesFromAst({0xc0008f6980, 0x9, 0x10?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:118 +0x9d9
github.com/grafana/sobek.ModuleFromAST(0xc00022e310, 0xc0005f3820)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:381 +0x79
go.k6.io/k6/js/modules.(*ModuleResolver).resolveLoaded(0xc000127770, 0xc00073cc28?, {0xc0008fa000?, 0xc0003ffbc0?}, {0xc000390000, 0x2901, 0x0?})
        go.k6.io/k6/js/modules/resolution.go:124 +0x20d
go.k6.io/k6/js/modules.(*ModuleSystem).RunSourceData(0xc0006ec140, 0xc00030e7b0)
        go.k6.io/k6/js/modules/resolution.go:239 +0xbb
go.k6.io/k6/js.(*Bundle).instantiate.func3()
        go.k6.io/k6/js/bundle.go:338 +0x27
reflect.Value.call({0x1932280?, 0xc0006ec4c0?, 0x10?}, {0x1c74d3d, 0x4}, {0x306b440, 0x0, 0xc00073d288?})
        reflect/value.go:581 +0xca6
reflect.Value.Call({0x1932280?, 0xc0006ec4c0?, 0xc0006ec4e0?}, {0x306b440?, 0xd17ffd?, 0x35554aaaa?})
        reflect/value.go:365 +0xb9
github.com/grafana/sobek.(*Runtime).newWrappedFunc.(*Runtime).wrapReflectFunc.func1({{0x0, 0x0}, {0x0, 0x0, 0x0}})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2029 +0x3bd
github.com/grafana/sobek.AssertFunction.func1.1()
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2464 +0x56
github.com/grafana/sobek.(*vm).try(0xc0000270e0, 0xc00073d5a8)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:863 +0x249
github.com/grafana/sobek.(*Runtime).runWrapped(0xc0008e0008, 0xc0008ea058?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2508 +0x65
github.com/grafana/sobek.AssertFunction.func1({0x0?, 0x0?}, {0x0?, 0x1?, 0xc0008ea050?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2463 +0x8c
go.k6.io/k6/js.(*Bundle).instantiate.func4()
        go.k6.io/k6/js/bundle.go:345 +0x23
go.k6.io/k6/js/eventloop.(*EventLoop).Start(0xc000242370, 0xc00050c700)
        go.k6.io/k6/js/eventloop/eventloop.go:177 +0x19a
go.k6.io/k6/js.(*Bundle).instantiate(0xc0002dadc8, 0xc0005fe040, 0x3)
        go.k6.io/k6/js/bundle.go:344 +0x390
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0002dadc8, {0x1ff6668, 0xc0002627d0}, 0x3)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc00025c2d0, {0x1ff6668?, 0xc0002627d0?}, 0x3, 0x3, 0xc0001fc620)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0008de420?, {0x1ff6668?, 0xc0002627d0?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc000561a00, {0x1ff6668, 0xc0002627d0}, 0xc0001fc620, {0x2011b60, 0xc0003019d0})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 138 [sync.Mutex.Lock]:
sync.runtime_SemacquireMutex(0x3?, 0xd0?, 0xc000b0a750?)
        runtime/sema.go:95 +0x25
sync.(*Mutex).lockSlow(0xc0007aa534)
        sync/mutex.go:173 +0x15d
sync.(*Mutex).Lock(...)
        sync/mutex.go:92
sync.(*Once).doSlow(0xc000b0a750?, 0xc000b0a738)
        sync/once.go:72 +0x50
sync.(*Once).Do(...)
        sync/once.go:67
github.com/grafana/sobek.(*SourceTextModuleRecord).InitializeEnvironment(0x19c7cc0?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:542 +0x49
github.com/grafana/sobek.(*compiler).innerModuleLinking(0xc000bb22a0, 0xc000b0a880, {0x1ff6a60?, 0xc000794780}, 0xc000b0a868, 0x0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:112 +0x48f
github.com/grafana/sobek.(*compiler).CyclicModuleRecordConcreteLink(0xc000bb22a0, {0x1ff6a60, 0xc000794780})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:71 +0x1bd
github.com/grafana/sobek.(*SourceTextModuleRecord).Link(0xc000794780)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:668 +0xbb
go.k6.io/k6/js/modules.(*ModuleSystem).RunSourceData(0xc0007501a0, 0xc00030e7b0)
        go.k6.io/k6/js/modules/resolution.go:247 +0x102
go.k6.io/k6/js.(*Bundle).instantiate.func3()
        go.k6.io/k6/js/bundle.go:338 +0x27
reflect.Value.call({0x1932280?, 0xc0007505e0?, 0x10?}, {0x1c74d3d, 0x4}, {0x306b440, 0x0, 0xc000b0b288?})
        reflect/value.go:581 +0xca6
reflect.Value.Call({0x1932280?, 0xc0007505e0?, 0xc000750600?}, {0x306b440?, 0xd17ffd?, 0x35554aaaa?})
        reflect/value.go:365 +0xb9
github.com/grafana/sobek.(*Runtime).newWrappedFunc.(*Runtime).wrapReflectFunc.func1({{0x0, 0x0}, {0x0, 0x0, 0x0}})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2029 +0x3bd
github.com/grafana/sobek.AssertFunction.func1.1()
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2464 +0x56
github.com/grafana/sobek.(*vm).try(0xc00018a000, 0xc000b0b5a8)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:863 +0x249
github.com/grafana/sobek.(*Runtime).runWrapped(0xc000a80008, 0xc00069a188?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2508 +0x65
github.com/grafana/sobek.AssertFunction.func1({0x0?, 0x0?}, {0x0?, 0x1?, 0xc00069a168?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2463 +0x8c
go.k6.io/k6/js.(*Bundle).instantiate.func4()
        go.k6.io/k6/js/bundle.go:345 +0x23
go.k6.io/k6/js/eventloop.(*EventLoop).Start(0xc000a86000, 0xc00050c9a0)
        go.k6.io/k6/js/eventloop/eventloop.go:177 +0x19a
go.k6.io/k6/js.(*Bundle).instantiate(0xc0002dadc8, 0xc0006e8080, 0x7)
        go.k6.io/k6/js/bundle.go:344 +0x390
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0002dadc8, {0x1ff6668, 0xc0002627d0}, 0x7)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc00025c2d0, {0x1ff6668?, 0xc0002627d0?}, 0x7, 0x7, 0xc0001fc620)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0008de4e0?, {0x1ff6668?, 0xc0002627d0?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc000561a00, {0x1ff6668, 0xc0002627d0}, 0xc0001fc620, {0x2011b60, 0xc0003019d0})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 139 [sync.Mutex.Lock]:
sync.runtime_SemacquireMutex(0x4?, 0xd0?, 0xc00095e750?)
        runtime/sema.go:95 +0x25
sync.(*Mutex).lockSlow(0xc0007aa534)
        sync/mutex.go:173 +0x15d
sync.(*Mutex).Lock(...)
        sync/mutex.go:92
sync.(*Once).doSlow(0xc00095e750?, 0xc00095e738)
        sync/once.go:72 +0x50
sync.(*Once).Do(...)
        sync/once.go:67
github.com/grafana/sobek.(*SourceTextModuleRecord).InitializeEnvironment(0x19c7cc0?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:542 +0x49
github.com/grafana/sobek.(*compiler).innerModuleLinking(0xc00077c0e0, 0xc00095e880, {0x1ff6a60?, 0xc000794780}, 0xc00095e868, 0x0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:112 +0x48f
github.com/grafana/sobek.(*compiler).CyclicModuleRecordConcreteLink(0xc00077c0e0, {0x1ff6a60, 0xc000794780})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:71 +0x1bd
github.com/grafana/sobek.(*SourceTextModuleRecord).Link(0xc000794780)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:668 +0xbb
go.k6.io/k6/js/modules.(*ModuleSystem).RunSourceData(0xc000da6140, 0xc00030e7b0)
        go.k6.io/k6/js/modules/resolution.go:247 +0x102
go.k6.io/k6/js.(*Bundle).instantiate.func3()
        go.k6.io/k6/js/bundle.go:338 +0x27
reflect.Value.call({0x1932280?, 0xc000b1d340?, 0xc0009ce480?}, {0x1c74d3d, 0x4}, {0x306b440, 0x0, 0xc00095f288?})
        reflect/value.go:581 +0xca6
reflect.Value.Call({0x1932280?, 0xc000b1d340?, 0xc000b1d360?}, {0x306b440?, 0x120?, 0x35554aaaa?})
        reflect/value.go:365 +0xb9
github.com/grafana/sobek.(*Runtime).newWrappedFunc.(*Runtime).wrapReflectFunc.func1({{0x0, 0x0}, {0x0, 0x0, 0x0}})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2029 +0x3bd
github.com/grafana/sobek.AssertFunction.func1.1()
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2464 +0x56
github.com/grafana/sobek.(*vm).try(0xc000d90120, 0xc00095f5a8)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:863 +0x249
github.com/grafana/sobek.(*Runtime).runWrapped(0xc000d8a408, 0xc000cae200?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2508 +0x65
github.com/grafana/sobek.AssertFunction.func1({0x0?, 0x0?}, {0x0?, 0x1?, 0xc000cae1f8?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2463 +0x8c
go.k6.io/k6/js.(*Bundle).instantiate.func4()
        go.k6.io/k6/js/bundle.go:345 +0x23
go.k6.io/k6/js/eventloop.(*EventLoop).Start(0xc000d96050, 0xc0005bd210)
        go.k6.io/k6/js/eventloop/eventloop.go:177 +0x19a
go.k6.io/k6/js.(*Bundle).instantiate(0xc0002dadc8, 0xc000d920c0, 0x11)
        go.k6.io/k6/js/bundle.go:344 +0x390
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0002dadc8, {0x1ff6668, 0xc0002627d0}, 0x11)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc00025c2d0, {0x1ff6668?, 0xc0002627d0?}, 0x11, 0x11, 0xc0001fc620)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0008de540?, {0x1ff6668?, 0xc0002627d0?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc000561a00, {0x1ff6668, 0xc0002627d0}, 0xc0001fc620, {0x2011b60, 0xc0003019d0})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 140 [sync.Mutex.Lock]:
sync.runtime_SemacquireMutex(0x5?, 0xa0?, 0xc000d18750?)
        runtime/sema.go:95 +0x25
sync.(*Mutex).lockSlow(0xc000d1e144)
        sync/mutex.go:173 +0x15d
sync.(*Mutex).Lock(...)
        sync/mutex.go:92
sync.(*Once).doSlow(0xc000d18750?, 0xc000d18738)
        sync/once.go:72 +0x50
sync.(*Once).Do(...)
        sync/once.go:67
github.com/grafana/sobek.(*SourceTextModuleRecord).InitializeEnvironment(0x19c7cc0?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:542 +0x49
github.com/grafana/sobek.(*compiler).innerModuleLinking(0xc000bb2620, 0xc000d18880, {0x1ff6a60?, 0xc000798140}, 0xc000d18868, 0x0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:112 +0x48f
github.com/grafana/sobek.(*compiler).CyclicModuleRecordConcreteLink(0xc000bb2620, {0x1ff6a60, 0xc000798140})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:71 +0x1bd
github.com/grafana/sobek.(*SourceTextModuleRecord).Link(0xc000798140)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:668 +0xbb
go.k6.io/k6/js/modules.(*ModuleSystem).RunSourceData(0xc000d2aa80, 0xc00030e7b0)
        go.k6.io/k6/js/modules/resolution.go:247 +0x102
go.k6.io/k6/js.(*Bundle).instantiate.func3()
        go.k6.io/k6/js/bundle.go:338 +0x27
reflect.Value.call({0x1932280?, 0xc000751960?, 0x10?}, {0x1c74d3d, 0x4}, {0x306b440, 0x0, 0xc000d19288?})
        reflect/value.go:581 +0xca6
reflect.Value.Call({0x1932280?, 0xc000751960?, 0xc000751980?}, {0x306b440?, 0xd17ffd?, 0x35554aaaa?})
        reflect/value.go:365 +0xb9
github.com/grafana/sobek.(*Runtime).newWrappedFunc.(*Runtime).wrapReflectFunc.func1({{0x0, 0x0}, {0x0, 0x0, 0x0}})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2029 +0x3bd
github.com/grafana/sobek.AssertFunction.func1.1()
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2464 +0x56
github.com/grafana/sobek.(*vm).try(0xc000d90000, 0xc000d195a8)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:863 +0x249
github.com/grafana/sobek.(*Runtime).runWrapped(0xc000d8a008, 0xc00069a458?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2508 +0x65
github.com/grafana/sobek.AssertFunction.func1({0x0?, 0x0?}, {0x0?, 0x1?, 0xc00069a450?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2463 +0x8c
go.k6.io/k6/js.(*Bundle).instantiate.func4()
        go.k6.io/k6/js/bundle.go:345 +0x23
go.k6.io/k6/js/eventloop.(*EventLoop).Start(0xc000d96000, 0xc00050d540)
        go.k6.io/k6/js/eventloop/eventloop.go:177 +0x19a
go.k6.io/k6/js.(*Bundle).instantiate(0xc0002dadc8, 0xc000d92040, 0xf)
        go.k6.io/k6/js/bundle.go:344 +0x390
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0002dadc8, {0x1ff6668, 0xc0002627d0}, 0xf)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc00025c2d0, {0x1ff6668?, 0xc0002627d0?}, 0xf, 0xf, 0xc0001fc620)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0008de5a0?, {0x1ff6668?, 0xc0002627d0?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc000561a00, {0x1ff6668, 0xc0002627d0}, 0xc0001fc620, {0x2011b60, 0xc0003019d0})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 141 [sync.Mutex.Lock]:
sync.runtime_SemacquireMutex(0x6?, 0xd0?, 0xc000c16750?)
        runtime/sema.go:95 +0x25
sync.(*Mutex).lockSlow(0xc000a88224)
        sync/mutex.go:173 +0x15d
sync.(*Mutex).Lock(...)
        sync/mutex.go:92
sync.(*Once).doSlow(0xc000c16750?, 0xc000c16738)
        sync/once.go:72 +0x50
sync.(*Once).Do(...)
        sync/once.go:67
github.com/grafana/sobek.(*SourceTextModuleRecord).InitializeEnvironment(0x19c7cc0?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:542 +0x49
github.com/grafana/sobek.(*compiler).innerModuleLinking(0xc00022e2a0, 0xc000c16880, {0x1ff6a60?, 0xc000512140}, 0xc000c16868, 0x0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:112 +0x48f
github.com/grafana/sobek.(*compiler).CyclicModuleRecordConcreteLink(0xc00022e2a0, {0x1ff6a60, 0xc000512140})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:71 +0x1bd
github.com/grafana/sobek.(*SourceTextModuleRecord).Link(0xc000512140)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:668 +0xbb
go.k6.io/k6/js/modules.(*ModuleSystem).RunSourceData(0xc0007320a0, 0xc00030e7b0)
        go.k6.io/k6/js/modules/resolution.go:247 +0x102
go.k6.io/k6/js.(*Bundle).instantiate.func3()
        go.k6.io/k6/js/bundle.go:338 +0x27
reflect.Value.call({0x1932280?, 0xc000732420?, 0xc0004f8b40?}, {0x1c74d3d, 0x4}, {0x306b440, 0x0, 0xc0004b3288?})
        reflect/value.go:581 +0xca6
reflect.Value.Call({0x1932280?, 0xc000732420?, 0xc000732440?}, {0x306b440?, 0x120?, 0x35554aaaa?})
        reflect/value.go:365 +0xb9
github.com/grafana/sobek.(*Runtime).newWrappedFunc.(*Runtime).wrapReflectFunc.func1({{0x0, 0x0}, {0x0, 0x0, 0x0}})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2029 +0x3bd
github.com/grafana/sobek.AssertFunction.func1.1()
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2464 +0x56
github.com/grafana/sobek.(*vm).try(0xc0009087e0, 0xc0004b35a8)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:863 +0x249
github.com/grafana/sobek.(*Runtime).runWrapped(0xc0004ec008, 0xc0000b5008?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2508 +0x65
github.com/grafana/sobek.AssertFunction.func1({0x0?, 0x0?}, {0x0?, 0x1?, 0xc0000b5000?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2463 +0x8c
go.k6.io/k6/js.(*Bundle).instantiate.func4()
        go.k6.io/k6/js/bundle.go:345 +0x23
go.k6.io/k6/js/eventloop.(*EventLoop).Start(0xc00070f220, 0xc000901040)
        go.k6.io/k6/js/eventloop/eventloop.go:177 +0x19a
go.k6.io/k6/js.(*Bundle).instantiate(0xc0002dadc8, 0xc000739d40, 0x6)
        go.k6.io/k6/js/bundle.go:344 +0x390
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0002dadc8, {0x1ff6668, 0xc0002627d0}, 0x6)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc00025c2d0, {0x1ff6668?, 0xc0002627d0?}, 0x6, 0x6, 0xc0001fc620)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0008de600?, {0x1ff6668?, 0xc0002627d0?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc000561a00, {0x1ff6668, 0xc0002627d0}, 0xc0001fc620, {0x2011b60, 0xc0003019d0})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 142 [sync.Mutex.Lock]:
sync.runtime_SemacquireMutex(0x4?, 0xa0?, 0xc000bbc750?)
        runtime/sema.go:95 +0x25
sync.(*Mutex).lockSlow(0xc0007aa534)
        sync/mutex.go:173 +0x15d
sync.(*Mutex).Lock(...)
        sync/mutex.go:92
sync.(*Once).doSlow(0xc000bbc750?, 0xc000bbc738)
        sync/once.go:72 +0x50
sync.(*Once).Do(...)
        sync/once.go:67
github.com/grafana/sobek.(*SourceTextModuleRecord).InitializeEnvironment(0x19c7cc0?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:542 +0x49
github.com/grafana/sobek.(*compiler).innerModuleLinking(0xc0001f8690, 0xc000bbc880, {0x1ff6a60?, 0xc000794780}, 0xc000bbc868, 0x0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:112 +0x48f
github.com/grafana/sobek.(*compiler).CyclicModuleRecordConcreteLink(0xc0001f8690, {0x1ff6a60, 0xc000794780})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:71 +0x1bd
github.com/grafana/sobek.(*SourceTextModuleRecord).Link(0xc000794780)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:668 +0xbb
go.k6.io/k6/js/modules.(*ModuleSystem).RunSourceData(0xc0007326e0, 0xc00030e7b0)
        go.k6.io/k6/js/modules/resolution.go:247 +0x102
go.k6.io/k6/js.(*Bundle).instantiate.func3()
        go.k6.io/k6/js/bundle.go:338 +0x27
reflect.Value.call({0x1932280?, 0xc000732a60?, 0x10?}, {0x1c74d3d, 0x4}, {0x306b440, 0x0, 0xc000bbd288?})
        reflect/value.go:581 +0xca6
reflect.Value.Call({0x1932280?, 0xc000732a60?, 0xc000732a80?}, {0x306b440?, 0xd17ffd?, 0x35554aaaa?})
        reflect/value.go:365 +0xb9
github.com/grafana/sobek.(*Runtime).newWrappedFunc.(*Runtime).wrapReflectFunc.func1({{0x0, 0x0}, {0x0, 0x0, 0x0}})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2029 +0x3bd
github.com/grafana/sobek.AssertFunction.func1.1()
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2464 +0x56
github.com/grafana/sobek.(*vm).try(0xc0004f85a0, 0xc000bbd5a8)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:863 +0x249
github.com/grafana/sobek.(*Runtime).runWrapped(0xc000c88008, 0xc0000b4298?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2508 +0x65
github.com/grafana/sobek.AssertFunction.func1({0x0?, 0x0?}, {0x0?, 0x1?, 0xc0000b4290?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2463 +0x8c
go.k6.io/k6/js.(*Bundle).instantiate.func4()
        go.k6.io/k6/js/bundle.go:345 +0x23
go.k6.io/k6/js/eventloop.(*EventLoop).Start(0xc000262500, 0xc000338730)
        go.k6.io/k6/js/eventloop/eventloop.go:177 +0x19a
go.k6.io/k6/js.(*Bundle).instantiate(0xc0002dadc8, 0xc000904080, 0xa)
        go.k6.io/k6/js/bundle.go:344 +0x390
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0002dadc8, {0x1ff6668, 0xc0002627d0}, 0xa)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc00025c2d0, {0x1ff6668?, 0xc0002627d0?}, 0xa, 0xa, 0xc0001fc620)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0008de660?, {0x1ff6668?, 0xc0002627d0?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc000561a00, {0x1ff6668, 0xc0002627d0}, 0xc0001fc620, {0x2011b60, 0xc0003019d0})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 143 [running]:
        goroutine running on other thread; stack unavailable
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 144 [runnable]:
github.com/grafana/sobek.(*compiler).compileForInto(0xc000206150, {0x1ff32c0?, 0xc000b94c20}, 0x0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/compiler_stmt.go:379 +0x13d
github.com/grafana/sobek.(*compiler).compileLabeledForInOfStatement(0xc000206150, {0x1ff32c0, 0xc000b94c20}, {0x1ff38c0, 0xc000b96de0}, {0x1ff3290, 0xc00075b0e0}, 0x1, 0x0, {0x0, ...})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/compiler_stmt.go:466 +0x8b9
github.com/grafana/sobek.(*compiler).compileLabeledForOfStatement(...)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/compiler_stmt.go:495
github.com/grafana/sobek.(*compiler).compileForOfStatement(...)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/compiler_stmt.go:491
github.com/grafana/sobek.(*compiler).compileStatement(0xc000206150, {0x1ff3410?, 0xc0006d95c0?}, 0xc5?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/compiler_stmt.go:31 +0x1cd
github.com/grafana/sobek.(*compiler).compileStatements(0xc000206150, {0xc000840300, 0xc, 0x10}, 0x0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/compiler_stmt.go:1110 +0xa8
github.com/grafana/sobek.(*compiledFunctionLiteral).compile(0xc000836f80)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/compiler_expr.go:1597 +0xce9
github.com/grafana/sobek.(*compiledFunctionLiteral).emitGetter(0xc000836f80, 0x1)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/compiler_expr.go:1762 +0x31
github.com/grafana/sobek.(*compiler).compileFunction(0xc000206150, 0xc000b98170)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/compiler.go:1516 +0x79
github.com/grafana/sobek.(*compiler).compileFunctions(...)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/compiler.go:1309
github.com/grafana/sobek.(*compiler).compileModule(0xc000206150, 0xc000d34d20)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/compiler.go:1018 +0xd45
github.com/grafana/sobek.(*SourceTextModuleRecord).InitializeEnvironment.func1()
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:555 +0xd0
sync.(*Once).doSlow(0xc000b4a750?, 0x451ea2?)
        sync/once.go:76 +0xb4
sync.(*Once).Do(...)
        sync/once.go:67
github.com/grafana/sobek.(*SourceTextModuleRecord).InitializeEnvironment(0x19c7cc0?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:542 +0x49
github.com/grafana/sobek.(*compiler).innerModuleLinking(0xc0002060e0, 0xc000b4a880, {0x1ff6a60?, 0xc000d34d20}, 0xc000b4a868, 0x0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:112 +0x48f
github.com/grafana/sobek.(*compiler).CyclicModuleRecordConcreteLink(0xc0002060e0, {0x1ff6a60, 0xc000d34d20})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:71 +0x1bd
github.com/grafana/sobek.(*SourceTextModuleRecord).Link(0xc000d34d20)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:668 +0xbb
go.k6.io/k6/js/modules.(*ModuleSystem).RunSourceData(0xc000b1c2e0, 0xc00030e7b0)
        go.k6.io/k6/js/modules/resolution.go:247 +0x102
go.k6.io/k6/js.(*Bundle).instantiate.func3()
        go.k6.io/k6/js/bundle.go:338 +0x27
reflect.Value.call({0x1932280?, 0xc000b1c660?, 0xc000b2e360?}, {0x1c74d3d, 0x4}, {0x306b440, 0x0, 0xc000c9b288?})
        reflect/value.go:581 +0xca6
reflect.Value.Call({0x1932280?, 0xc000b1c660?, 0xc000b1c680?}, {0x306b440?, 0x120?, 0x35554aaaa?})
        reflect/value.go:365 +0xb9
github.com/grafana/sobek.(*Runtime).newWrappedFunc.(*Runtime).wrapReflectFunc.func1({{0x0, 0x0}, {0x0, 0x0, 0x0}})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2029 +0x3bd
github.com/grafana/sobek.AssertFunction.func1.1()
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2464 +0x56
github.com/grafana/sobek.(*vm).try(0xc000b26000, 0xc000c9b5a8)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:863 +0x249
github.com/grafana/sobek.(*Runtime).runWrapped(0xc000b00808, 0xc000b1e0b8?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2508 +0x65
github.com/grafana/sobek.AssertFunction.func1({0x0?, 0x0?}, {0x0?, 0x1?, 0xc000b1e0b0?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2463 +0x8c
go.k6.io/k6/js.(*Bundle).instantiate.func4()
        go.k6.io/k6/js/bundle.go:345 +0x23
go.k6.io/k6/js/eventloop.(*EventLoop).Start(0xc000b06320, 0xc0005bc810)
        go.k6.io/k6/js/eventloop/eventloop.go:177 +0x19a
go.k6.io/k6/js.(*Bundle).instantiate(0xc0002dadc8, 0xc00071a2c0, 0xc)
        go.k6.io/k6/js/bundle.go:344 +0x390

Hi @chrisellison,

This looks like an issue.

Can you please test with the latest master as we have some fixes for local-execution there. But also please open an issue,with the whole output and if possible an executable example :grimacing:

Thank you :bowing_man:

@mstoykov will do thanks

Hi @chrisellion,

Whenever you test the latest changes on master, could you also tell us whether it works well or not with your current release (the one you reported the error with), but by opting-out for the archive upload with --no-archive-upload, as described here, please?

Also, it would be very helpful if you can bring an example of how your script looks like. I guess some bits could be confidential and not shared for privacy reasons, but understanding for instance if your test script is composed by multiple files, how these are imported/referenced, etc, would be very helpful to try to build something that reproduces the issue, if possible.

Thanks! :bowing_man:

Hi guys @joanlopez @mstoykov

I have done some testing with your suggestions.

The version that i neglected to provide which gave me the error was - k6.exe v0.55.2 (commit/9b848870aa, go1.23.4, windows/amd64). K6 was installed locally on my windows machine.

And this is the full error i got in the terminal

Init                             [--------------------------------------] Starting outputs
goroutine 102 [running]:p-t...   [--------------------------------------]
go.k6.io/k6/js/modules.(*ModuleResolver).reversePath(0xc0003aae60, {0x1db1e20, 0xc0005a2a00})
process-go.k6.io/k6/js/modules/resolution.go:199 +0x36------------------]
go.k6.io/k6/js/modules.(*ModuleResolver).sobekModuleResolver(0xc0003aae60, {0x1db1e20?, 0xc0005a2a00?}, {0xc000490080, 0x7})      
process-go.k6.io/k6/js/modules/resolution.go:195 +0x2c------------------]
github.com/grafana/sobek.(*compiler).innerModuleLinking(0xc0007568c0, 0xc00054e880, {0x2246a60?, 0xc0005a2a00}, 0xc00054e868, 0x0)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:96 +0x3b1
github.com/grafana/sobek.(*compiler).CyclicModuleRecordConcreteLink(0xc0007568c0, {0x2246a60, 0xc0005a2a00})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:71 +0x1bd
github.com/grafana/sobek.(*SourceTextModuleRecord).Link(0xc0005a2a00)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules_sourcetext.go:668 +0xbb
go.k6.io/k6/js/modules.(*ModuleSystem).RunSourceData(0xc000035720, 0xc0003bd860)
        go.k6.io/k6/js/modules/resolution.go:247 +0x102
go.k6.io/k6/js.(*Bundle).instantiate.func3()
        go.k6.io/k6/js/bundle.go:338 +0x27
reflect.Value.call({0x1b82280?, 0xc000035aa0?, 0x10?}, {0x1ec4d3d, 0x4}, {0x32bb440, 0x0, 0xc00054f288?})
        reflect/value.go:581 +0xca6
reflect.Value.Call({0x1b82280?, 0xc000035aa0?, 0xc000035ac0?}, {0x32bb440?, 0xf67ffd?, 0x35554aaaa?})
        reflect/value.go:365 +0xb9
github.com/grafana/sobek.(*Runtime).newWrappedFunc.(*Runtime).wrapReflectFunc.func1({{0x0, 0x0}, {0x0, 0x0, 0x0}})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2029 +0x3bd
github.com/grafana/sobek.AssertFunction.func1.1()
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2464 +0x56
github.com/grafana/sobek.(*vm).try(0xc000552c60, 0xc00054f5a8)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:863 +0x249
github.com/grafana/sobek.(*Runtime).runWrapped(0xc000546808, 0xc0000b4928?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2508 +0x65
github.com/grafana/sobek.AssertFunction.func1({0x0?, 0x0?}, {0x0?, 0x1?, 0xc0000b4920?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2463 +0x8c
go.k6.io/k6/js.(*Bundle).instantiate.func4()
        go.k6.io/k6/js/bundle.go:345 +0x23
go.k6.io/k6/js/eventloop.(*EventLoop).Start(0xc0001a6f50, 0xc000568320)
        go.k6.io/k6/js/eventloop/eventloop.go:177 +0x19a
go.k6.io/k6/js.(*Bundle).instantiate(0xc0003c42c8, 0xc000668100, 0x16)
        go.k6.io/k6/js/bundle.go:344 +0x390
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0003c42c8, {0x2246668, 0xc0002c5900}, 0x16)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc0002dc2d0, {0x2246668?, 0xc0002c5900?}, 0x16, 0x16, 0xc000886230)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0001e4a80?, {0x2246668?, 0xc0002c5900?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc00024a700, {0x2246668, 0xc0002c5900}, 0xc000886230, {0x2261b60, 0xc00063d030})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 1 [select]:
go.k6.io/k6/execution.(*Scheduler).initVUsAndExecutors(0xc00024a700, {0x2246668, 0xc0002c58b0}, 0xc000886230)
        go.k6.io/k6/execution/scheduler.go:283 +0x508
go.k6.io/k6/execution.(*Scheduler).Init(0xc00024a700, {0x2246630, 0xc0003bd4a0}, 0xc000886230)
        go.k6.io/k6/execution/scheduler.go:412 +0x245
go.k6.io/k6/cmd.(*cmdRun).run(0xc00049b7e0, 0xc0001e9b88, {0xc000122220, 0x1, 0x2})
        go.k6.io/k6/cmd/run.go:367 +0x13fc
go.k6.io/k6/cmd.(*cmdCloudRun).run(0x0?, 0xc0001e9b88?, {0xc000122220?, 0x8805e0?, 0xc00030fc40?})
        go.k6.io/k6/cmd/cloud_run.go:134 +0x25
github.com/spf13/cobra.(*Command).execute(0xc0001e9b88, {0xc0001221e0, 0x2, 0x2})
        github.com/spf13/cobra@v1.4.0/command.go:856 +0x68a
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001e9088)
        github.com/spf13/cobra@v1.4.0/command.go:974 +0x38d
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/cobra@v1.4.0/command.go:902
go.k6.io/k6/cmd.(*rootCommand).execute(0xc000274ea0)
        go.k6.io/k6/cmd/root.go:108 +0xfb
go.k6.io/k6/cmd.Execute()
        go.k6.io/k6/cmd/root.go:130 +0x2f
main.main()
        go.k6.io/k6/main.go:9 +0xf

goroutine 27 [select]:
io.(*pipe).read(0xc0003d7da0, {0xc000426000, 0x10000, 0xc000417df0?})
        io/pipe.go:57 +0xa5
io.(*PipeReader).Read(0xc000417e90?, {0xc000426000?, 0x1761a5f0a28?, 0x10005?})
        io/pipe.go:134 +0x1a
bufio.(*Scanner).Scan(0xc000417f28)
        bufio/scan.go:219 +0x81e
github.com/sirupsen/logrus.(*Entry).writerScanner(0xc0002b0fc0, 0xc0003d7da0, 0xc00029a340)
        github.com/sirupsen/logrus@v1.9.3/writer.go:86 +0x11d
created by github.com/sirupsen/logrus.(*Entry).WriterLevel in goroutine 1
        github.com/sirupsen/logrus@v1.9.3/writer.go:57 +0x31f

goroutine 28 [chan receive]:
go.k6.io/k6/cmd.(*rootCommand).setupLoggers.func2()
        go.k6.io/k6/cmd/root.go:276 +0x34
created by go.k6.io/k6/cmd.(*rootCommand).setupLoggers in goroutine 1
        go.k6.io/k6/cmd/root.go:275 +0x637

goroutine 72 [select]:
go.k6.io/k6/output/cloud/expv2.(*Output).runPeriodicFlush.func1()
        go.k6.io/k6/output/cloud/expv2/output.go:195 +0xd5
created by go.k6.io/k6/output/cloud/expv2.(*Output).runPeriodicFlush in goroutine 1
        go.k6.io/k6/output/cloud/expv2/output.go:188 +0xa5

goroutine 55 [select]:
go.k6.io/k6/cmd.showProgress({0x2246668, 0xc0002c49b0}, 0xc000244a80, {0xc0003cc000, 0x7, 0x8}, {0x2261a70?, 0xc0000f6d80?})
        go.k6.io/k6/cmd/ui.go:349 +0x5d4
go.k6.io/k6/cmd.(*cmdRun).run.func6()
        go.k6.io/k6/cmd/run.go:158 +0x1b3
created by go.k6.io/k6/cmd.(*cmdRun).run in goroutine 1
        go.k6.io/k6/cmd/run.go:152 +0x68a

goroutine 59 [runnable]:
go.k6.io/k6/js.(*Bundle).instantiate.func2()
        go.k6.io/k6/js/bundle.go:321
created by go.k6.io/k6/js.(*Bundle).instantiate in goroutine 102
        go.k6.io/k6/js/bundle.go:321 +0x22a

goroutine 52 [IO wait]:
internal/poll.runtime_pollWait(0x1765fb544d0, 0x72)
        runtime/netpoll.go:351 +0x85
internal/poll.(*pollDesc).wait(0x509ed16f0f393e6a?, 0xdce66e96f0a50867?, 0x0)
        internal/poll/fd_poll_runtime.go:84 +0x27
internal/poll.execIO(0xc0000daca0, 0x2049d08)
        internal/poll/fd_windows.go:177 +0x105
internal/poll.(*FD).Read(0xc0000dac88, {0xc0005bc000, 0x4800, 0x4800})
        internal/poll/fd_windows.go:438 +0x2a7
net.(*netFD).Read(0xc0000dac88, {0xc0005bc000?, 0x3241b80?, 0xc0005bb9a0?})
        net/fd_posix.go:55 +0x25
net.(*conn).Read(0xc00011e930, {0xc0005bc000?, 0xc0003d3a20?, 0xc0005bf5ef?})
        net/net.go:189 +0x45
crypto/tls.(*atLeastReader).Read(0xc000538030, {0xc0005bc000?, 0x0?, 0xc000538030?})
        crypto/tls/conn.go:809 +0x3b
bytes.(*Buffer).ReadFrom(0xc00046c2b8, {0x22309a0, 0xc000538030})
        bytes/buffer.go:211 +0x98
crypto/tls.(*Conn).readFromUntil(0xc00046c008, {0x1765fb545e8, 0xc00011e930}, 0xc0005bba10?)
        crypto/tls/conn.go:831 +0xde
crypto/tls.(*Conn).readRecordOrCCS(0xc00046c008, 0x0)
        crypto/tls/conn.go:629 +0x3cf
crypto/tls.(*Conn).readRecord(...)
        crypto/tls/conn.go:591
crypto/tls.(*Conn).Read(0xc00046c008, {0xc00047d000, 0x1000, 0xc00040d340?})
        crypto/tls/conn.go:1385 +0x150
bufio.(*Reader).Read(0xc000471aa0, {0xc0003ecc80, 0x9, 0x3222da0?})
        bufio/bufio.go:241 +0x197
io.ReadAtLeast({0x222ef20, 0xc000471aa0}, {0xc0003ecc80, 0x9, 0x9}, 0x9)
        io/io.go:335 +0x90
io.ReadFull(...)
        io/io.go:354
net/http.http2readFrameHeader({0xc0003ecc80, 0x9, 0xc00053a150?}, {0x222ef20?, 0xc000471aa0?})
        net/http/h2_bundle.go:1642 +0x65
net/http.(*http2Framer).ReadFrame(0xc0003ecc40)
        net/http/h2_bundle.go:1909 +0x85
net/http.(*http2clientConnReadLoop).run(0xc0005bbfa8)
        net/http/h2_bundle.go:9496 +0xda
net/http.(*http2ClientConn).readLoop(0xc000244c00)
        net/http/h2_bundle.go:9392 +0x7c
created by net/http.(*http2Transport).newClientConn in goroutine 51
        net/http/h2_bundle.go:8006 +0xd1b

goroutine 47 [runnable]:
net.(*Resolver).lookupIP(0x326ef60, {0x2246668, 0xc000126690}, {0x1ec445a, 0x3}, {0xc0007a1fcf, 0x2b})
        net/lookup_windows.go:177 +0x2a8
net.init.func1({0x2246668?, 0xc000126690?}, 0xc0000c8990?, {0x1ec445a?, 0xc0003fba40?}, {0xc0007a1fcf?, 0xc000305f98?})
        net/hook.go:21 +0x37
net.(*Resolver).lookupIPAddr.func1()
        net/lookup.go:334 +0x37
internal/singleflight.(*Group).doCall(0x326ef70, 0xc0001266e0, {0xc00090d1a0, 0x2f}, 0x0?)
        internal/singleflight/singleflight.go:93 +0x35
created by internal/singleflight.(*Group).DoChan in goroutine 77
        internal/singleflight/singleflight.go:86 +0x2d2

goroutine 45 [IO wait]:
internal/poll.runtime_pollWait(0x1765fb543b8, 0x72)
        runtime/netpoll.go:351 +0x85
internal/poll.(*pollDesc).wait(0x91d9b2a16c95d925?, 0x1c738378585aa4cc?, 0x0)
        internal/poll/fd_poll_runtime.go:84 +0x27
internal/poll.execIO(0xc00066a2a0, 0x2049d08)
        internal/poll/fd_windows.go:177 +0x105
internal/poll.(*FD).Read(0xc00066a288, {0xc00061a000, 0x1300, 0x1300})
        internal/poll/fd_windows.go:438 +0x2a7
net.(*netFD).Read(0xc00066a288, {0xc00061a000?, 0x3241b80?, 0xc0005b59a0?})
        net/fd_posix.go:55 +0x25
net.(*conn).Read(0xc00011e230, {0xc00061a000?, 0xc00037bb60?, 0xc00061a00d?})
        net/net.go:189 +0x45
crypto/tls.(*atLeastReader).Read(0xc0007f4690, {0xc00061a000?, 0x0?, 0xc0007f4690?})
        crypto/tls/conn.go:809 +0x3b
bytes.(*Buffer).ReadFrom(0xc0002c29b8, {0x22309a0, 0xc0007f4690})
        bytes/buffer.go:211 +0x98
crypto/tls.(*Conn).readFromUntil(0xc0002c2708, {0x1765fb545e8, 0xc00011e230}, 0xc0005b5a10?)
        crypto/tls/conn.go:831 +0xde
crypto/tls.(*Conn).readRecordOrCCS(0xc0002c2708, 0x0)
        crypto/tls/conn.go:629 +0x3cf
crypto/tls.(*Conn).readRecord(...)
        crypto/tls/conn.go:591
crypto/tls.(*Conn).Read(0xc0002c2708, {0xc00029f000, 0x1000, 0xc0003fba40?})
        crypto/tls/conn.go:1385 +0x150
bufio.(*Reader).Read(0xc0000c6de0, {0xc0002e7700, 0x9, 0x3222da0?})
        bufio/bufio.go:241 +0x197
io.ReadAtLeast({0x222ef20, 0xc0000c6de0}, {0xc0002e7700, 0x9, 0x9}, 0x9)
        io/io.go:335 +0x90
io.ReadFull(...)
        io/io.go:354
net/http.http2readFrameHeader({0xc0002e7700, 0x9, 0xc0003e7140?}, {0x222ef20?, 0xc0000c6de0?})
        net/http/h2_bundle.go:1642 +0x65
net/http.(*http2Framer).ReadFrame(0xc0002e76c0)
        net/http/h2_bundle.go:1909 +0x85
net/http.(*http2clientConnReadLoop).run(0xc0005b5fa8)
        net/http/h2_bundle.go:9496 +0xda
net/http.(*http2ClientConn).readLoop(0xc000244d80)
        net/http/h2_bundle.go:9392 +0x7c
created by net/http.(*http2Transport).newClientConn in goroutine 44
        net/http/h2_bundle.go:8006 +0xd1b

goroutine 73 [select]:
go.k6.io/k6/output/cloud/expv2.(*Output).periodicInvoke.func1()
        go.k6.io/k6/output/cloud/expv2/output.go:239 +0x109
created by go.k6.io/k6/output/cloud/expv2.(*Output).periodicInvoke in goroutine 1
        go.k6.io/k6/output/cloud/expv2/output.go:233 +0x90

goroutine 74 [select]:
google.golang.org/grpc/internal/grpcsync.(*CallbackSerializer).run(0xc000067f20, {0x2246668, 0xc0002c5220})
        google.golang.org/grpc@v1.67.1/internal/grpcsync/callback_serializer.go:88 +0x10c
created by google.golang.org/grpc/internal/grpcsync.NewCallbackSerializer in goroutine 1
        google.golang.org/grpc@v1.67.1/internal/grpcsync/callback_serializer.go:52 +0x11a

goroutine 75 [select]:
google.golang.org/grpc/internal/grpcsync.(*CallbackSerializer).run(0xc000120000, {0x2246668, 0xc0002c5270})
        google.golang.org/grpc@v1.67.1/internal/grpcsync/callback_serializer.go:88 +0x10c
created by google.golang.org/grpc/internal/grpcsync.NewCallbackSerializer in goroutine 1
        google.golang.org/grpc@v1.67.1/internal/grpcsync/callback_serializer.go:52 +0x11a

goroutine 76 [select]:
google.golang.org/grpc/internal/grpcsync.(*CallbackSerializer).run(0xc000120030, {0x2246668, 0xc0002c52c0})
        google.golang.org/grpc@v1.67.1/internal/grpcsync/callback_serializer.go:88 +0x10c
created by google.golang.org/grpc/internal/grpcsync.NewCallbackSerializer in goroutine 1
        google.golang.org/grpc@v1.67.1/internal/grpcsync/callback_serializer.go:52 +0x11a

goroutine 77 [select]:
net.(*Resolver).lookupIPAddr(0x326ef60, {0x2246630, 0xc00001b050}, {0x1ec445a, 0x3}, {0xc0007a1fcf, 0x2b})
        net/lookup.go:342 +0x3d9
net.(*Resolver).internetAddrList(0x326ef60?, {0x2246630?, 0xc00001b050?}, {0x1ec445a, 0x3}, {0xc0007a1fcf?, 0x2cf2639a48b54b01?})
        net/ipsock.go:289 +0x4c5
net.(*Resolver).resolveAddrList(0x326ef60, {0x2246630, 0xc00001b050}, {0x1ec4d81, 0x4}, {0x1ec445a?, 0x0?}, {0xc0007a1fcf, 0x2f}, {0x0, ...})
        net/dial.go:302 +0x3e5
net.(*Dialer).DialContext(0xc0000170b8, {0x2246630, 0xc00001b050}, {0x1ec445a, 0x3}, {0xc0007a1fcf, 0x2f})
        net/dial.go:509 +0x405
google.golang.org/grpc/internal/transport.proxyDial({0x2246630, 0xc00001b050}, {0xc0007a1fcf, 0x2f}, {0x1ed6bd7, 0xe})
        google.golang.org/grpc@v1.67.1/internal/transport/proxy.go:133 +0xfa
google.golang.org/grpc/internal/transport.dial({0x2246630, 0xc00001b050}, 0x0, {{0xc0007a1fcf, 0x2f}, {0xc0007a1fcf, 0x2f}, 0x0, 0x0, {0x0, ...}}, ...)
        google.golang.org/grpc@v1.67.1/internal/transport/http2_client.go:181 +0x270
google.golang.org/grpc/internal/transport.newHTTP2Client({_, _}, {_, _}, {{0xc0007a1fcf, 0x2f}, {0xc0007a1fcf, 0x2f}, 0x0, 0x0, ...}, ...)
        google.golang.org/grpc@v1.67.1/internal/transport/http2_client.go:220 +0x170
google.golang.org/grpc/internal/transport.NewClientTransport(...)
        google.golang.org/grpc@v1.67.1/internal/transport/transport.go:722
google.golang.org/grpc.(*addrConn).createTransport(_, {_, _}, {{0xc0007a1fcf, 0x2f}, {0xc0007a1fcf, 0x2f}, 0x0, 0x0, {0x0, ...}}, ...)
        google.golang.org/grpc@v1.67.1/clientconn.go:1372 +0x2e5
google.golang.org/grpc.(*addrConn).tryAllAddrs(0xc00001c308, {0x2246668, 0xc0002c5770}, {0xc0001249c0, 0x1, 0xc0000b9940?}, {0x1?, 0x1?, 0x32702e0?})
        google.golang.org/grpc@v1.67.1/clientconn.go:1319 +0x408
google.golang.org/grpc.(*addrConn).resetTransportAndUnlock(0xc00001c308)
        google.golang.org/grpc@v1.67.1/clientconn.go:1253 +0x1cc
google.golang.org/grpc.(*addrConn).connect(0xc00001c308)
        google.golang.org/grpc@v1.67.1/clientconn.go:912 +0x145
created by google.golang.org/grpc.(*acBalancerWrapper).Connect in goroutine 76
        google.golang.org/grpc@v1.67.1/balancer_wrapper.go:300 +0x56

goroutine 78 [select]:
go.k6.io/k6/output/cloud/expv2.(*Output).runFlushRequestMetadatas.func1()
        go.k6.io/k6/output/cloud/expv2/output.go:283 +0x105
created by go.k6.io/k6/output/cloud/expv2.(*Output).runFlushRequestMetadatas in goroutine 1
        go.k6.io/k6/output/cloud/expv2/output.go:278 +0x48

goroutine 79 [chan receive]:
go.k6.io/k6/lib.(*GroupSummary).Start.func1()
        go.k6.io/k6/lib/test_state.go:128 +0x9d
created by go.k6.io/k6/lib.(*GroupSummary).Start in goroutine 1
        go.k6.io/k6/lib/test_state.go:126 +0x4f

goroutine 80 [select]:
go.k6.io/k6/output.(*PeriodicFlusher).run(0xc0003e7e60)
        go.k6.io/k6/output/helpers.go:67 +0xb6
created by go.k6.io/k6/output.NewPeriodicFlusher in goroutine 1
        go.k6.io/k6/output/helpers.go:102 +0x11a

goroutine 81 [select]:
go.k6.io/k6/output.(*Manager).Start.func2()
        go.k6.io/k6/output/manager.go:63 +0x14c
created by go.k6.io/k6/output.(*Manager).Start in goroutine 1
        go.k6.io/k6/output/manager.go:56 +0x139

goroutine 82 [select]:
go.k6.io/k6/metrics/engine.(*MetricsEngine).StartThresholdCalculations.func1()
        go.k6.io/k6/metrics/engine/engine.go:177 +0x109
created by go.k6.io/k6/metrics/engine.(*MetricsEngine).StartThresholdCalculations in goroutine 1
        go.k6.io/k6/metrics/engine/engine.go:171 +0xdd

goroutine 83 [IO wait]:
internal/poll.runtime_pollWait(0x1765fb542a0, 0x72)
        runtime/netpoll.go:351 +0x85
internal/poll.(*pollDesc).wait(0x7924f5?, 0x7005c5?, 0x0)
        internal/poll/fd_poll_runtime.go:84 +0x27
internal/poll.execIO(0xc000534020, 0xc000589b08)
        internal/poll/fd_windows.go:177 +0x105
internal/poll.(*FD).acceptOne(0xc000534008, 0x504, {0xc000544000?, 0xc000589bf0?, 0x70035d?}, 0x10?)
        internal/poll/fd_windows.go:946 +0x65
internal/poll.(*FD).Accept(0xc000534008, 0xc000589ce8)
        internal/poll/fd_windows.go:980 +0x1b6
net.(*netFD).accept(0xc000534008)
        net/fd_windows.go:182 +0x4b
net.(*TCPListener).accept(0xc000461980)
        net/tcpsock_posix.go:159 +0x1e
net.(*TCPListener).Accept(0xc000461980)
        net/tcpsock.go:372 +0x30
net/http.(*Server).Serve(0xc0002dc000, {0x2242d50, 0xc000461980})
        net/http/server.go:3330 +0x30c
net/http.(*Server).ListenAndServe(0xc0002dc000)
        net/http/server.go:3259 +0x71
go.k6.io/k6/cmd.(*cmdRun).run.func12()
        go.k6.io/k6/cmd/run.go:322 +0x172
created by go.k6.io/k6/cmd.(*cmdRun).run in goroutine 1
        go.k6.io/k6/cmd/run.go:316 +0x110d

goroutine 84 [chan receive]:
go.k6.io/k6/cmd.(*cmdRun).run.func13()
        go.k6.io/k6/cmd/run.go:334 +0x8b
created by go.k6.io/k6/cmd.(*cmdRun).run in goroutine 1
        go.k6.io/k6/cmd/run.go:332 +0x11d2

goroutine 85 [syscall]:
os/signal.signal_recv()
        runtime/sigqueue.go:152 +0x29
os/signal.loop()
        os/signal/signal_unix.go:23 +0x13
created by os/signal.Notify.func1.1 in goroutine 1
        os/signal/signal.go:151 +0x1f

goroutine 86 [select]:
go.k6.io/k6/cmd.handleTestAbortSignals.func1()
        go.k6.io/k6/cmd/common.go:104 +0x94
created by go.k6.io/k6/cmd.handleTestAbortSignals in goroutine 1
        go.k6.io/k6/cmd/common.go:103 +0x185

goroutine 87 [select]:
go.k6.io/k6/execution.(*Scheduler).emitVUsAndVUsMax.func2()
        go.k6.io/k6/execution/scheduler.go:240 +0xf9
created by go.k6.io/k6/execution.(*Scheduler).emitVUsAndVUsMax in goroutine 1
        go.k6.io/k6/execution/scheduler.go:232 +0x1d3

goroutine 91 [runnable]:
github.com/grafana/sobek.(*Runtime).innerModuleEvaluation(0xc000804408, 0xc000b1a050, {0x22469f0, 0xc0003cd7c0}, 0xc0007b1508, 0x0, 0xc0007b1658)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:296 +0xc59
github.com/grafana/sobek.(*Runtime).CyclicModuleRecordEvaluate(0xc000804408, {0x224dfe0, 0xc0003cd7c0}, 0xc0007b1658)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/modules.go:183 +0x47d
go.k6.io/k6/js/modules.(*ModuleSystem).getModuleInstanceFromGoModule(0xc000b141e0, 0xc0003cd7c0)
        go.k6.io/k6/js/modules/require_impl.go:75 +0xb7
go.k6.io/k6/js/modules.ExportGloballyModule(0xc000804408, 0xc000b141e0, {0x1eccb7e?, 0xc000b141e0?})
        go.k6.io/k6/js/modules/resolution.go:297 +0x66
go.k6.io/k6/js.(*Bundle).instantiate(0xc0003c42c8, 0xc000b12080, 0xa)
        go.k6.io/k6/js/bundle.go:312 +0x14c
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0003c42c8, {0x2246668, 0xc0002c5900}, 0xa)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc0002dc2d0, {0x2246668?, 0xc0002c5900?}, 0xa, 0xa, 0xc000886230)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0001e41e0?, {0x2246668?, 0xc0002c5900?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc00024a700, {0x2246668, 0xc0002c5900}, 0xc000886230, {0x2261b60, 0xc00063d030})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 49 [runnable]:
go.k6.io/k6/js.(*Bundle).instantiate.func2()
        go.k6.io/k6/js/bundle.go:321
created by go.k6.io/k6/js.(*Bundle).instantiate in goroutine 110
        go.k6.io/k6/js/bundle.go:321 +0x22a

goroutine 94 [chan receive]:
go.k6.io/k6/js.(*Bundle).instantiate(0xc0003c42c8, 0xc000c84040, 0x17)
        go.k6.io/k6/js/bundle.go:349 +0x3a9
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0003c42c8, {0x2246668, 0xc0002c5900}, 0x17)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc0002dc2d0, {0x2246668?, 0xc0002c5900?}, 0x17, 0x17, 0xc000886230)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0001e4660?, {0x2246668?, 0xc0002c5900?}, 0x1?, 0x1?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc00024a700, {0x2246668, 0xc0002c5900}, 0xc000886230, {0x2261b60, 0xc00063d030})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 96 [chan receive]:
go.k6.io/k6/js.(*Bundle).instantiate(0xc0003c42c8, 0xc000297540, 0xf)
        go.k6.io/k6/js/bundle.go:349 +0x3a9
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0003c42c8, {0x2246668, 0xc0002c5900}, 0xf)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc0002dc2d0, {0x2246668?, 0xc0002c5900?}, 0xf, 0xf, 0xc000886230)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0001e4720?, {0x2246668?, 0xc0002c5900?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc00024a700, {0x2246668, 0xc0002c5900}, 0xc000886230, {0x2261b60, 0xc00063d030})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 98 [runnable]:
github.com/grafana/sobek/parser.(*_parser).scan(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/lexer.go:457 +0x612
github.com/grafana/sobek/parser.(*_parser).next(...)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/parser.go:230
github.com/grafana/sobek/parser.(*_parser).parsePrimaryExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:55 +0x1d5
github.com/grafana/sobek/parser.(*_parser).parseLeftHandSideExpressionAllowCall(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:830 +0x9b
github.com/grafana/sobek/parser.(*_parser).parseUpdateExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:891 +0x1ec
github.com/grafana/sobek/parser.(*_parser).parseUnaryExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:963 +0x21d
github.com/grafana/sobek/parser.(*_parser).parseExponentiationExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:969 +0x25
github.com/grafana/sobek/parser.(*_parser).parseMultiplicativeExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:994 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseAdditiveExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1011 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseShiftExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1027 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseRelationalExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1062 +0x1f5
github.com/grafana/sobek/parser.(*_parser).parseEqualityExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1105 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseBitwiseAndExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1123 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseBitwiseExclusiveOrExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1139 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseBitwiseOrExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1155 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseLogicalAndExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1171 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseLogicalOrExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1196 +0x2d
github.com/grafana/sobek/parser.(*_parser).parseConditionalExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1248 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseAssignmentExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1336 +0x2c7
github.com/grafana/sobek/parser.(*_parser).parseObjectProperty(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:506 +0x645
github.com/grafana/sobek/parser.(*_parser).parseObjectLiteral(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:551 +0xcb
github.com/grafana/sobek/parser.(*_parser).parsePrimaryExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:76 +0x329
github.com/grafana/sobek/parser.(*_parser).parseLeftHandSideExpressionAllowCall(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:830 +0x9b
github.com/grafana/sobek/parser.(*_parser).parseUpdateExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:891 +0x1ec
github.com/grafana/sobek/parser.(*_parser).parseUnaryExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:963 +0x21d
github.com/grafana/sobek/parser.(*_parser).parseExponentiationExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:969 +0x25
github.com/grafana/sobek/parser.(*_parser).parseMultiplicativeExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:994 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseAdditiveExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1011 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseShiftExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1027 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseRelationalExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1062 +0x1f5
github.com/grafana/sobek/parser.(*_parser).parseEqualityExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1105 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseBitwiseAndExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1123 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseBitwiseExclusiveOrExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1139 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseBitwiseOrExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1155 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseLogicalAndExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1171 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseLogicalOrExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1196 +0x2d
github.com/grafana/sobek/parser.(*_parser).parseConditionalExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1248 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseAssignmentExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1336 +0x2c7
github.com/grafana/sobek/parser.(*_parser).parseObjectProperty(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:506 +0x645
github.com/grafana/sobek/parser.(*_parser).parseObjectLiteral(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:551 +0xcb
github.com/grafana/sobek/parser.(*_parser).parsePrimaryExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:76 +0x329
github.com/grafana/sobek/parser.(*_parser).parseLeftHandSideExpressionAllowCall(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:830 +0x9b
github.com/grafana/sobek/parser.(*_parser).parseUpdateExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:891 +0x1ec
github.com/grafana/sobek/parser.(*_parser).parseUnaryExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:963 +0x21d
github.com/grafana/sobek/parser.(*_parser).parseExponentiationExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:969 +0x25
github.com/grafana/sobek/parser.(*_parser).parseMultiplicativeExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:994 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseAdditiveExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1011 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseShiftExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1027 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseRelationalExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1062 +0x1f5
github.com/grafana/sobek/parser.(*_parser).parseEqualityExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1105 +0x1c
...5 frames elided...
github.com/grafana/sobek/parser.(*_parser).parseConditionalExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1248 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseAssignmentExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1336 +0x2c7
github.com/grafana/sobek/parser.(*_parser).parseObjectProperty(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:506 +0x645
github.com/grafana/sobek/parser.(*_parser).parseObjectLiteral(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:551 +0xcb
github.com/grafana/sobek/parser.(*_parser).parsePrimaryExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:76 +0x329
github.com/grafana/sobek/parser.(*_parser).parseLeftHandSideExpressionAllowCall(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:830 +0x9b
github.com/grafana/sobek/parser.(*_parser).parseUpdateExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:891 +0x1ec
github.com/grafana/sobek/parser.(*_parser).parseUnaryExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:963 +0x21d
github.com/grafana/sobek/parser.(*_parser).parseExponentiationExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:969 +0x25
github.com/grafana/sobek/parser.(*_parser).parseMultiplicativeExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:994 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseAdditiveExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1011 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseShiftExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1027 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseRelationalExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1062 +0x1f5
github.com/grafana/sobek/parser.(*_parser).parseEqualityExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1105 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseBitwiseAndExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1123 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseBitwiseExclusiveOrExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1139 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseBitwiseOrExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1155 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseLogicalAndExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1171 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseLogicalOrExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1196 +0x2d
github.com/grafana/sobek/parser.(*_parser).parseConditionalExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1248 +0x1c
github.com/grafana/sobek/parser.(*_parser).parseAssignmentExpression(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:1336 +0x2c7
github.com/grafana/sobek/parser.(*_parser).parseVariableDeclaration(0xc000550900, 0xc000564608)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:339 +0x168
github.com/grafana/sobek/parser.(*_parser).parseVariableDeclarationList(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/expression.go:347 +0x45
github.com/grafana/sobek/parser.(*_parser).parseLexicalDeclaration(0xc000550900, 0x64)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/statement.go:835 +0x74
github.com/grafana/sobek/parser.(*_parser).parseExportDeclaration(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/statement.go:1118 +0x779
github.com/grafana/sobek/parser.(*_parser).parseStatement(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/statement.go:111 +0x257
github.com/grafana/sobek/parser.(*_parser).parseSourceElements(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/statement.go:918 +0x7a
github.com/grafana/sobek/parser.(*_parser).parseProgram(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/statement.go:926 +0x1c
github.com/grafana/sobek/parser.(*_parser).parse(0xc000550900)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/parser.go:222 +0xf4
github.com/grafana/sobek/parser.ParseFile(0x0, {0xc0008732c0, 0x54}, {0x1b7d980?, 0xc00049b760?}, 0x0, {0xc00049b750, 0x2, 0x2})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/parser/parser.go:185 +0x228
go.k6.io/k6/js/compiler.(*parsingState).parseImpl(0xc0001a6f00, {0xc000558000, 0x16cf}, {0xc0008732c0, 0x54}, 0x0)
        go.k6.io/k6/js/compiler/compiler.go:107 +0x306
go.k6.io/k6/js/compiler.(*Compiler).Parse(0xc0003bdaa0, {0xc000558000, 0x16cf}, {0xc0008732c0, 0x54}, 0x0, 0x1)
        go.k6.io/k6/js/compiler/compiler.go:79 +0xad
go.k6.io/k6/js/modules.(*ModuleResolver).resolveLoaded(0xc0003aae60, 0xc00054ec28?, {0xc000873140?, 0xc0003d26e0?}, {0xc00043e000, 0x16cf, 0x0?})
        go.k6.io/k6/js/modules/resolution.go:107 +0xf2
go.k6.io/k6/js/modules.(*ModuleSystem).RunSourceData(0xc000035080, 0xc0003bd860)
        go.k6.io/k6/js/modules/resolution.go:239 +0xbb
go.k6.io/k6/js.(*Bundle).instantiate.func3()
        go.k6.io/k6/js/bundle.go:338 +0x27
reflect.Value.call({0x1b82280?, 0xc000035400?, 0xc000552a20?}, {0x1ec4d3d, 0x4}, {0x32bb440, 0x0, 0xc00054f288?})
        reflect/value.go:581 +0xca6
reflect.Value.Call({0x1b82280?, 0xc000035400?, 0xc000035420?}, {0x32bb440?, 0x120?, 0x35554aaaa?})
        reflect/value.go:365 +0xb9
github.com/grafana/sobek.(*Runtime).newWrappedFunc.(*Runtime).wrapReflectFunc.func1({{0x0, 0x0}, {0x0, 0x0, 0x0}})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2029 +0x3bd
github.com/grafana/sobek.AssertFunction.func1.1()
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2464 +0x56
github.com/grafana/sobek.(*vm).try(0xc00024e120, 0xc00054f5a8)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/vm.go:863 +0x249
github.com/grafana/sobek.(*Runtime).runWrapped(0xc000546008, 0xc0000b4880?)
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2508 +0x65
github.com/grafana/sobek.AssertFunction.func1({0x0?, 0x0?}, {0x0?, 0x1?, 0xc0000b4878?})
        github.com/grafana/sobek@v0.0.0-20241024150027-d91f02b05e9b/runtime.go:2463 +0x8c
go.k6.io/k6/js.(*Bundle).instantiate.func4()
        go.k6.io/k6/js/bundle.go:345 +0x23
go.k6.io/k6/js/eventloop.(*EventLoop).Start(0xc0001a6af0, 0xc00049b710)
        go.k6.io/k6/js/eventloop/eventloop.go:177 +0x19a
go.k6.io/k6/js.(*Bundle).instantiate(0xc0003c42c8, 0xc000461a00, 0x3)
        go.k6.io/k6/js/bundle.go:344 +0x390
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0003c42c8, {0x2246668, 0xc0002c5900}, 0x3)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc0002dc2d0, {0x2246668?, 0xc0002c5900?}, 0x3, 0x3, 0xc000886230)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0001e47e0?, {0x2246668?, 0xc0002c5900?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc00024a700, {0x2246668, 0xc0002c5900}, 0xc000886230, {0x2261b60, 0xc00063d030})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 99 [chan receive]:
go.k6.io/k6/js.(*Bundle).instantiate(0xc0003c42c8, 0xc000654100, 0x8)
        go.k6.io/k6/js/bundle.go:349 +0x3a9
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0003c42c8, {0x2246668, 0xc0002c5900}, 0x8)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc0002dc2d0, {0x2246668?, 0xc0002c5900?}, 0x8, 0x8, 0xc000886230)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0001e4840?, {0x2246668?, 0xc0002c5900?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc00024a700, {0x2246668, 0xc0002c5900}, 0xc000886230, {0x2261b60, 0xc00063d030})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 226 [runnable]:
go.k6.io/k6/js.(*Bundle).instantiate.func2()
        go.k6.io/k6/js/bundle.go:321
created by go.k6.io/k6/js.(*Bundle).instantiate in goroutine 94
        go.k6.io/k6/js/bundle.go:321 +0x22a

goroutine 103 [chan receive]:
go.k6.io/k6/js.(*Bundle).instantiate(0xc0003c42c8, 0xc000655100, 0x18)
        go.k6.io/k6/js/bundle.go:349 +0x3a9
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0003c42c8, {0x2246668, 0xc0002c5900}, 0x18)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc0002dc2d0, {0x2246668?, 0xc0002c5900?}, 0x18, 0x18, 0xc000886230)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0001e4ae0?, {0x2246668?, 0xc0002c5900?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc00024a700, {0x2246668, 0xc0002c5900}, 0xc000886230, {0x2261b60, 0xc00063d030})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 108 [chan receive]:
go.k6.io/k6/js.(*Bundle).instantiate(0xc0003c42c8, 0xc00034b240, 0x13)
        go.k6.io/k6/js/bundle.go:349 +0x3a9
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0003c42c8, {0x2246668, 0xc0002c5900}, 0x13)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc0002dc2d0, {0x2246668?, 0xc0002c5900?}, 0x13, 0x13, 0xc000886230)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0001e4cc0?, {0x2246668?, 0xc0002c5900?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc00024a700, {0x2246668, 0xc0002c5900}, 0xc000886230, {0x2261b60, 0xc00063d030})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 196 [runnable]:
go.k6.io/k6/js.(*Bundle).instantiate.func2()
        go.k6.io/k6/js/bundle.go:321
created by go.k6.io/k6/js.(*Bundle).instantiate in goroutine 108
        go.k6.io/k6/js/bundle.go:321 +0x22a

goroutine 110 [chan receive]:
go.k6.io/k6/js.(*Bundle).instantiate(0xc0003c42c8, 0xc0008f7c40, 0x19)
        go.k6.io/k6/js/bundle.go:349 +0x3a9
go.k6.io/k6/js.(*Bundle).Instantiate(0xc0003c42c8, {0x2246668, 0xc0002c5900}, 0x19)
        go.k6.io/k6/js/bundle.go:257 +0x1f1
go.k6.io/k6/js.(*Runner).newVU(0xc0002dc2d0, {0x2246668?, 0xc0002c5900?}, 0x19, 0x19, 0xc000886230)
        go.k6.io/k6/js/runner.go:128 +0x58
go.k6.io/k6/js.(*Runner).NewVU(0xc0001e4d20?, {0x2246668?, 0xc0002c5900?}, 0x0?, 0x0?, 0x100000000000000?)
        go.k6.io/k6/js/runner.go:116 +0x1d
go.k6.io/k6/execution.(*Scheduler).initVU(0xc00024a700, {0x2246668, 0xc0002c5900}, 0xc000886230, {0x2261b60, 0xc00063d030})
        go.k6.io/k6/execution/scheduler.go:133 +0x9f
go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently.func1()
        go.k6.io/k6/execution/scheduler.go:172 +0xd2
created by go.k6.io/k6/execution.(*Scheduler).initVUsConcurrently in goroutine 1
        go.k6.io/k6/execution/scheduler.go:170 +0x97

goroutine 162 [runnable]:
go.k6.io/k6/js.(*Bundle).instantiate.func2()
        go.k6.io/k6/js/bundle.go:321
created by go.k6.io/k6/js.(*Bundle).instantiate in goroutine 99
        go.k6.io/k6/js/bundle.go:321 +0x22a

goroutine 132 [runnable]:
go.k6.io/k6/js.(*Bundle).instantiate.func2()
        go.k6.io/k6/js/bundle.go:321
created by go.k6.io/k6/js.(*Bundle).instantiate in goroutine 96
        go.k6.io/k6/js/bundle.go:321 +0x22a

goroutine 242 [runnable]:
go.k6.io/k6/js.(*Bundle).instantiate.func2()
        go.k6.io/k6/js/bundle.go:321
created by go.k6.io/k6/js.(*Bundle).instantiate in goroutine 103
        go.k6.io/k6/js/bundle.go:321 +0x22a

I then repeated the same test on the same version however added the --no-archive-upload to my command and the test ran correctly and I could see data in the cloud as expected.

I then got the latest ‘master’ branch via docker-compose - k6 v0.56.0 (commit/cc8511256d, go1.23.6, linux/amd64) and repeated the original test without the --no-archive-upload command and the test ran as expected with the data showing in the cloud.

I then repeated the test but with the --no-archive-upload present in the command and again the test ran as expected with data being displayed in the cloud.

Do you still need me to open an issue?

@mstoykov @joanlopez

also
Please see below my script:

import { check, sleep } from 'k6'
import { Counter } from 'k6/metrics'
import encoding from 'k6/encoding'
import { uuidv4 } from 'https://jslib.k6.io/k6-utils/1.4.0/index.js'
import { SharedArray } from 'k6/data'
import { scenario } from 'k6/execution'
import { importPrivateKey, getHeaders } from './script_signing_copy_helpers.js'

// Load configuration from config.json
const config = JSON.parse(open('/config/config.json', 'r'))
if (!config) {
  throw new Error(`Failed to open file: config file`)
}

const baseUrl = config.endpoint
const subPath = config.subPathProcess

const cert = open('/certs/cert.pem') // Read certificate file
const key = open('/certs/key.pem') // Read private key file

// Precompute static values to avoid redundant processing inside loops
const base64EncodedCert = encoding.b64encode(cert)
const privateKey = await importPrivateKey(key)

const data = new SharedArray('reqs', function () {
  const file = JSON.parse(open('/data/IFs/filelist.json', 'r'))

  const requests = []

  file.forEach(filePath => {
    requests.push(JSON.parse(open(`/data/IFs/${filePath}`))[0])
  })

  return requests
})

const errorCount = new Counter('errors')

// This is the test configuration
export let options = {
  scenarios: {
    'process-all-data-from-dip-tst1r': {
      executor: 'constant-vus',
      vus: 5, // Number of VUs to keep active
      duration: '1m' // Test duration
    },
    'process-all-data-from-dip-tst2r': {
      executor: 'constant-vus',
      vus: 5, // Number of VUs to keep active
      duration: '1m' // Test duration
    },
    'process-all-data-from-dip-tst3p': {
      executor: 'constant-vus',
      vus: 5, // Number of VUs to keep active
      duration: '1m' // Test duration
    },
    'process-all-data-from-dip-tst4p': {
      executor: 'constant-vus',
      vus: 5, // Number of VUs to keep active
      duration: '1m' // Test duration
    },
    'process-all-data-from-dip-tst5p': {
      executor: 'constant-vus',
      vus: 5, // Number of VUs to keep active
      duration: '1m' // Test duration
    },
    'process-all-data-from-dip-tst6p': {
      executor: 'constant-vus',
      vus: 5, // Number of VUs to keep active
      duration: '1m' // Test duration
    }
    // 1 iteration per 6 MPID, will result in 207 requests.
  },
  thresholds: {
    // Define threshold for response time
    http_req_duration: ['p(95)<3000'] // 95% of requests must complete in under 10 seconds
  },
  // vus: 1, // 100 Virtual Users
  // iterations: 1, // 1000 iterations in total
  tlsAuth: [
    {
      cert: cert,
      key: key
    }
  ],
  cloud: {
    distribution: {
      distributionLabel1: { loadZone: 'amazon:gb:london', percent: 100 }
    }
  }
}

// Main test function
export default async function () {
  const scenarioMapping = {
    'process-all-data-from-dip-tst1r': 'TST1R',
    'process-all-data-from-dip-tst2r': 'TST2R',
    'process-all-data-from-dip-tst3p': 'TST3P',
    'process-all-data-from-dip-tst4p': 'TST4P',
    'process-all-data-from-dip-tst5p': 'TST5P',
    'process-all-data-from-dip-tst6p': 'TST6P',
    'process-all-data-from-dip-etclr': 'ETCLR',
    'process-all-data-from-dip-ecoes': 'ECOES'
  }

  const currentScenario = scenario.name
  const mpidRole = scenarioMapping[currentScenario]

  if (!mpidRole) {
    console.error(`Unknown scenario: ${currentScenario}`)
    return
  }

  const matchingObject = config.mpidDetails.find(item => item.name === mpidRole)
  if (!matchingObject) {
    console.error(`No matching config found for MPID: ${mpidRole}`)
    return
  }

  const { includedIfTypes, updateMPAN, mpanPrefix, defaultMPAN } =
    matchingObject
  if (!includedIfTypes || includedIfTypes.length === 0) {
    console.error(`No interface types configured for MPID: ${mpidRole}`)
    return
  }

  for (const interfaceType of includedIfTypes) {
    const url = `${baseUrl}${subPath}${mpidRole.toLowerCase()}/${interfaceType}`
    const batchRequests = []

    for (const originalMessage of data) {
      let message = JSON.parse(JSON.stringify(originalMessage))

      if (interfaceType === message.payload.CommonBlock.S0.interfaceID) {
        const randomUUID = uuidv4()

        if (updateMPAN) {
          const mpan = defaultMPAN
          try {
            message.payload.CommonBlock.M0.MPANCore = `${mpan}`
          } catch {}
          try {
            message.payload.CommonBlock.M1.principalMPAN = `${mpan}`
          } catch {}
        }

        message.payload.CommonBlock.S1.senderUniqueReference = `S-${randomUUID}`
        message.payload.CommonBlock.D0.transactionID = `T-${randomUUID}`

        const messageBody = JSON.stringify([message])

        let headers = await getHeaders(
          messageBody,
          url,
          privateKey,
          base64EncodedCert
        )

        // Collect requests for batch execution
        batchRequests.push(['POST', url, messageBody, { headers }])
      }
    }

    if (batchRequests.length > 0) {
      // Execute all collected requests in parallel using http.batch()
      const responses = http.batch(batchRequests)

      // Process responses
      responses.forEach((res, index) => {
        let responseBody
        try {
          responseBody =
            res.body.trim() !== '' ? res.json() : 'Empty response body'
        } catch (e) {
          responseBody = res.body
        }

        const successStatusCode = check(res, {
          'status is 201': r => r.status === 201
        })

        if (!successStatusCode) {
          console.log(`Failed Response [${index}]: ${res.body}`)
          errorCount.add(1)
        }
      })
    }
  }
}

Hi @chrisellison,

we are pretty sure that this was fixed in the latest master of k6. The release of v0.57.0 is planned for tomorrow, but you can get it today through docker or by getting the binaries from the build step here

Hope this helps you!

1 Like

Version 0.56 worked also

1 Like