CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] ParaFoam or Praview segmentation fault only when I have a lib linked in controlDict

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 24, 2015, 05:22
Default ParaFoam or Praview segmentation fault only when I have a lib linked in controlDict
  #1
New Member
 
Luca Franceschini
Join Date: Aug 2012
Posts: 29
Rep Power: 13
Luchini is on a distinguished road
Dear All,

My paraFoam/paraview crashes when i try to open a case with a specific library linked in the case controlDict.
If i comment the link in controlDict i have no problems paraFoam works perfectely.

If i leave the link parafoam (or paraview) crashes and i receive the message attached?

What do you think it is the problem?

Best regards,
and thank you for your ideas.





IN paraFoam:

Code:
--> FOAM Warning : 
    From function dlOpen(const fileName&, const bool)
    in file POSIX.C at line 1179
    dlopen error : /home/XXX/platforms/linux64GccDPOpt/lib/libYYY.so: undefined symbol: _ZTIN4Foam17psiChemistryModelE
--> FOAM Warning : 
    From function dlLibraryTable::open(const fileName&, const bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
    could not load "/home/XXX/platforms/linux64GccDPOpt/lib/libYYY.so"
IN ParaView after the previous message i get also:

Code:
ERROR: In /home/YYY/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/vtkPV4FoamReader.cxx, line 216
vtkPV4FoamReader (0x2a20130): could not find valid OpenFOAM mesh


ERROR: In /home/ZZZ/ThirdParty-2.3.x/ParaView-4.1.0/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 754
vtkPVCompositeDataPipeline (0x4456dd0): Algorithm vtkPV4FoamReader(0x2a20130) returned failure for request: vtkInformation (0x44a4050)
  Debug: Off
  Modified Time: 90377
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1

Last edited by wyldckat; August 10, 2015 at 09:37. Reason: Added [CODE][/CODE] markers
Luchini is offline   Reply With Quote

Old   August 10, 2015, 09:41
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer:
  • The first error has to do with missing libraries that also need to be loaded. Keep in mind that your custom library will usually be loaded along with your solver, which already depends on other libraries. But the official ".OpenFOAM" plug-in reader for ParaView does not load all libraries that OpenFOAM has got, therefore you need to add the missing libraries to "libs" in "system/controlDict", such as... let me search with this command:
    Code:
    grep "_ZTIN4Foam17psiChemistryModelE" $FOAM_LIBBIN/*.so
    So it's either "libchemistryModel.so" or "libcombustionModels.so".
  • The second issue is most likely because the mesh doesn't exist yet, or the ".OpenFOAM" file that was opened is in the wrong folder?
Luchini and crubio.abujas like this.
wyldckat is offline   Reply With Quote

Old   August 10, 2015, 12:50
Default
  #3
New Member
 
Luca Franceschini
Join Date: Aug 2012
Posts: 29
Rep Power: 13
Luchini is on a distinguished road
Thank you a lot Bruno,

you are correct. The missing library was libcombustionModels.so.
Once it was added to controlDict the problem disappeared.

Said that, to solve the problem at the source, i have added the link to the libcombustionModels directly to the compilation of the original library, libYYY.so.

Probably you were correct also for the second error message, since the case is a multiregion, thus the actual folders are one directory up.


Once again, bless you.
Problem Solved
Thank you
Luchini is offline   Reply With Quote

Reply


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
[OpenFOAM] paraview parafoam segmentation fault (core dumped) RicardoLB ParaView 3 April 28, 2020 20:07
[OpenFOAM] Segmentation fault when using Glyph from Custom Source Filter in ParaFoam jstol065 ParaView 1 September 20, 2015 22:07
[OpenFOAM] ParaFoam Segmentation Fault dancfd ParaView 1 July 7, 2014 20:38
paraFoam, Segmentation fault Fed11 OpenFOAM Bugs 3 July 4, 2011 19:04
[OpenFOAM] Segmentation fault with paraFoam and paraview 3.6.1 on Fedora 11 32 and 64 bit nanes ParaView 2 September 11, 2009 09:12


All times are GMT -4. The time now is 10:16.