# Segmentation fault with OSMesa binary on Ubuntu 24.04

**URL:** https://discourse.paraview.org/t/segmentation-fault-with-osmesa-binary-on-ubuntu-24-04/15486
**Category:** ParaView Support
**Tags:** python
**Created:** [October 2, 2024, 5:15pm UTC](https://discourse.paraview.org/t/segmentation-fault-with-osmesa-binary-on-ubuntu-24-04/15486 "2024-10-02T17:15:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ianhinder](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ianhinder/32/9633_2.png) [@ianhinder](https://discourse.paraview.org/u/ianhinder)
#### Post date: [October 2, 2024, 5:15pm UTC](https://discourse.paraview.org/t/segmentation-fault-with-osmesa-binary-on-ubuntu-24-04/15486/1 "2024-10-02T17:15:57Z")

</div>

Hi,

I am trying to run pvbatch from the OSMesa ParaView build on Ubuntu 24.04 with a simple example script, and I get a segmentation fault.

There is a minimal example at [GitHub - cfdemons/pvbatch-test](https://github.com/cfdemons/pvbatch-test) with instructions for testing it with Docker.

I installed the Ubuntu packages

```
libglapi-mesa libgomp1 libgl1

```

to resolve missing symbol errors with pvbatch. I’m not sure if these are the right packages to install.

When I run it, I get

$ docker run paraview:test /opt/ParaView-5.13.1-osmesa-MPI-Linux-Python3.10-x86\_64/bin/pvbatch /scripts/test.py

error: exception occurred: Segmentation fault

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 3, 2024, 11:34am UTC](https://discourse.paraview.org/t/segmentation-fault-with-osmesa-binary-on-ubuntu-24-04/15486/2 "2024-10-03T11:34:22Z")

</div>

> [@I'm using Ubuntu and ParaView osmesa binary crashes on rendering](https://discourse.paraview.org/t/im-using-ubuntu-and-paraview-osmesa-binary-crashes-on-rendering/14046):
>
> This is a known issue that affect all binary versions of ParaView from [https://paraview.org/download:](https://paraview.org/download:)[https://gitlab.kitware.com/paraview/paraview/-/issues/22350](https://gitlab.kitware.com/paraview/paraview/-/issues/22350) How can I check if I am affected by this issue ? Run this: /lib/x86\_64-linux-gnu/libc.so.6 If it says something \>= 2.35, you are affected and cannot use the osmesa binary release. What can I do to work around this bug ? Use the EGL release from [https://paraview.org/download](https://paraview.org/download) Compile ParaView with OSMesa yourself using the [paravie…](https://gitlab.kitware.com/paraview/paraview-superbuild/)

---

<div class="post-metadata">

### Author: ![ianhinder](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ianhinder/32/9633_2.png) [@ianhinder](https://discourse.paraview.org/u/ianhinder)
#### Post date: [October 3, 2024, 8:26pm UTC](https://discourse.paraview.org/t/segmentation-fault-with-osmesa-binary-on-ubuntu-24-04/15486/3 "2024-10-03T20:26:51Z")

</div>

Thanks. Not sure why I didn’t come across that FAQ! I assume I can’t use the EGL version if I am on a headless machine with no GPU? So I will have to compile it myself.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 3, 2024, 9:22pm UTC](https://discourse.paraview.org/t/segmentation-fault-with-osmesa-binary-on-ubuntu-24-04/15486/4 "2024-10-03T21:22:10Z")

</div>

> [@ianhinder](#):
>
> I assume I can’t use the EGL version if I am on a headless machine with no GPU? So I will have to compile it myself.

Actually, with modern version of the libegl, you can use it with the CPU only!
