# Error: vtkXOpenGLRenderWindow: bad X server connection

**URL:** https://discourse.vtk.org/t/error-vtkxopenglrenderwindow-bad-x-server-connection/11301
**Category:** Support
**Tags:** python
**Created:** [April 25, 2023, 5:29pm UTC](https://discourse.vtk.org/t/error-vtkxopenglrenderwindow-bad-x-server-connection/11301 "2023-04-25T17:29:45Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [April 25, 2023, 8:59pm UTC](https://discourse.vtk.org/t/error-vtkxopenglrenderwindow-bad-x-server-connection/11301/2 "2023-04-25T20:59:51Z")

</div>

You can use our pre-built version of VTK with OSMesa like we use here:

> <https://github.com/Kitware/trame/blob/master/examples/deploy/docker/VtkRendering/setup/requirements.txt>

---

_[View the full topic](https://discourse.vtk.org/t/error-vtkxopenglrenderwindow-bad-x-server-connection/11301)._
