CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

new cannot satisfy memory request.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2016, 16:00
Unhappy new cannot satisfy memory request.
  #1
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 17
sahm is on a distinguished road
Hello Everyone.

I have made a solver that works on my lab computer (forgot which openfoam version it is) but it doesn't work on my home computer (OpenFOAM version 3.0.1). I have made a mesh using gmsh and imported it to my openFoam case. When I run it, I get the "new cannot satisfy memory request." Error. I searched to figure out what is causing it, but most of the threads were talking about huge meshes. My mesh has only about 15K elements which is much smaller than many other cases. I need help on this.

The full error message is:

Quote:

new cannot satisfy memory request.
This does not necessarily mean you have run out of virtual memory.
It could be due to a stack violation caused by e.g. bad use of pointers or an out of date shared library
Aborted (core dumped)
I can post the code here if anyone wants to see it.
Thanks.
__________________
SAHM
sahm is offline   Reply With Quote

Old   July 12, 2016, 15:53
Default Here's the code and the case that I'm trying to work with.
  #2
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 17
sahm is on a distinguished road
The file was too big and I couldn't upload it as attachment here. You can downlod it from this link:

https://dl.dropboxusercontent.com/u/...3/Codes%20.zip

Thanks in advance.
__________________
SAHM
sahm is offline   Reply With Quote

Old   August 8, 2016, 12:49
Default
  #3
New Member
 
Manm
Join Date: Apr 2015
Posts: 16
Rep Power: 11
Manm is on a distinguished road
Hi sahm,

I am facing the same issue. Did yours resolve?
Manm is offline   Reply With Quote

Old   August 9, 2016, 11:16
Default
  #4
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
Since your problem is not rooting from a "out of virtual memory" as you mentioned, and your code runs in another computer which means it probably is not "bad use of pointers" then the only option can be " out of date shared library".
anishtain4 is offline   Reply With Quote

Old   August 9, 2016, 11:19
Default
  #5
New Member
 
Manm
Join Date: Apr 2015
Posts: 16
Rep Power: 11
Manm is on a distinguished road
Thank you.
So what can be the solution to this? Are there any specific commands I should run to update my shared library?
Manm is offline   Reply With Quote

Old   August 10, 2016, 02:45
Thumbs up
  #6
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 17
sahm is on a distinguished road
Hi everyone

I solved this issue by reinstalling the OpenFOAM. The OF version that I had at my home linux computer was installed using binary installer, but I removed it and installed it by compiling the source code in my home directory and now it's working.
__________________
SAHM
sahm is offline   Reply With Quote

Old   August 10, 2016, 17:01
Default
  #7
New Member
 
Manm
Join Date: Apr 2015
Posts: 16
Rep Power: 11
Manm is on a distinguished road
Hi,

I tried to reinstall the OpenFoam1.6-ext on my Ubuntu 14.04 after removing the earlier version. Still my case is giving the same error. I have attached the log file for reference. The only place where I could locate the word 'error' was around 2/3 of the log document as shown below:

-------------------------------------------
Make/linux64Gcc48DPOpt/MGridGenGAMGAgglomerate.o
MGridGenGAMGAgglomerate.C:36:25: fatal error: mgridgen.h: No such file or directory
compilation terminated.
MGridGenGAMGAgglomerate.dep:343: recipe for target 'Make/linux64Gcc48DPOpt/MGridGenGAMGAgglomerate.o' failed
make: *** [Make/linux64Gcc48DPOpt/MGridGenGAMGAgglomerate.o] Error 1
--------------------------------------------

Also, when I was at step 14 after completing step 13 of :
https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04

I saw that there was some error somewhat like: ...404 Error not found

I checked that I have enough space in the 'run' folder to run the case (51.5 GB). Any ideas what else can be looked into?

Man Mohan
Attached Files
File Type: gz logs.tar.gz (4.5 KB, 8 views)

Last edited by Manm; August 10, 2016 at 17:14. Reason: forgot attachement file
Manm is offline   Reply With Quote

Old   August 10, 2016, 20:46
Default
  #8
New Member
 
Manm
Join Date: Apr 2015
Posts: 16
Rep Power: 11
Manm is on a distinguished road
Ok. So I read through the log.Allmake document and figured out that the websites to certain packages download are not accesible. I also tried to open the links directly from the browser but the pages didn't open up。Find attached file.

Following two package pages did not connect:

1. ParMGridGen-1.0

http://www.mgnet.org/mgnet/Codes/par...Gen-1.0.tar.gz


2. Libccmio-2.6.1

http://portal.nersc.gov/svn/visit/ta...o-2.6.1.tar.gz

A few days back I had installed OF 1.6-extend on my laptop and it had all gone smoothly. Now not working on my lab computer. Any resolution to that?
Attached Files
File Type: docx ThirdParty error.docx (4.4 KB, 7 views)

Last edited by Manm; August 13, 2016 at 10:08.
Manm is offline   Reply With Quote

Old   August 12, 2016, 22:56
Default
  #9
New Member
 
Manm
Join Date: Apr 2015
Posts: 16
Rep Power: 11
Manm is on a distinguished road
Well, I thought the Thirdparty server was down and after multiple trials it still didnt work.So, instead I copied all the files from the ThirdParty folder from my working OpenFoam1.6-ext computer and transferred it to my system's ThirdParty folder.

I then ran the installation instructions from step 15 onwards:

https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04

It worked but gave some errors in the log file. When I ran cavity tutorial on icoFoam it ran fine. But when I ran my code it again gave the error:
-------------
new cannot satisfy memory request.
This does not necessarily mean you have run out of virtual memory.
It could be due to a stack violation caused by e.g. bad use of pointers or an out of date shared library
Aborted (core dumped)
-------------

