Bug #1558

Memory leakges in Python on Simulation::getIntensityData call

Added by pospelov over 3 years ago. Updated over 3 years ago.

Status:ArchivedStart date:02 Aug 2016
Priority:NormalDue date:
Assignee:pospelov% Done:

0%

Category:-
Target version:Sprint32

Description

Thanks to Dominique Dresen

I think I narrowed the source of this bug down to the getIntensityData() method of GISASSimulation. Creating a simulation, setting the sample and running Simulation is fine. But if I have getIntensityData() which I obviously would need leads patiently to a crash once the memory is full.


for i in range(1000):
    print("Iteration ", i)
    sample = get_sample(i)
    simulation.setSample(sample)
    simulation.runSimulation()
    # this call increases memory usage until program gets killed :-(
    simul_data = simulation.getIntensityData()

History

#1 Updated by pospelov over 3 years ago

  • Status changed from Sprint to Resolved

#2 Updated by herck over 3 years ago

  • Status changed from Resolved to Archived

Also available in: Atom PDF