tschoonj / xraylib

A library for X-ray matter interaction cross sections for X-ray fluorescence applications
https://github.com/tschoonj/xraylib/wiki
Other
120 stars 54 forks source link

Python memory leak #192

Closed djvine closed 2 years ago

djvine commented 2 years ago

I'm using Xraylib tagged version 4.1.1 compiled from source on Manjaro 5.10.96.

The following call consumes GB of RAM with a 10 seconds and all of my 16GB within a few minutes.

import xraylib as xrl

for i in range(50000000):
    xrl.CS_Total(25, 10.0)

Any help debugging would be appreciated.