Comments (8)
Cannot reproduce on OSX. Can reproduce on Linux Ubuntu. Investigating.
from mayavi.
Currently building VTK to debug the problem. Will leave pending until done and move to something else.
from mayavi.
The freeze seems to happen in int vtkBandedPolyDataContourFilter::RequestData
. Very substantial routine, so it will take some time.
from mayavi.
Apparently, it is stuck in this part of the RequestData
for ( mR=idx, intersectionPoint=0; !intersectionPoint; )
{
numPointsToAdd++;
mR = (mR + 1) % numFullPts;
if ( isContourValue[mR] && s[mR] != s[idx] ) intersectionPoint = 1;
}
never finding an intersection point, so the loop becomes infinite.
from mayavi.
I start to think that nans are not the reason. do you get reasonable contour curves if you remove the nans, or do they look tangled and broken?
from mayavi.
managed to reduce the dataset to the minimalistic
from numpy import array, nan
from mayavi import mlab
z=array([
[ -2.0, 4.7, 4.1],
[ 23.9, 27.4, nan],
[ 28.2, 26.6, nan],
])
mlab.surf(z)
mlab.show()
both the negative and the two nans seem to be important to obtain the problem.
In any case, I am confident it's a vtk problem. I will write a pure vtk example and then submit it to the vtk bug tracker. I am unsure I can do much more than this.
from mayavi.
I give up on this. I wanted to create the exact vtk pipeline that generates the bug to post a bug report to vtk, but I can't find a way to extract the runtime generated vtk pipeline from mayavi, short of going low-level.
I will do a bug report anyway, and I hope they can come up with a better understanding of what happens at low level. Will update this comment with a link to the vtk bug report.
from mayavi.
Reported here
http://www.vtk.org/Bug/view.php?id=16065
@prabhuramachandran maybe you have some useful hints about the mayavi pipeline that might help me in providing a "working" vtk case.
from mayavi.
Related Issues (20)
- Animation freezes unexpectedly
- Install with pip HOT 9
- How to volume render a transparent space with mlab.pipleine.volume() and mlab.pipleine.scalar_field() as a data source?? HOT 1
- Error with VTK 9.3.0 HOT 3
- Failed Cython compilation (Cython > 3.0) HOT 2
- mlab.savefig saves wrong resolution (for first two images in loop)
- Potential issue with upcoming changes in VTK
- itkwidgets error in Jupyter Notebook
- Update a mayavi plot programmatically
- Release? HOT 6
- Warnings reported in the Mayavi testsuite
- Warnings and errors reported by the tvtk testsuite
- ImportError: Could not import backend for traitsui.
- Moving the cursor into a mayavi window causes a crash
- pip install not working HOT 2
- [regression in 4.8.2] TVTK not built properly. HOT 1
- Mayavi example protein.py not working, plus the solution
- Scalar filed is not volume rendered with a colormap HOT 1
- GUI stutters when running an animation
- Problem getting started with Mayavi HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mayavi.