You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some terminals, k6 isn't able to get the current terminal width (needed for the new responsive progressbars) for some unknown reason, so it emits this warning:
WARN[0000] error getting terminal size error=“The handle is invalid.”
then it panics with panic: runtime error: integer divide by zero 😞
Created because of https://community.k6.io/t/warn-0000-error-getting-terminal-size/767
Environment
Expected Behavior
Running a script with k6 shouldn't panic, ever.
Actual Behavior
For some terminals, k6 isn't able to get the current terminal width (needed for the new responsive progressbars) for some unknown reason, so it emits this warning:
then it panics with
panic: runtime error: integer divide by zero
😞my theory is that this code works as intended and falls back to width of 80: https://github.com/loadimpact/k6/blob/62e1b53391c2b2a8cd9e7af1d6a0cd70bd6227db/cmd/ui.go#L255-L258
but then we zero it out when we suppress the error here: https://github.com/loadimpact/k6/blob/62e1b53391c2b2a8cd9e7af1d6a0cd70bd6227db/cmd/ui.go#L334-L338
The text was updated successfully, but these errors were encountered: