Error: Not enough memory

Questions about BrainVisa usage and installation

Moderators: denghien, riviere

Post Reply
Gwenael
Posts: 4
Joined: Thu Aug 23, 2012 12:45 pm

Error: Not enough memory

Post by Gwenael »

Dear Brainvisa users/developpers,

When I am using morphologist the program returns the following error at step 3 of the pipeline (building of brain mask):

------------------------------ !! VIP Error: Not enough memory... ------------------------------ ------------------------------ !! VIP Error: Execution aborted in function '(Vip_alloc.c)VipMalloc'. ------------------------------ ------------------------------ !! VIP Error: Memory pb in realloc ------------------------------ ------------------------------ !! VIP Error: Execution aborted in function 'VipDwindle3DBucket_S16BIT'. ------------------------------
Can't allocate memory - no memory left. This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

However the RAM is far from being full (only 4GB out of 24). I suspect this is happening because 32-bits programs (Brainvisa here) can not allocate more than 2GB on Windows operating system. Can anyone confirm that? Does anyone have the same problem?

Thanks a lot,
Gwenael
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: Error: Not enough memory

Post by riviere »

Hi,

Indeed, the Windows version is currently only built in 32 bits mode. we have not dealt yet with the task of installing a 64 bits development environment on Windows, compiling all dependency libraries in 64 bits, and testing it. So for now if you need more than 2 GB, you have to use Linux (or potentially a virtual machine containing a 64 bits Linux, that you can run from a Windows OS).
However 2 GB is generally enough to process standard data. What's the resolution of your input image ?

Denis
Gwenael
Posts: 4
Joined: Thu Aug 23, 2012 12:45 pm

Re: Error: Not enough memory

Post by Gwenael »

Hi,

Thanks for your answer.

The resolution of the 3D MRI is 176x240x256. Looks like standard resolution though.

Gwenael
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: Error: Not enough memory

Post by riviere »

So it's not normal that the process needs so much memory. I guess something went wrong in the previous steps, either in the bias correction or in the histogram analysis steps.
Denis
Gwenael
Posts: 4
Joined: Thu Aug 23, 2012 12:45 pm

Re: Error: Not enough memory

Post by Gwenael »

I tried with other subjects, some worked fine, some had the same error. I have clue: the one I converted from dicom to niftii using dcm2nii (mricron) crashed. The one I converted from dicom to analyze format using a tierce software (cartool) worked fine. So maybe dcm2nii has something wrong.

Gwenael
User avatar
Yann Cointepas
Posts: 316
Joined: Tue Jan 20, 2004 2:56 pm
Location: Neurospin, Saint Aubin, France
Contact:

Re: Error: Not enough memory

Post by Yann Cointepas »

If the problem comes from dcm2nii, it is strange that the problem only arise at the third step. Have you looked at the intermediate results of steps 1 and 2 ? Could you send us one of your image with problem ?
Gwenael
Posts: 4
Joined: Thu Aug 23, 2012 12:45 pm

Re: Error: Not enough memory

Post by Gwenael »

An error occured at first step and then the memory problem at 3rd step. I attached a screenshot of the log and the MRI data can be downloaded here: http://www.2shared.com/file/a9CUI1jy/mri.html

Gwenael
Attachments
Screenshot of morphologist log
Screenshot of morphologist log
morphologist_log.png (51.6 KiB) Viewed 9493 times
punkbrain
Posts: 1
Joined: Mon Aug 05, 2013 3:14 am

Re: Error: Not enough memory

Post by punkbrain »

Hi!

I do have just exactly tha same problem :D

Do you know, finally, how was it solved??

Thanks in advance
Post Reply