Closed samtygier-stfc closed 2 years ago
The ImageStack
is in the result field of TaskWorkerThread
, so this is not from the ReconstructWindowModel.auto_find_minimisation_sqsum
async tasks which return a list of floats.
Seems to be from the many calls wtih ReconstructWindowModel.run_preview_recon
that are made. If I output images.id
in _on_preview_reconstruct_slice_done
then they match the leaked imagestacks.
Summary
In the gui system tests an
ImageStack
is being leaked probably due to a reference inTaskWorkerThread
.The issue is probably, why is the
TaskWorkerThread
still alive.Steps To Reproduce
In
mantidimaging/gui/test/gui_system_base.py
change the leak tracker call toleak_tracker.pretty_print(debug_init=False, debug_owners=True, trace_depth=5)
run
xvfb-run --auto-servernum pytest -vs -rs --run-system-tests -k test_minimise
Current Behaviour
Context
Current main