Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off/catch VTK debug statements #152

Open
durack1 opened this issue Mar 22, 2017 · 6 comments
Open

Turn off/catch VTK debug statements #152

durack1 opened this issue Mar 22, 2017 · 6 comments
Assignees
Labels
enhancement low Low Priority bug (but not enhancement)
Milestone

Comments

@durack1
Copy link
Member

durack1 commented Mar 22, 2017

@doutriaux1 @danlipsa FYI, with missing (no data) I am getting the following error:

Warning: In /export/doutriaux1/anaconda2/conda-bld/vtk-cdat_1479229648549/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 166
vtkDataSetSurfaceFilter (0x3043b80): Number of cells is zero, no data to process.

For the release it would be great to turn these useless debug statements off (as they are pointing to the conda-bld directory, and have nothing to do with the local conda-installed environment), or even better catch them with a better, more meaningful warning for users.

The path above does nothing more to confuse the hell out of people, as /export/doutriaux1/.. is very unlikely going to exist on their systems

@durack1 durack1 changed the title Turn off/catch debug statements Turn off/catch VTK debug statements Mar 22, 2017
@danlipsa
Copy link
Contributor

@durack1 What script are you using to get this?

@durack1
Copy link
Member Author

durack1 commented Mar 23, 2017

@danlipsa I can wrap this and the data up for you and send through if you like?

@danlipsa
Copy link
Contributor

@durack1 Yes, please do that. If it fits, it would be best to attach the data and the script to this issue. Thanks.

@durack1
Copy link
Member Author

durack1 commented Mar 23, 2017

@danlipsa the attached (below) should get you the error/warning:

Warning: In /export/doutriaux1/miniconda2/conda-bld/vtk-cdat_1489522072123/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 167
vtkDataSetSurfaceFilter (0x39299b0): Number of cells is zero, no data to process.

You'll need to create a PMP install, the conda command-line will generate this:

conda create -n PMP-noxNightly2VTKgt2017p3 -c conda-forge -c uvcdat/label/nightly -c uvcdat -c pcmdi/label/nightly pcmdi_metrics-nox "vtk-cdat-nox>7.1.0.2017.3"

170323_VTK-CWarningNumberOfCellsIsZero.zip

Unwrapping the archive above and executing portrait-4seas-demo.py should give you the identical warning.. This is on a linux-64 (redhat6) machine

@durack1
Copy link
Member Author

durack1 commented Apr 14, 2017

@doutriaux1 @danlipsa I am still getting these with vcs=2017.4.13.45a557da7342271fffe9e78821b1515568c264dd-0 and vtk-cdat=7.1.0.2.8-py27_2:

Python 2.7.13 | packaged by conda-forge | (default, Mar 20 2017, 14:04:17)
Type "copyright", "credits" or "license" for more information.
IPython 5.3.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.
In [1]: import vcs
In [2]: f = 'CMIP6/input4MIPs/PCMDI/SSTsAndSeaIce/CMIP/fx/ocean/PCMDI-AMIP-1-1-2/sftof/gn/v20170414/sftof_Ofx_SSTsAndSeaIce_CMIP_PCMDI-A
   ...: MIP-1-1-2_gn.nc'
