View Issue Details

IDProjectCategoryView StatusLast Update
0002779ThirdPartyPatchpublic2017-12-04 19:30
Reporterwyldckat Assigned Tochris  
Status closedResolutionfixed 
Summary0002779: Very annoying warning message in ParaView 5.4.0 when built with OpenGL render
DescriptionThe following warning message pops up whenever using ParaView 5.4.0 provided with the Deb packages or when built from source code with the option "-rendering OpenGL" via 'makeParaView':

    Generic Warning: In /home/ofuser/OpenFOAM/ThirdParty-5.x/ParaView-5.4.0/VTK/Rendering/Volume/vtkVolumeTextureMapper3D.cxx, line 680
    vtkVolumeTextureMapper3D::vtkVolumeTextureMapper3D was deprecated for VTK 7.0 and will be removed in a future version.

    Generic Warning: In /home/ofuser/OpenFOAM/ThirdParty-5.x/ParaView-5.4.0/VTK/Rendering/VolumeOpenGL/vtkOpenGLVolumeTextureMapper3D.cxx, line 57
    vtkOpenGLVolumeTextureMapper3D::vtkOpenGLVolumeTextureMapper3D was deprecated for VTK 7.0 and will be removed in a future version.

If this message were to appear only once for each time we open a case with 'paraFoam', that would be something that we can get used to eventually... however, this warning message appears both after the first time with click on the 'Apply' button, but also when we add+apply some types of filters to the pipeline associated to the opened case.

Attached are the following files that fix this issue (at least for now):

  - 'proposition_v1.patch' - shows the change needed for using the option "VTK_LEGACY_SILENT=ON" to build VTK, so that the warning is omitted, as instructed here:

  - 'ParaViewFunctions.v1' - Has the complete file for 'ThirdParty-5.x/etc/tools/ParaViewFunctions'.

I've tested this with success on CentOS 6.9 with OpenFOAM 5.x.
I haven't checked yet if this patch applies cleanly on 'ThirdParty-dev'.
Steps To Reproduce1. Use the pre-built ParaView that comes with the Deb packages for OpenFOAM 5 or OpenFOAM-dev, or use a custom build that uses the option "-rendering OpenGL".

2. Run paraFoam in a case with 3D data (mostly any case).

3. Click on the 'Apply' button.

4. The aforementioned warning message will appear.
Additional InformationThis was first reported on the forum at CFD-Online early September: - but I only picked up on this on the 1st of November (where/when I asked that someone could report this)... but it seems like nobody did so since then.
TagsNo tags attached.



2017-12-04 11:00


proposition_v1.patch (650 bytes)   
diff --git a/etc/tools/ParaViewFunctions b/etc/tools/ParaViewFunctions
index 3f5ceea..da0585f 100644
--- a/etc/tools/ParaViewFunctions
+++ b/etc/tools/ParaViewFunctions
@@ -413,7 +413,12 @@ configRenderingBackend()
     # Choose the rendering engine
     if [ -n "${RENDERING_BACKEND}" ]
+        if [ "${RENDERING_BACKEND}" = "OpenGL" ]
+        then
+            addCMakeVariable  "VTK_LEGACY_SILENT=ON"
+        fi
         usage "*** Error: No rendering backend is defined"
proposition_v1.patch (650 bytes)   


2017-12-04 11:01


ParaViewFunctions.v1 (15,694 bytes)


2017-12-04 11:03

updater   ~0009128

@Chris: If possible, after this patch is applied, please rebuild the ParaView 5.4.0 version that comes in Deb packages... or perhaps even take the opportunity to upgrade to ParaView 5.4.1?

I ask this given that this issue affects the ParaView build provided via Deb packages for OpenFOAM 5 and dev.


2017-12-04 12:36

manager   ~0009129

I have applied the patch:

OpenFOAM-5.x commit 62703a4b9737723b66302563811289b66b43691f
OpenFOAM-dev commit eab4ace8208411f222a4b5cd743c15e71c9cc3cf


2017-12-04 19:30

manager   ~0009130

I have uploaded an upgrade for the paraviewopenfoam54 pack for Ubuntu 14.04, 16.04, 17.04 and 17.10. Tested on Ubuntu 16.04 - all fine.

Issue History

Date Modified Username Field Change
2017-12-04 11:00 wyldckat New Issue
2017-12-04 11:00 wyldckat File Added: proposition_v1.patch
2017-12-04 11:01 wyldckat File Added: ParaViewFunctions.v1
2017-12-04 11:03 wyldckat Note Added: 0009128
2017-12-04 12:36 henry Note Added: 0009129
2017-12-04 19:30 chris Note Added: 0009130
2017-12-04 19:30 chris Assigned To => chris
2017-12-04 19:30 chris Status new => closed
2017-12-04 19:30 chris Resolution open => fixed