libigl / libigl-python-bindings

libigl python bindings
https://libigl.github.io/libigl-python-bindings/
GNU General Public License v3.0
314 stars 61 forks source link

Fast winding number terminates with some meshes / segfaults #198

Open mark-at-hypothetic opened 1 year ago

mark-at-hypothetic commented 1 year ago

Hi! I'm using fast_winding_number_for_meshes(v: array, f: array, q: array) Mostly it works, but with some variations of v and f, the code crashes, and gives C++ errors without a clear stack trace. Just

terminate called without an active exception
terminate called recursively
terminate called recursively
[1]    697800 IOT instruction (core dumped)

q is of size 256x256x256x3 The problem is sporadic for different meshes, and haven't found what exactly triggers a crash, just that it's reproducible with the same mesh, and that this error doesn't happen when simplifying the mesh to have less vertices.

using python 3.10, and libigl 2.4.1

alecjacobson commented 1 year ago

Could you please upload the problematic input?