# MFIX 21.4 see fault on VTK via ssh -XY and Xquartz 2.8.1/Mac; vtkOpenGLRenderWindow.c/vtkXOpenGLRenderWindow errors

**URL:** https://discourse.vtk.org/t/mfix-21-4-see-fault-on-vtk-via-ssh-xy-and-xquartz-2-8-1-mac-vtkopenglrenderwindow-c-vtkxopenglrenderwindow-errors/8313
**Category:** Support
**Created:** [April 18, 2022, 5:05pm UTC](https://discourse.vtk.org/t/mfix-21-4-see-fault-on-vtk-via-ssh-xy-and-xquartz-2-8-1-mac-vtkopenglrenderwindow-c-vtkxopenglrenderwindow-errors/8313 "2022-04-18T17:05:23Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![RobbieTheK](https://discourse.vtk.org/user_avatar/discourse.vtk.org/robbiethek/32/5040_2.png) [@RobbieTheK](https://discourse.vtk.org/u/RobbieTheK)
#### Post date: [April 18, 2022, 5:05pm UTC](https://discourse.vtk.org/t/mfix-21-4-see-fault-on-vtk-via-ssh-xy-and-xquartz-2-8-1-mac-vtkopenglrenderwindow-c-vtkxopenglrenderwindow-errors/8313/1 "2022-04-18T17:05:23Z")

</div>

Using XQuartz 2.8.1 on macOs 12.3.1 Monterey, and setting `defaults write org.xquartz.X11 enable_iglx -bool true` MFIX crashes at the VTK loading part. Works fine on Windows, e.g., with Mobaxterm. We use RHEL 7 and X-forwarding, i.e., `ssh -XY`. Always a segfault when attempting to run it. See below debug/errors.

```auto
MESA_GL_VERSION_OVERRIDE=3.2 MESA_GLSL_VERSION_OVERRIDE=150 mfix -n -l info
libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /xyz/home/me/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /xyz/home/me/.drirc: No such file or directory.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
mfix - INFO - Welcome to MFiX - https://mfix.netl.doe.gov
mfix - INFO - MFiX-GUI version 21.4
libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /moto/home/rk3199/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /moto/home/rk3199/.drirc: No such file or directory.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

2022-04-18 12:11:33.404 ( 55.046s) [AAAEEEC0]vtkOpenGLRenderWindow.c:499 ERR| vtkXOpenGLRenderWindow (0x55555cf6a780): Unable to find a valid OpenGL 3.2 or later implementation. Please update your video card driver to the latest version. If you are using Mesa please make sure you have version 11.2 or later and make sure your driver in Mesa supports OpenGL 3.2 such as llvmpipe or openswr. If you are on windows and using Microsoft remote desktop note that it only supports OpenGL 3.2 with nvidia quadro cards. You can use other remoting software such as nomachine to avoid this issue.

Segmentation fault

```

Is there any work around for this?

---

<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: [April 18, 2022, 7:34pm UTC](https://discourse.vtk.org/t/mfix-21-4-see-fault-on-vtk-via-ssh-xy-and-xquartz-2-8-1-mac-vtkopenglrenderwindow-c-vtkxopenglrenderwindow-errors/8313/2 "2022-04-18T19:34:16Z")

</div>

x-forwarding does not work well with OpenGL. You could use the first two solutions from the following post:

[https://discourse.paraview.org/t/paraview-error-vgl/9440/2](https://discourse.paraview.org/t/paraview-error-vgl/9440/2)

---

<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: [April 18, 2022, 7:42pm UTC](https://discourse.vtk.org/t/mfix-21-4-see-fault-on-vtk-via-ssh-xy-and-xquartz-2-8-1-mac-vtkopenglrenderwindow-c-vtkxopenglrenderwindow-errors/8313/3 "2022-04-18T19:42:17Z")

</div>

Or, if you don’t need to display vis. on the screen - you are happy with just saving images, you can use something similar with the third solution - compile VTK to use a headless display.

---

<div class="post-metadata">

### Author: ![RobbieTheK](https://discourse.vtk.org/user_avatar/discourse.vtk.org/robbiethek/32/5040_2.png) [@RobbieTheK](https://discourse.vtk.org/u/RobbieTheK)
#### Post date: [April 19, 2022, 8:05pm UTC](https://discourse.vtk.org/t/mfix-21-4-see-fault-on-vtk-via-ssh-xy-and-xquartz-2-8-1-mac-vtkopenglrenderwindow-c-vtkxopenglrenderwindow-errors/8313/4 "2022-04-19T20:05:46Z")

</div>

> [@danlipsa](#):
>
> you are happy with just saving images

Can you clarify what you mean by this? Saving images? We want the users to be able to use the VTK-driven 3D features. The `-k` (without VTK) option works just fine.

---

<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: [April 20, 2022, 12:19pm UTC](https://discourse.vtk.org/t/mfix-21-4-see-fault-on-vtk-via-ssh-xy-and-xquartz-2-8-1-mac-vtkopenglrenderwindow-c-vtkxopenglrenderwindow-errors/8313/5 "2022-04-20T12:19:56Z")

</div>

Sometimes you can produce visualization with fixed parameters instead of interactively exploring your data. In that case you can save that visualization image and examine it later.  
This is commonly used for in situ visualization.

If you need interactivity your choices are turbovnc + virtualgl or nomachine.

Dan

---

<div class="post-metadata">

### Author: ![RobbieTheK](https://discourse.vtk.org/user_avatar/discourse.vtk.org/robbiethek/32/5040_2.png) [@RobbieTheK](https://discourse.vtk.org/u/RobbieTheK)
#### Post date: [April 20, 2022, 1:50pm UTC](https://discourse.vtk.org/t/mfix-21-4-see-fault-on-vtk-via-ssh-xy-and-xquartz-2-8-1-mac-vtkopenglrenderwindow-c-vtkxopenglrenderwindow-errors/8313/6 "2022-04-20T13:50:26Z")

</div>

> [@danlipsa](#):
>
> If you need interactivity your choices are turbovnc + virtualgl or nomachine.

Am I reading the docs correct that either TurboVNC or nomachine would need to be installed and running on the servers that provide the logsin/accounts?

---

<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: [April 20, 2022, 1:52pm UTC](https://discourse.vtk.org/t/mfix-21-4-see-fault-on-vtk-via-ssh-xy-and-xquartz-2-8-1-mac-vtkopenglrenderwindow-c-vtkxopenglrenderwindow-errors/8313/7 "2022-04-20T13:52:35Z")

</div>

Yes, that is correct.
