You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MeshMatze
changed the title
load_new_mesh() breaks after generate_alpha_shape failing
BUG: generate_alpha_shape fails for high coords and leads to segmentation fault afterwards
Jul 25, 2024
When computing alpha shape on shapes with high coords, QHull (that is the library that pymeshlab uses for convex hull and related algorithms) fails with the error:
QH6229 qhull input error: 51 attempts to construct a convex hull with joggled input. Increase joggle above 'QJ0.038' or modify qh_JOGGLE... parameters in user_r.h
(the value I get is different, probably changes depending on the machine).
It would be nice to have the joggle parameter in qhull filters, although I am not sure that this would help in this case. I should do some test;
when QHull fails, meshlab (and pymeshlab) correctly throws an exception. Then, a segfault happens when another filter is run, even if a new MeshSet is created, and even if pymeshlab is reloaded using importlib!!!
This could be the same issue of segmentation fault on mac #399 (although I am not sure whether segmentation fault on mac #399 happens on any platform).
The crash could be caused by anything, and I am afraid I don't know how to debug, and therefore solve, this issue.
I have a set of clouds (saved in path in
ply
format) for which i want to generate the alpha shape.Unfortunately running
python3 -m test
failed withThe core dump was not expressiv, but i could create a readable core dump by running
gdb --args python3.9 test.py
,run
andbt
it says:I'm not really familiar with C++, that why i'm kinda stuck here.
I also tried reloading
pymeshlab
each iteration. Meaning i added:but that did not help either...
I would highly appreciate any help or a reasonable workaround for this. Thanks :-)
The text was updated successfully, but these errors were encountered: