hz-b / rayx

RAYX is a simulation tool for beamlines at electron storage rings. It traces synchrotron radiation through a series of mirrors, gratings and more and provides the user with helpful insights, how a given beamline performs.
MIT License
21 stars 6 forks source link

Crash when changing displayed rays too often #284

Open EnricoAhlers opened 4 months ago

EnricoAhlers commented 4 months ago

The error is "out of pool memory". I think there is a memory leak somewhere.

Also, every time the displayed rays are changed, the elements are also rebuilt. This is not necessary and should be changed.