Giter Club home page Giter Club logo

Comments (8)

stefanoborini avatar stefanoborini commented on July 21, 2024

Cannot reproduce on OSX. Can reproduce on Linux Ubuntu. Investigating.

from mayavi.

stefanoborini avatar stefanoborini commented on July 21, 2024

Currently building VTK to debug the problem. Will leave pending until done and move to something else.

from mayavi.

stefanoborini avatar stefanoborini commented on July 21, 2024

The freeze seems to happen in int vtkBandedPolyDataContourFilter::RequestData. Very substantial routine, so it will take some time.

from mayavi.

stefanoborini avatar stefanoborini commented on July 21, 2024

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.

stefanoborini avatar stefanoborini commented on July 21, 2024

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.

stefanoborini avatar stefanoborini commented on July 21, 2024

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.

stefanoborini avatar stefanoborini commented on July 21, 2024

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.

stefanoborini avatar stefanoborini commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.