## V-HACD crashes

Report crashes, strange behaviour, or apparent bugs
alanzjl
Posts: 1
Joined: 10 Feb 2019, 17:24

### V-HACD crashes

Hi,

It seems every time I try to do convex decomp with V-HACD VREP will crash. HACD works fine. I tested in both OS X and Ubuntu 16.04. Output in console is

Code: Select all

Computing the convex decomposition (VHACD)...

Error: signal 11:

libv_rep.so(_Z11_segHandleri+0x28)[0x7fd745ab4ac8]
/lib/x86_64-linux-gnu/libc.so.6(+0x354b0)[0x7fd7498fe4b0]
/home/azhao/V_REP/libv_repExtConvexDecompose.so(_ZN5VHACD5VHACD16MergeConvexHullsERKNS_6IVHACD10ParametersE+0x151c)[0x7fd70c8a3ffc]
/home/azhao/V_REP/libv_repExtConvexDecompose.so(_ZN5VHACD5VHACD7ComputeEPKfjjPKijjRKNS_6IVHACD10ParametersE+0x1c3)[0x7fd70c8a5ae3]
/home/azhao/V_REP/libv_repExtConvexDecompose.so(_Z12computeVHACDPKfiPKiiRSt6vectorIPS3_IfSaIfEESaIS6_EERS3_IPS3_IiSaIiEESaISC_EEiifiifffbbif+0x1ca)[0x7fd70c8707aa]
/home/azhao/V_REP/libv_repExtConvexDecompose.so(v_repVHACD+0xdf)[0x7fd70c870b8f]
libv_rep.so(_ZN16CPluginContainer5vhacdEPv+0x15)[0x7fd745c85255]
libv_rep.so(_ZN13CMeshRoutines15convexDecomposeEPKfiPKiiRSt6vectorIPS4_IfSaIfEESaIS7_EERS4_IPS4_IiSaIiEESaISD_EEmdbbdmmdbiifiifffbbif+0x91b)[0x7fd745bf7f0b]
libv_rep.so(_ZN22CSceneObjectOperations24generateConvexDecomposedEimdbbdmmdbibiifiifffbbif+0x4b0)[0x7fd745bd9a70]

Error: signal 11:

libv_rep.so(_Z11_segHandleri+0x28)[0x7fd745ab4ac8]
/lib/x86_64-linux-gnu/libc.so.6(+0x354b0)[0x7fd7498fe4b0]
libQt5Core.so.5(_ZN6QMutex4lockEv+0x15)[0x7fd74a2d10b5]
libQt5Gui.so.5(+0x379f7e)[0x7fd744707f7e]
libQt5Gui.so.5(+0x37183f)[0x7fd7446ff83f]
libQt5Gui.so.5(_ZN18QRasterPaintEngine11updateBrushERK6QBrush+0x87)[0x7fd744702cd7]
libQt5Gui.so.5(_ZN18QRasterPaintEngine4fillERK11QVectorPathRK6QBrush+0x4e)[0x7fd744704c3e]
libQt5Gui.so.5(_ZN14QPaintEngineEx4drawERK11QVectorPath+0x55)[0x7fd7446e84b5]
libQt5Gui.so.5(_ZN14QPaintEngineEx15drawRoundedRectERK6QRectFddN2Qt8SizeModeE+0x1fa)[0x7fd7446e9a0a]
libQt5Gui.so.5(_ZN8QPainter15drawRoundedRectERK6QRectFddN2Qt8SizeModeE+0x3b)[0x7fd744715f5b]
QMutex: destroying locked mutex
QMutex: destroying locked mutex
I remember this problem may have been existed for a long time. Could you please look into this?

Thanks!
Alan

coppelia
Posts: 7597
Joined: 14 Dec 2012, 00:25

### Re: V-HACD crashes

Hello Alan,

we are aware that the V-HACD can crash depending on the settings and/or the provided shape. From what we could see, the problem lies directly in the V-HACD library, which we didn't develop.
Did you try to use an updated version of the library in the v_repExtConvexDecompose plugin?

Cheers