Page MenuHome

Debug Assert when using "cut through" option for Knife Project
Closed, ResolvedPublic


System Information
Operating system: Win10
Graphics card: nVidia Quadro 600

Blender Version
Broken: 2.80 497a9ef7a39
Worked: (optional)

Short description of error
There's a debug assert when using the knife project "cut through" option. Would most likely be harmless in release builds it looks like.

Exact steps for others to reproduce the error

Open provided blend:


  • Invoke Mesh -> Knife Project
  • Change redo setting to turn "Cut Through" on
  • Assert
MEM_freeN(visit_bitmap); // visit_bitmap is nullptr and triggers the debug assert in MEM_freeN

blender.exe!MEM_lockfree_freeN(void * vmemh) Line 137	C
blender.exe!BKE_editmesh_vertexCos_get(Depsgraph * depsgraph, BMEditMesh * em, Scene * scene, int * r_numVerts) Line 552	C
blender.exe!knifetool_init_bmbvh(KnifeTool_OpData * kcd) Line 2609	C
blender.exe!knifetool_init(bContext * C, KnifeTool_OpData * kcd, const bool only_select, const bool cut_through, const bool is_interactive) Line 2655	C
blender.exe!EDBM_mesh_knife(bContext * C, LinkNode * polys, bool use_tag, bool cut_through) Line 3032	C