/opt/Shotgun/Python3/bin -> OpenEXR -> Segmentation fault (core dumped)

When using the OpenEXR Python library in /opt/Shotgun/Python3/bin, the UI terminates abnormally and displays Segmentation fault (core dumped).

When I run the code below with Python3.7 installed locally, it works normally, but when I run it in Shotgun’s Python3 interpreter, I confirmed that a Segmentation fault (core dumped) occurs.

If you create a custom UI on the shotgrid desktop app and run it, the UI simply terminates abnormally without any error.

rocky 8.8
openexr 2.2.0
python openexr:3.2.4
and openexr openexr for python adds libraries through rez.

Has anyone experienced these symptoms?
help me…

It’s got to do with the libraries used, PATH and maybe LD_LIBRARY_PATH. Maybe the ones vendored by Shotgun are incompatible with some system libraries.
You could try listing the libraries it depends on ldd OpenEXR.so.