Getting invalid memory address

Hi Team,

Getting an invalid memory address or nil pointer dereference from time to time while running a test on Chrome on the local machine.

ERRO[0011] A panic occurred during JS execution: runtime error: invalid memory address or nil pointer dereference

Spec : k6 v0.45.0 (2023-06-19T08:41:01+0000/v0.45.0-0-gc3b4587b, go1.20.5, windows/amd64)

Guide me how to troubleshoot.

Hi @gerardlj,

Thank you for the question and the screenshot of the output.

It looks like there are two issues:

  1. A panic occurs when the launch command is called.
  2. Some internal data structures are not setup correctly, which causes the nil pointer dereference.

I’m not able to replicate the issue without seeing and testing your test script. Could you send me your test script pointing to a publicly accessible website so that we can try to reproduce the issue?