# OpenGLRender error

**URL:** https://discourse.vtk.org/t/openglrender-error/4809
**Category:** Support
**Created:** [December 11, 2020, 8:22pm UTC](https://discourse.vtk.org/t/openglrender-error/4809 "2020-12-11T20:22:11Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Elise\_B](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/e/4bbf92/32.png) [@Elise\_B](https://discourse.vtk.org/u/Elise_B)
#### Post date: [December 11, 2020, 8:22pm UTC](https://discourse.vtk.org/t/openglrender-error/4809/1 "2020-12-11T20:22:11Z")

</div>

Just trying to run the Cylinder Example and getting this example, I have OpenGL in my site-packages… I’m a python beginer, any idea?

python3 CylinderExample.py

ERROR: In /work/standalone-x64-build/VTK-source/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx,  
line 273  
vtkXOpenGLRenderWindow (0x129a2a0): bad X server connection. DISPLAY=Aborted (core dumped)

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.vtk.org/user_avatar/discourse.vtk.org/danlipsa/32/390_2.png) [@danlipsa](https://discourse.vtk.org/u/danlipsa)
#### Post date: [December 12, 2020, 7:03pm UTC](https://discourse.vtk.org/t/openglrender-error/4809/2 "2020-12-12T19:03:07Z")

</div>

Are you running this on a remote machine through ssh? If that is the case, OpenGL has a hard time working through a remote connection.  
I recommend using nomachine or virtualgl/turbovnc to connect to the remote machine.

Dan

---

<div class="post-metadata">

### Author: ![Elise\_B](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/e/4bbf92/32.png) [@Elise\_B](https://discourse.vtk.org/u/Elise_B)
#### Post date: [December 12, 2020, 9:01pm UTC](https://discourse.vtk.org/t/openglrender-error/4809/3 "2020-12-12T21:01:09Z")

</div>

Hi yes exactly, ok I’ll try that,  
thank you

---

<div class="post-metadata">

### Author: ![Elise\_B](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/e/4bbf92/32.png) [@Elise\_B](https://discourse.vtk.org/u/Elise_B)
#### Post date: [December 13, 2020, 12:38am UTC](https://discourse.vtk.org/t/openglrender-error/4809/4 "2020-12-13T00:38:10Z")

</div>

I need to istall virtualgl on the server or on my computer?

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.vtk.org/user_avatar/discourse.vtk.org/danlipsa/32/390_2.png) [@danlipsa](https://discourse.vtk.org/u/danlipsa)
#### Post date: [December 14, 2020, 2:43pm UTC](https://discourse.vtk.org/t/openglrender-error/4809/5 "2020-12-14T14:43:14Z")

</div>

I would start with nomachine as it is easier to install. The free version is only single user, but I think it has a paid version that is multiuser.

virtualgl/turbovnc is multiuser but it is trickier to install.

For both you’ll have to install parts on both server and client. virtualgl is installed on the server.

---

<div class="post-metadata">

### Author: ![Elise\_B](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/e/4bbf92/32.png) [@Elise\_B](https://discourse.vtk.org/u/Elise_B)
#### Post date: [December 14, 2020, 4:17pm UTC](https://discourse.vtk.org/t/openglrender-error/4809/6 "2020-12-14T16:17:10Z")

</div>

What about using Linux inside Windows using VirtualBox would that help?

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.vtk.org/user_avatar/discourse.vtk.org/danlipsa/32/390_2.png) [@danlipsa](https://discourse.vtk.org/u/danlipsa)
#### Post date: [December 14, 2020, 4:49pm UTC](https://discourse.vtk.org/t/openglrender-error/4809/7 "2020-12-14T16:49:28Z")

</div>

It depends if VirtualBox is able to use a compatible OpenGL driver (OpenGL 3.2) - a quick search shows me that people have struggled with that and it might not be possible. You could use VTK directly in Windows though - I think this is your best bet, besides using nomachine.