In [3]: import cdms2 as cdm
In [4]: fH = cdm.open(f)
In [5]: var = fH('sftof')
In [6]: x = vcs.init()
In [7]: x.meshfill(var)
Warning: In /export/doutriaux1/anaconda2/conda-bld/vtk-cdat_1479230506328/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 166
vtkDataSetSurfaceFilter (0x3e6b150): Number of cells is zero, no data to process.
Warning: In /export/doutriaux1/anaconda2/conda-bld/vtk-cdat_1479230506328/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 166
vtkDataSetSurfaceFilter (0x4105e60): Number of cells is zero, no data to process.
Warning: In /export/doutriaux1/anaconda2/conda-bld/vtk-cdat_1479230506328/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 166
vtkDataSetSurfaceFilter (0x4111eb0): Number of cells is zero, no data to process.
Warning: In /export/doutriaux1/anaconda2/conda-bld/vtk-cdat_1479230506328/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 166
vtkDataSetSurfaceFilter (0x3e90fb0): Number of cells is zero, no data to process.
Warning: In /export/doutriaux1/anaconda2/conda-bld/vtk-cdat_1479230506328/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 166
vtkDataSetSurfaceFilter (0x3e9cf30): Number of cells is zero, no data to process.
Warning: In /export/doutriaux1/anaconda2/conda-bld/vtk-cdat_1479230506328/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 166
vtkDataSetSurfaceFilter (0x3ea90b0): Number of cells is zero, no data to process.
Warning: In /export/doutriaux1/anaconda2/conda-bld/vtk-cdat_1479230506328/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 166
vtkDataSetSurfaceFilter (0x3ecbf70): Number of cells is zero, no data to process.
Warning: In /export/doutriaux1/anaconda2/conda-bld/vtk-cdat_1479230506328/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 166
vtkDataSetSurfaceFilter (0x3ed7f10): Number of cells is zero, no data to process.
Out[7]: <vcs.displayplot.Dp at 0x7fef1b665e88>
In [8]: x.close()

@durack1
Copy link
Member Author

durack1 commented Apr 20, 2017

@doutriaux1 @danlipsa this is still an issue in vtk-cdat-vtk-cdat-7.1.0.2.8-py27_2 and vcs-vcs-2017.4.14.bb3046c4e649eac3bade859046d56c12eaf38644-0:

In [9]: x.meshfill(basinmask3)
/export/durack1/anaconda2/envs/uvcdatNightly/lib/python2.7/site-packages/numpy/ma/core.py:3337: MaskedArrayFutureWarning: setting an item on a masked array which has a shared mask will not copy the mask and also change the original mask array in the future.
Check the NumPy 1.11 release notes for more information.
  self.__setitem__(slice(i, j), value)
Warning: In /export/doutriaux1/anaconda2/conda-bld/vtk-cdat_1479230506328/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 166
vtkDataSetSurfaceFilter (0x99b2400): Number of cells is zero, no data to process.

Warning: In /export/doutriaux1/anaconda2/conda-bld/vtk-cdat_1479230506328/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 166
vtkDataSetSurfaceFilter (0x7efcbe0): Number of cells is zero, no data to process.

Warning: In /export/doutriaux1/anaconda2/conda-bld/vtk-cdat_1479230506328/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 166
vtkDataSetSurfaceFilter (0x92a8790): Number of cells is zero, no data to process.

Warning: In /export/doutriaux1/anaconda2/conda-bld/vtk-cdat_1479230506328/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 166
vtkDataSetSurfaceFilter (0x5636e40): Number of cells is zero, no data to process.

Warning: In /export/doutriaux1/anaconda2/conda-bld/vtk-cdat_1479230506328/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 166
vtkDataSetSurfaceFilter (0x12e1fe70): Number of cells is zero, no data to process.

Warning: In /export/doutriaux1/anaconda2/conda-bld/vtk-cdat_1479230506328/work/Filters/Geometry/vtkDataSetSurfaceFilter.cxx, line 166
vtkDataSetSurfaceFilter (0x12e2c110): Number of cells is zero, no data to process.

@doutriaux1 doutriaux1 modified the milestone: 3.0 May 5, 2017
@doutriaux1 doutriaux1 modified the milestones: 3.0, post 3.0 Mar 29, 2018
@doutriaux1 doutriaux1 modified the milestones: 8.1, 8.2 Mar 27, 2019
@doutriaux1 doutriaux1 added enhancement low Low Priority bug (but not enhancement) labels Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement low Low Priority bug (but not enhancement)
Projects
None yet
Development

No branches or pull requests

4 participants