Paraview version update errors
Hi Foamers,
This is one of my first posts so please be gentle :). I have been using openfoam V2.1.1 with paraview 3.12 for a while on ubuntu 12.04 without any problems. Recently I started experiencing severe memory leaks with paraview, each time I changed the timestep and re-rendered the graph the memory use would increase but it would never be released again. After some digging around I thought the problem may have been related to a known issue in paraview 3.12 so I attempted to update to 3.98.1 and this turned out to be a tricky job. Initially I tried to install the binary packs and just add a comment to the bashrc file to update the location but this gave a bunch of errors so I downloaded the source and attempted to build myself. After a bit of fumbling, I managed to build 3.98.1 and added the following to the bashrc file as per the message at the end of the build script: Code:
export ParaView_MAJOR=3.98 Code:
FATAL ERROR: ParaView reader module libraries do not exist Code:
dp1212@dp1212-T5500:/opt/openfoam211/applications/utilities/postProcessing/graphics/PV3Readers$ ./Allwmake To test if paraview is actually working, I run 'paraview' from the terminal and it appears to start up ok but throws an error when loading a .foam file as below (the example below is for loading gamma from a multiphase problem but the same occurs for k, rho files etc): Code:
ERROR: In /opt/ThirdParty-2.1.1/ParaView-3.98.1/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 6478 Thanks |
Greetings Dan,
Nice! You've managed to build ParaView 3.98 from source code! That is quite a feat, specially if you haven't found some of the posts here on the forum explaining how that can be done ;) Let me address the missing details in a bullet point list:
Bruno |
Hi Bruno,
Thanks for getting back to me so quickly. I went through the links you supplied and tried to understand what was happening with the following results: - tried to build the Pv3readers after editing the vtkPV3FoamReader.h, vtkPV3blockMeshReader.h and vtkPV3FoamReader.cxx files. This seemed fine as it is using the new export class rather than the IO_Export class and removing the empty array pass through since the new pipeline does not use it any more. I couldn't find out where the option to turn on the paraview install development files was though. From the opt/ThirdParty-2.1.1 directory I then did ./Allclean and ./makeParaview version 3.98.1. Everything seemed to compile ok. - Next went and edited the bashrc file in the $WM_Project_dir and /bin paraFoam scripts as per #8 and #9. Trying to run paraFoam from the terminal still gives me the classic error Code:
dp1212@dp1212-T5500:~/OpenFOAM/dp1212-2.1.1/run/tutorials/multiphase/cavitatingFoam/les/Mexus2phaseLP$ paraFoam -builtin Code:
dp1212@dp1212-T5500:~/OpenFOAM/dp1212-2.1.1/run/tutorials/multiphase/cavitatingFoam/les/Mexus2phaseLP$ paraview Are the two issues related? Ie is the non digit error related to the build process or just the foam reader build error? For info, here is the output from trying to build the readers: Code:
dp1212@dp1212-T5500:~/OpenFOAM/dp1212-2.1.1/run/tutorials/multiphase/cavitatingFoam/les/Mexus2phaseLP$ sudo su -c "source /opt/openfoam211/etc/bashrc; bash" Dan Late addition: I tried to get on with some work and fired up the previously working version of 3.12.0 and now it is broken as well! Code:
p, li { white-space: pre-wrap; } ERROR: In /home/opencfd/OpenFOAM/ThirdParty-2.1.x/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481 Purged the packages and reinstalled 3.12 and OF211 from apt and got back to a working system under 3.12. Using Brunos blog page from http://www.cfd-online.com/Forums/blo...-openfoam.html I removed the contents of the $ParaView_DIR folder and replaced it with the downloaded binaries. After some careful testing in some fresh terminals, it turns out that this only works when steps #8 and #9 are omitted. Paraview 3.98.1 now starts happily but is still giving the same error when attempting to load from a gamma file from a multiphase problem: Code:
ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 6478 |
Tried paraview 4.0 and similarly to last update, only works when omitting steps #8 and #9 and comes up
Code:
ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 6478 Code:
ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Common/DataModel/vtkDataObjectTree.cxx, line 377 |
Hi Dan,
Sorry, I've been a bit busy and I was thinking about helping you by writing down some instructions to rely on using Ubuntu's own ParaView builds... But I've ended up reviewing the last two posts and came to the conclusion that the best approach right now would be to diagnose the problem at hand. Therefore:
edit: Never mind, I've figured it out. The same problem occurs with the "throttle*" tutorials. The dimensions defined most of the field files are incomplete; for e.g. in the file "0/gamma": Code:
dimensions [0 0 0 0 0]; Code:
dimensions [0 0 0 0 0 0 0]; edit 2: Reported in the bug tracker: http://www.openfoam.org/mantisbt/view.php?id=1123 Best regards, Bruno |
Hi Bruno,
Many thanks for sorting this one out, I had not ever thought to look into the dimension specs for gamma and other files. For reference, I still had some consistent warnings come up using paraview 4.0 but 3.98.1 works very well for me, the original memory leak problem from 3.12 seems to have been completely resolved. Dan |
All times are GMT -4. The time now is 02:27. |