Out of Memory Issue

Hello,

I am trying to import EEG data for a subject and I am running into 'out of memory' issues. The error message is:

Error: Line 60: Out of memory.
** Please unload some datasets (or restart Matlab) an try again.
**
** Call stack:
** >bst_bsxfun.m at 60
** >in_fread.m at 360
** >in_data.m at 327
** >import_data.m at 196
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@import_data) at 544

I did not previously have this problem before and I am confused as to why it is happening.

Any help would be appreciated! Thank you.

Are you importing all the EEG data to Brainstorm?
This is not recommended since it may require a lot of memory.

You may need to do a "review raw" file instead of importing all the data Brainstorm.
https://neuroimage.usc.edu/brainstorm/Tutorials/ReviewRaw

Hello,

So it seems like the option: 'Remove DC Offset' in the preprocessing tab was the issue. I unselected this and it is importing fine now.

Great to hear that you have solved the issue.

However, I'm not sure that your issue is related to that DC Offset option.
@Raymundo.Cassani ?

@sxd130, as pointed above the problem is the that the EEG file is very large. Interestingly, the RAM seems large enough to barely hold the data, but there is not enough free memory to execute the baseline removal by the bsxfun().

Is there are reason for not reviewing your data, instead of importing?

That is interesting and there is no reason as to why I have been importing instead of reviewing apart from this was the past protocol that I had established earlier. I will try reviewing to see if there is any difference.