Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AcquisitionData storage scheme "memory" leads to Segmentation fault error using TOF-data #1060

Closed
NicoleJurjew opened this issue Feb 17, 2022 · 4 comments

Comments

@NicoleJurjew
Copy link

NicoleJurjew commented Feb 17, 2022

After setting the storage scheme for sirf.STIR.AcquisitionData to "memory", when I want to clone a TOF - sinogram, I get the error "Segmentation fault (core dumped)"

>>> acq_data = pet.AcquisitionData('data/template_sinogram_create.hs')
>>> acq_ar = acq_data.as_array()
>>> acq_ar.shape
(33, 238, 399, 520)
>>> pet.AcquisitionData.set_storage_scheme('memory')
>>> acq2 = acq_data.clone()
Segmentation fault (core dumped)
@evgueni-ovtchinnikov
Copy link
Contributor

could be running out of memory case - after increasing my VM memory to 10GB I managed to clone ok

@KrisThielemans
Copy link
Member

@ALEXJAZZ008008 This might be similar to what you saw

@ALEXJAZZ008008
Copy link
Member

This is very similar to what I saw, I had to turn memory off. I have enough RAM to hold these objects in memory

@KrisThielemans
Copy link
Member

Hopefully can be closed since #1208?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants