# OpenMC 'aborts unexpectedly' when plotting

**URL:** <https://openmc.discourse.group/t/openmc-aborts-unexpectedly-when-plotting/2350>\
**Category:** User Support\
**Created:** [October 9, 2022, 12:46am UTC](https://openmc.discourse.group/t/openmc-aborts-unexpectedly-when-plotting/2350 "2022-10-09T00:46:37Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Kladdy](https://avatars.discourse-cdn.com/v4/letter/k/839c29/32.png) [@Kladdy](https://openmc.discourse.group/u/Kladdy)\
**Post date:** [January 23, 2023, 11:53am UTC](https://openmc.discourse.group/t/openmc-aborts-unexpectedly-when-plotting/2350/5 "2023-01-23T11:53:40Z")

</div>

I have the same problem. When running the plot() function on my universe, it gives me `RuntimeError: OpenMC aborted unexpectedly`. If i run `openmc -p` from the same directory as my jupyter notebook, the following is written out

```auto
(openmc-env) <retracted> % openmc -p
                                %%%%%%%%%%%%%%%
                           %%%%%%%%%%%%%%%%%%%%%%%%
                        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                                    %%%%%%%%%%%%%%%%%%%%%%%%
                                     %%%%%%%%%%%%%%%%%%%%%%%%
                 ############### %%%%%%%%%%%%%%%%%%%%%%%%
                ################## %%%%%%%%%%%%%%%%%%%%%%%
                ################### %%%%%%%%%%%%%%%%%%%%%%%
                #################### %%%%%%%%%%%%%%%%%%%%%%
                ##################### %%%%%%%%%%%%%%%%%%%%%
                ###################### %%%%%%%%%%%%%%%%%%%%
                ####################### %%%%%%%%%%%%%%%%%%
                 ####################### %%%%%%%%%%%%%%%%%
                 ###################### %%%%%%%%%%%%%%%%%
                  #################### %%%%%%%%%%%%%%%%%
                    ################# %%%%%%%%%%%%%%%%%
                     ############### %%%%%%%%%%%%%%%%
                       ############ %%%%%%%%%%%%%%%
                          ######## %%%%%%%%%%%%%%
                                      %%%%%%%%%%%

                 | The OpenMC Monte Carlo Code
       Copyright | 2011-2022 MIT, UChicago Argonne LLC, and contributors
         License | https://docs.openmc.org/en/latest/license.html
         Version | 0.13.2
       Date/Time | 2023-01-23 12:50:14
   MPI Processes | 1
  OpenMP Threads | 8

 Reading settings XML file...
 Reading cross sections XML file...
 Reading materials XML file...
 Reading geometry XML file...
 Reading tallies XML file...
 Preparing distributed cell instances...
 Reading plot XML file...

 =======================> PLOTTING SUMMARY <========================

Plot ID: 2
Plot file: plot_2.png
Universe depth: -1
Plot Type: Slice
Origin: 5 2 3
Width: 50 50
Coloring: Cells
Basis: XZ
Pixels: 400 400

 Processing plot 2: plot_2.png...
libpng warning: Application built with libpng-1.4.12 but running with 1.6.39
zsh: segmentation fault openmc -p

```

so the same error as for @madhofs. I installed OpenMC according to the normal procedure on the website, and I am using a conda environment.

---

_[View the full topic](https://openmc.discourse.group/t/openmc-aborts-unexpectedly-when-plotting/2350)._
