cnr-isti-vclab/vcglib

vcg::tri::UpdateTopology crash in debug, but not release

Cervidellus opened this issue · 1 comments

Compiling on windows 10 with mingw 64 bit in qt creator, qt6.

After successfully loading a .obj mesh, vcg::tri::UpdateTopology::FaceFace(mesh); crashes in debug mode, but does not in release.

It appears to fail at line 430 of component_ocf.h:
assert((*this).Base().FFAdjacencyEnabled);
I confirm that for the mesh FFADjacency is enabled before it is called. (though I believe that the assert is checking if it is enabled for a particular face?)

Attached is a zip file containing a qt project(including an example mesh that will fail it).
CleanupTry2.zip

Closing this. As far as I can tell, I had a strange include in an accessory file that is not yet used (cleanup.cpp) and I intend to fill out later, that could have caused a namespace clash.. maybe debug compiling handled it differently from release? As far as I can tell it works now and is not a vcglib problem, so I am closing.