Skip to content

When I disconnect an external monitor and launch k6 Studio, it opens the window off-screen and crashesΒ #1086

@mohswell

Description

@mohswell

Describe the bug

So I faced a problem with studio app not opening but the desktop process is running in task manager.

I tried some powershell scripts, I found the app's process and the error
ProcessName : k6-studio
MainWindowHandle : 0
[error] App#child-process-gone: { type: 'GPU', reason: 'killed', exitCode: 1, serviceName: 'GPU' }

β†’ Seems Window never initialized.

With investigating my setup, I discovered it was my own display issue and its referred to as "Ghost Monitor" https://rtech.support/factoids/windows-ghost-monitor/

this was my saved settings from the electron installation C:\Users\me\AppData\Roaming\k6 Studio\k6-studio.json

"windowState": {
    "x": 1839,
    "y": -303,
    "width": 800,
    "height": 1084,
    "isMaximized": false
  },

the second I reconnected my monitor the app opened

Steps to reproduce the problem

  1. use any windows OS
  2. Connect an external monitor
  3. launch k6 studio app
  4. move the UI window to the external monitor screen
  5. Use the app with this preference for a while
  6. So here is the tricky bit, I am not sure if it involves disconnecting the HDMI or shutting down the machine
  7. Try to open the app again after reboot

Expected behavior

should open the app normally.

Actual behavior

App is running but its not launching. Tried the classic "Turn It Off And On Again" but that was unsuccessful 😁

I found a workaround by holding Win + clicking Arrow keys to move it back to main display, which worked

Grafana k6 Studio version

1.10.0

OS

Windows 10, Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions