Skip to content

Stack overflow Exception for GUI applications in WSL

Issue : WSL

Stack Overflow Exception when trying to open GUI application in WSL

Image showing stack overflow issue when debugging

Image showing stack overflow issue when debugging

Solutions

To run Linux GUI Apps in WSL, you need to install the correct vGPU driver for your system. Here are the steps to resolve the stack overflow exception:

Step 1

  • Update your WSL with the command wsl --update, then restart your WSL by doing wsl --shutdown and then wsl to restart it.

Step 2

For more information, you can read Microsoft’s Run Linux GUI apps on the Windows Subsystem for Linux article.