Issue with OpenMC Plot Explorer

Hi All,

I am trying to use the OpenMC Plot Explorer but unsuccessful so far. I followed the recommended steps for the installation:

git clone https://github.com/openmc-dev/plotter.git
cd plotter
pip install .

Apparently the plotter is correctly installed because, after running those commands and some processing, this message is shown “Successfully installed openmc-plotter-0.1.0”. Then, I go to the folder with the OpenMC results, run “openmc-plotter” and these messages are shown:


(process:11886): GLib-CRITICAL **: 13:25:29.355: g_hash_table_contains: assertion ‘hash_table != NULL’ failed

(process:11886): GLib-CRITICAL **: 13:25:29.355: g_hash_table_insert_internal: assertion ‘hash_table != NULL’ failed
Segmentation fault (core dumped)


Please, does anyone has an idea what is the issue?

Thanks,
Javier

Just searching for the error about g_hash_table_contains, it sounds like this has something to do with PySide2 (Python bindings for Qt), which provides the GUI widgets for the plotter application. Are you installing everything in a conda environment by chance? If so, you might want to make sure you start with a clean environment (no packages installed in it) and then install OpenMC followed by openmc-plotter.

1 Like

Hi Paul,
I did what you suggested and the plotter is working.
Thanks,
Javier