-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL__empty_window #218
Comments
Further details: I have windows 11, and the WSL2 is having Ubuntu-20.04. I checked the mesh details are good. It seems like it is missing some dependencies. I will keep working on this, but in the meantime any directions to resolve this is really helpful. Thank you for all the assistance. |
Hi @MohanElapolu, I recently installed GLVis on a Windows 11 system with WSL2 and Ubuntu without any issues. I'll try to take a look this weekend and respond. If anyone else (@kanye-quest, @acfisher) has any advice, please speak up! Tzanio |
Are you using the latest release v4.1, the latest If you are not using the latest In the past, I've had a similar issue (which just happened randomly, not always) where the window will not show anything initially. However, when I force it to update the contents (by pressing a key like |
Thank you for the quick response. I am using the latest version4.1 posted on https://glvis.org. I tried to update the content by pressing |
One thing that might help us, is to build GLVis in debug mode: make GLVIS_DEBUG=YES [any other options you use for building] and then post here the output you get in the terminal when you run GLVis to view a mesh (as you mentioned above). That may give us some clues. |
Can you try |
One potential issue: I'm not sure we've tested GLVis with the SDL2 version you are using, v2.0.10. I think the oldest version we tested is 2.0.12. If you want to try a newer SDL2 version, here are some basic instructions how to build it from source: Lines 243 to 257 in e7c5dd4
|
I installed SDL2 using commands as suggested above. I still have the blank screen window. Here is the screenshot of the output (Note: in the previous outputs we have shader missing, in this it is not there. I installed |
Did you install SDL2 in |
Okay, with this directory layout, use the following command from the make SDL_DIR=./SDL2 [other build flags] To check if ls -l ./SDL2/include/SDL2/SDL.h |
Unfortunately I can't reproduce this, but I may very well be missing something -- I rarely use Windows and I am new to WSL. My system is Win11 with WSL+Ubuntu and the following packages:
I do not have the VcXsrv X server installed.
With that
|
I also tried building GLVis (v4.1 and One difference I see, compared with the output you posted, is that you get "Testing if OpenGL core profile window can be created...success!" -- for me this always fails. Is it possible that you are running the WSL preview version with built-in X-server support described here: https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps? If that is the case, that might explain why the "OpenGL core profile window" test succeeds. @tzanio, if you are not using VcXsrv, are you using the above mentioned WSL preview version, or are you using some other X-server app? |
Sorry, I just saw this thread. @MohanElapolu: can you install and run the When you start VcXsrv, is the "Native opengl" option checked in the settings? |
Thanks for helping @kanye-quest! @v-dobrev, I'll have to look more carefully in my installation. It was relatively recent, but I don't recall explicitly following the instructions you linked to. |
Ah, based on that output it seems like Mesa is using the new built-in 3D accelerated X server for WSL that @v-dobrev mentioned. Since it's using direct rendering, VcXsrv will have nothing to display - the rendering is done through Direct3D 12. I think there are two potential paths you could try:
|
thank you @kanye-quest, I followed your first path and the directions as given in (microsoft/wslg#334.) I uninstalled the VcXsrv and used the following command. I am not sure this is best way but its working, will use it...:) Please post if we can do in a better way. |
Installed Glvis on WSL. When I try to run an example using below command it is showing an empty window.
./glvis -m ../mfem-4.3/data/escher.mesh
Installed all the dependencies using below command
sudo apt-get install libfontconfig1-dev libfreetype-dev libsdl2-dev libglew-dev libglm-dev libpng-dev
Also installed VcXsrv X server as suggested in https://github.com/GLVis/glvis/blob/master/INSTALL#L136-L138
Please find the empty window I am seeing. Thank you in advance for your help.
![image](https://user-images.githubusercontent.com/58925039/151417253-60b1202a-0c8d-4043-a0b0-aa2f8a716e1e.png)
The text was updated successfully, but these errors were encountered: