neilmendoza / ofxCorkCsg

A constructive solid geometry (mesh boolean) addon for openFrameworks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crash on example-simple

ofZach opened this issue · comments

cool addon!

if I run example-simple and hit "2" I see this crash:

the  edge is 0x1030c5eb8,  0x0
   1
coordinates for triangles
the tri
[-22.4144,-50,-83.6516]
[-35.3553,-70.7107,-61.2372]
[-43.3013,-50,-75]
[9.29832e-06,-75,-75]
[-75,-75,-75]
[7.62939e-06,-7.39098e-06,-75]
ENSURE FAILED at ../../../addons/ofxCorkCsg/libs/cork/src/mesh/mesh.isct.inl, line #333:
    vert
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: ENSURE FAILED
(lldb) 

ps this seems to be maybe memory related (?) as the crashing changes as a I re-run it. sometimes it doesn't launch at all (and crashes right at the start) or it launches and I can get through 1,2,3,4 but when I hit 2 again it crashes... tried debug and release 64 bit...

Ah yeah, does seem to crash randomly in the cork code. Probably should have tested it more than once before releasing it ;) Thanks for catching that! Out of town for the next few days and will take a look on my return...