hoffstadt / hoffstadt/DearPyGui

App started from WSL with VcXsrv got glfwSetWindowPos error

Open
#1,940 1 comment 0 reactions 0 assignees View on GitHub
platform: Linux priority: medium type: bug type: improvement
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

## Version of Dear PyGui

Version: 1.8.0
Operating System: Windows 11 (WSL with Ubuntu 20.04.5 LTS)

## My Issue/Question

Is DPG in 1.8.0 version supported run from WSL? I'm trying to run my DPG app with VcXsrv and got error:

```
Glfw Error 65543: GLX: Failed to create context: GLXBadFBConfig
python: /home/runner/work/DearPyGui/DearPyGui/thirdparty/glfw/src/window.c:533: glfwSetWindowPos: Assertion `window != NULL' failed.
Aborted
```
It will be very helpful for development if DPG app can be running from WSL, I think.

## To Reproduce

1) Setup VcXsrv for WSL (https://wiki.ubuntu.com/WSL#Running_Graphical_Applications)
2) Run example DPG app from WSL env

## Expected behavior

DPG windows must be rendered, the app works as expected.

## Standalone, minimal, complete and verifiable example

Just standart example from documentation:

```python
import dearpygui.dearpygui as dpg
import dearpygui.demo as demo

dpg.create_context()
dpg.create_viewport(title='Custom Title', width=600, height=600)

demo.show_demo()

dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.