Skip to content

Display.SimpleGui in WSL2 #1441

Open
Open
@alex-kramer-12

Description

@alex-kramer-12

Hey all,

I am trying to use Display.SimpleGui using a conda venv in WSL2.
Stacktrace looks like the following:
[INFO:OCC.Display.backend](07/01/2025 15:58:20): backend loaded: qt-pyqt5
3D rendering pipe initialisation
Display3d class initialization starting ...
Aspect_DisplayConnection created.
Graphic_Driver created.
V3d_Viewer created.
AIS_InteractiveContext created.
V3d_View created
Segmentation fault (core dumped)

At first I thought it was a WSL2 to windows display issue. After a lot of google searching, turns out the latest WSL2 distros natively support guis using wslg. See comments here: https://superuser.com/questions/1617298/wsl-2-running-ubuntu-x-server-cant-open-display

I also confirmed its not a wsl2 issue, as xcalc and firefox commands in wsl2 work.

Any insight into the segfault? thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions