ubuntu / ubuntu/WSL

New window briefly appears and then closes immediately

Open
#516 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
200
Forks
53
PR merge metrics
No merged PRs in 30d

Description

Image


When I run my OpenGL GLUT program, a new window pops up for a split second and then disappears immediately.

What I’ve tried:

  • Checked that $DISPLAY is set correctly and confirmed X11 forwarding works (e.g., xeyes runs fine).
  • Installed x11-apps and verified other X11 apps run normally.
  • Verified that freeglut is installed (tried to install but had package issues).
  • Ran the program with glutMainLoop() but the window still closes immediately.

Any help or suggestions would be appreciated!


Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file or test is identified in the report. Start by reproducing the OpenGL GLUT program under WSL with the reported DISPLAY and X11 setup, comparing it with the working xeyes check and the attempted glutMainLoop() run. Done means identifying a reproducible cause and documenting or verifying a fix for the immediate window closure.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, ubuntu
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.