CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] addr2line failed error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2019, 11:00
Question addr2line failed error
  #1
Member
 
Owais Shabbir
Join Date: May 2019
Posts: 48
Rep Power: 6
Owais Shabbir is on a distinguished road
Hi All,


I was trying to mesh two bodies over which the air will flow externally bounded by a box defined in blockMeshDict.

While meshing after the 2nd iteration of the surface refinement it shows the following error: (remaining error included in the photos)


Foam::error:rintStack(Foam::Ostream&) [1] ...[3] ...[3]... addr2line failed


Further Details: I have also run this with single processor and it just crashes down.

I have seen this problem on the community forum page describing it as bad maths and it is always linked to the solver not the snappyHexMesh. I would highly appreciate it if anyone could explain me why this error is generated and how to tackle this problem.

Thanks
Attached Images
File Type: jpg 1.jpg (94.8 KB, 32 views)
File Type: jpg 2.jpg (93.9 KB, 25 views)
File Type: jpg 3.jpg (180.6 KB, 13 views)
File Type: jpg 4.jpg (166.7 KB, 11 views)
File Type: jpg 5.jpg (126.4 KB, 11 views)
Owais Shabbir is offline   Reply With Quote

Old   June 11, 2019, 11:04
Default Files
  #2
Member
 
Owais Shabbir
Join Date: May 2019
Posts: 48
Rep Power: 6
Owais Shabbir is on a distinguished road
Here is the blockMesh and SnappyHexMeshDict files.


If anyone could look into it, it will be a massive help.



Thanks again
Attached Files
File Type: c blockMeshDict.c (1.6 KB, 4 views)
File Type: c snappyHexMeshDict.c (8.6 KB, 2 views)
File Type: c surfaceFeatureExtractDict.c (1.1 KB, 2 views)
Owais Shabbir is offline   Reply With Quote

Old   July 22, 2019, 08:45
Default
  #3
New Member
 
Akanksha Rawat
Join Date: Apr 2014
Posts: 29
Rep Power: 11
Akanksha90 is on a distinguished road
Hi,
I also have similar issue and the funny Thing is with the same Setting on one Computer the SHM runs and meshes , whereas in other Computer that gives me this error " add2rline".

Have u found any solution yet?
Akanksha90 is offline   Reply With Quote

Old   July 22, 2019, 09:58
Default addr2line
  #4
Member
 
Owais Shabbir
Join Date: May 2019
Posts: 48
Rep Power: 6
Owais Shabbir is on a distinguished road
Hi,


I have not found any solution to it. But my meshing works if I use lower values of refinementSurfaces level in SHM.

if I keep mine at any value above (3 3), I get this error.

I think it is because of the computers low computational power because my geometry is quite complicated. I don't have access to any strong computer so I continue with the above mentioned values.

Hope this helps


OS
Owais Shabbir is offline   Reply With Quote

Old   July 23, 2019, 03:52
Default
  #5
Member
 
Owais Shabbir
Join Date: May 2019
Posts: 48
Rep Power: 6
Owais Shabbir is on a distinguished road
Hi Akanksha,


BTW which OpenFoam version are you using on both PCs?
Owais Shabbir is offline   Reply With Quote

Old   July 23, 2019, 06:29
Default
  #6
New Member
 
Akanksha Rawat
Join Date: Apr 2014
Posts: 29
Rep Power: 11
Akanksha90 is on a distinguished road
Hi Owais,

Thank you for your Response. I am using V1812.

Well i understand what you mean by decreasing the refinement Level. It does make sense, when we have a finer blockMesh.
could you please tell me, how fine did you mesh your block?

Please correct me If I am wrong on this part - Our geometry mesh cell size are dependent upon the cell size of the block. So we Need to make a fine mesh with block first and then use the snappyhexdict for further refinement on surfaces or regions?

I am new with snappyhex and still in the understanding Phase.
Akanksha90 is offline   Reply With Quote

Old   July 23, 2019, 06:51
Default
  #7
Member
 
Owais Shabbir
Join Date: May 2019
Posts: 48
Rep Power: 6
Owais Shabbir is on a distinguished road
Hi,


I used (60 60 50) with simpleGrading (1 1 1).


I have even tried with (200 200 200) as well but didn't work.



I will give it a try with (5000 5000 5000) and see if it is the case.



Yesterday, I asked a colleague to run it on the cluster. And the problem was still there, so as i said before it might be the computational power that is missing its for sure not the case.



I even simplified my geometry to the maximum I could but still the same error showed up.



Best Regards
OS
Owais Shabbir is offline   Reply With Quote

Old   July 23, 2019, 06:56
Default
  #8
New Member
 
Akanksha Rawat
Join Date: Apr 2014
Posts: 29
Rep Power: 11
Akanksha90 is on a distinguished road
Hi Owais,

I read somewhere, that addr2line error can also come when the binutils dev package is not updated. I have to try it and then i can be sure.
Because in my Computer with less cores the meshing works but with the same Setting the mesh does not run on the other Computer which is not connected to the Internet.

Could be possible, due to some packages which are outdated.
Akanksha90 is offline   Reply With Quote

Old   July 23, 2019, 07:09
Default
  #9
Member
 
Owais Shabbir
Join Date: May 2019
Posts: 48
Rep Power: 6
Owais Shabbir is on a distinguished road
Hi,


So i gave a shot with 500 500 500 BMDict and it gave and error of

'It could be due to a stack violation caused by e.g. bad use of pointers or an out of date shared library'



So may be you are heading in the right direction.
P.S. I am using OF6
Owais Shabbir is offline   Reply With Quote

Old   July 23, 2019, 15:42
Lightbulb Solution is here! :D
  #10
Member
 
Owais Shabbir
Join Date: May 2019
Posts: 48
Rep Power: 6
Owais Shabbir is on a distinguished road
Hi,

Good news. So i tried a different method this time. Before I used to follow the following commands:

Code:
blockMesh
surfaceFeatureExtract
decomposePar
mpirun -np 4 snappyHexMesh -overwrite -parallel > log.shm
reconstructParMesh -constant
But this time I made a change:
a) I turned on implicitFeatureSnap from SHM and the rest of them false.
> I did this because I learnt it is good when you don't have curvy features and geometry is easy to capture by it and works from my geometry.
>This helps and surfaceFeatureExtract cmd is not required anymore.

With this I have less number of bad cells from checkMesh but i wonder is it because I increased refinement or I used the implicitFeatureSnap option.

Best Regards,

OS

Last edited by Owais Shabbir; July 23, 2019 at 17:34.
Owais Shabbir is offline   Reply With Quote

Reply

Tags
addr2line failed, snappyhexmesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Foam::error::printStack(Foam::Ostream&) with simpleFoam -parallel U.Golling OpenFOAM Running, Solving & CFD 52 September 23, 2023 04:35
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 08:11
Errors in UDF shashank312 Fluent UDF and Scheme Programming 6 May 30, 2013 21:30
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 03:32


All times are GMT -4. The time now is 07:43.