Any inputs?
Manm is offline   Reply With Quote

Old   August 13, 2016, 05:42
Default
  #10
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
If you copy some pre-compiled stuff to another machine this can cause problems if the libraries are not compatible or you use other versions of other third-party stuff. You should really compile from scratch (Foam + ThirdParty). Nowadays, this only takes 30 - 60 minutes.
reza2031 likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   August 13, 2016, 09:48
Default
  #11
New Member
 
Manm
Join Date: Apr 2015
Posts: 16
Rep Power: 11
Manm is on a distinguished road
Thank you Tobi. I agree. I have tried to install from scratch many times by now but some of the ThirdParty packages as stated in my previous comments are not getting installed so tried this way.
Manm is offline   Reply With Quote

Old   August 13, 2016, 09:53
Default
  #12
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

well there are a lot of documentation available how to install foam. For me it is like preparing my favorite food ... there is nothing special

The stuff that you posted is HTML code, so I dont know where it belongs to. Never saw HTML while foam was compiling. Further question. Why you want to compile 1.6?

The error here:
Code:
Make/linux64Gcc48DPOpt/MGridGenGAMGAgglomerate.o
MGridGenGAMGAgglomerate.C:36:25: fatal error: mgridgen.h: No such file or directory
compilation terminated.
MGridGenGAMGAgglomerate.dep:343: recipe for target 'Make/linux64Gcc48DPOpt/MGridGenGAMGAgglomerate.o' failed
make: *** [Make/linux64Gcc48DPOpt/MGridGenGAMGAgglomerate.o] Error 1
Just tell you that MGridGenGAMGAgglomerate include a header that is not found. So there should be a problem with your foam stuff.
Remove everything, clone it again and make a clean compilation.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   August 13, 2016, 10:04
Default
  #13
New Member
 
Manm
Join Date: Apr 2015
Posts: 16
Rep Power: 11
Manm is on a distinguished road
I didnt realize I had posted the HTML text. The inaccesible packages are in the same post attached as a .docx file.

For the case which I want to run the solver was written by my colleague and he said it will not run on other Opemfoam versions. So, I didnt try to run it on others.
Manm is offline   Reply With Quote

Old   August 13, 2016, 10:10
Default
  #14
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Okay, if it is written in 1.6 it will definitely not compile with the newer version. However, it should work:

Code:
git clone git://git.code.sf.net/p/openfoam-extend/OpenFOAM-1.6-ext openfoam-extend-OpenFOAM-1.6-ext
Clone it, re-setup the .bashrc correct. Load the FOAM variables and compile:
Code:
./Allwmake > log 2&>1
Make sure the pre-requirements are installed on your system.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   August 13, 2016, 10:17
Default
  #15
New Member
 
Manm
Join Date: Apr 2015
Posts: 16
Rep Power: 11
Manm is on a distinguished road
Thanks.
Sure will try reinstalling again from scratch though I have done it many times by now.
Manm is offline   Reply With Quote

Old   August 19, 2016, 16:27
Default
  #16
New Member
 
Manm
Join Date: Apr 2015
Posts: 16
Rep Power: 11
Manm is on a distinguished road
Ok I think I figure out what is the issue. My Ubuntu version is 15.10 while the openfoam 1.6-ext version installation instructions are meant only upto Ubuntu 14 on this link:

https://openfoamwiki.net/index.php/I...1.6-ext/Ubuntu

I had reinstalled Ubuntu 14 on my laptop after uninstalling Ubuntu 16 and the OF 1.6-ext and it had started working, so I am sure this is the current issue. However, I cannot uninstall the current Ubuntu 15.10 and set up Ubuntu 14 now on my lab computer because it is a shared system with other users having their own desktops to work on.

Are there specific commands I need to execute apart from the instructions in the above link for Ubuntu 14.04 which can help me get OF 1.6-ext up and running on Ubuntu 15.10?


Thank you.
Manm is offline   Reply With Quote

Old   August 19, 2016, 19:51
Default
  #17
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
No there are no further steps to do. Can you please give us the complete log file of your compilation?
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   August 23, 2016, 13:40
Default
  #18
New Member
 
Manm
Join Date: Apr 2015
Posts: 16
Rep Power: 11
Manm is on a distinguished road
Hi, sorry for the delay.

Please find attached the log file after completing all the steps of installing OpenFoam 1.6-ext.

Also find attached the error portion from the log file after running the step 13.

Thank you.
Attached Files
File Type: gz logs.tar.gz (4.5 KB, 4 views)
File Type: docx ThirdParty error.docx (4.4 KB, 14 views)
Manm is offline   Reply With Quote

Old   May 29, 2024, 12:13
Default Just Copy the folder
  #19
New Member
 
fardin
Join Date: Nov 2018
Posts: 6
Rep Power: 8
fardin.sh is on a distinguished road
Dear All,


I had same problem as well,

But as soon as I changed the location of the files, it disappeared.
fardin.sh is offline   Reply With Quote

Reply

Tags
error, memory


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
new cannot satisfy memory request openFoam!! what is the meaning of this? adambarfi OpenFOAM Running, Solving & CFD 0 November 2, 2013 14:57
Lenovo C30 memory configuration and discussions with Lenovo matthewe Hardware 3 October 17, 2013 11:23
[OpenFOAM] Saving ParaFoam views and case sail ParaView 9 November 25, 2011 16:46
error message "new cannot satisfy memory request" kumar OpenFOAM Post-Processing 1 January 21, 2010 09:11
IcoDyMFoam New cannot satisfy memory request yuhai OpenFOAM Running, Solving & CFD 2 December 10, 2008 06:15


All times are GMT -4. The time now is 11:14.