Unresolved Issue w/ Memory

Hello,

I have now racked my brain for two days on this issue. At first, all EEG electrode localization was going wonderfully. Then, all of a sudden and with no changes, it all went south. First, I got memory storage errors after simply trying to register one CT onto an MRI for one patient, and that is the only patient/subject in the current protocol. At this point, I now get the error attached in the image below, but I am so frustrated as I am not even able to visualize what is working versus not. Also, if you all happen to know, each time I try to run these less than 1 GB CT files into brainstorm, it tells me they are over 7.7 GB large, and now I am having disk space eaten up left and right and I have no idea how to clear it.

Updating matlab seems to have worked in the short term, but I'd love to see if there are any solutions for this should the same error happen in the future.

This is not related to the Matlab version, as the error message indicate, the problem is the requested RAM. It may works sporadically as the requested memory (7.8GB) is very close to the available memory, so closing some programs may help.

Also, the error message, indicates that the volume has 32 time points. I'm, not sure if that is expected or normal for CT volumes.

@Anand_Joshi @chinmay.chinara can you provide your input?

1 Like

The CT resolution is too high, 470*470*...
and this will use more memory,
moreover, do you know why there are 32 volumes?
what is the difference between those 32?

@Raymundo.Cassani and @tmedani, thank you all for this. I will continue to keep all programs closed in the future, but that has not helped so far.

These CT volumes were pulled directly from our patient databases, so I am unsure why there are 32 time points. On my end, I am only selecting one CT "scan", but what is inside I cannot see. How can I lower the resolution?

Lastly, I still don't know how my disk storage is decreasing every day if these scans and data are being saved to an external database, any thoughts on that?

Are you sure those are CT?
Can you display them and share a screenshot?

If this is CT, you may need to check with the radiologist why they have multiple scans and what the difference is.

As for the following steps, you can either use one of these volumes (select the best one) or average over these 32 volumes (assuming that all those are CTs).

@tmedani For example, this is what one patient's CT scans look like after converting from DICOM files to NIFTI files. I select, for example, the one labeled BRAIN_LAB_IMAGES... and it tries to begin the CT2MRIREG function but then says the file (which is less than 2 GB, as you can see), has suddenly become almost 8 GB large. I myself am able to look and see what each scan looks like in the patient database, and so I have been selecting the best one that shows the EEG positions, but even when I try to use one volume or file it doesn't work, and instead eats up data on my C: drive.

to update, the participant I am chiefly having this issue with has a CT scan that is 177,665 KB large, which isn't too much larger than other CT scans I have uploaded. Do you think that might be the issue?

I'm not sure I understand what is going on with your data.

when I asked to share a screenshot, I referred to a CT image screenshot.

One possible solution for your issue is to load the all those CTs to Matlab and extract just one from the 32, save it back as nifty, and then use it within Brainstorm.

I'm not sure either, because there were over 361 files associated with that one brain lab images file, and so I'm not sure I can just extract one of the 32 (not sure where the 32 is coming from) and load that into brainstorm or make it into a nifti file. If all else, this participant's data might have to be scrapped. Thank you for looking into this though!