Skip to content

DeleteAllMaterialExpressions asserts !IsRooted() when rebuilding a generated kit

Section titled “DeleteAllMaterialExpressions asserts !IsRooted() when rebuilding a generated kit”
  • Status: Current workaround.
  • Engine: ue6-main 61e2877e10, Linux x86_64, Epic clang 23.1.5 (v27 SDK).
  • Context: Standalone UE6 Python editor commandlet with the Coop Zero placeholder kit.
  • Prerequisites: An existing generated Content/CoopZero/Placeholder directory and the lane wrapper.

Re-running the placeholder stage against an existing kit exited 139. The editor log shows Assertion failed: !IsRooted() in UObjectBaseUtility.h, followed by Unhandled Exception: SIGSEGV. The symbolized stack reaches UMaterialEditingLibrary::DeleteMaterialExpression and DeleteAllMaterialExpressions.

In the existing Coop Zero working tree with the Step 12 kit already generated, run COOP_BUILD_LABEL=step12b-main Scripts/build_slice.sh all. The failing invocation was the Vulkan offscreen run of Scripts/make_placeholders.py, which loads the existing master materials before deleting their expressions.

Move the ignored Content/CoopZero/Placeholder directory under Saved before launching the generator. Run COOP_BUILD_LABEL=step12b-main Scripts/build_slice.sh all to rebuild the kit and map, then package the result. Preserve the previous kit in the backup directory.

The failing stack calls MarkAsGarbage on a rooted object while deleting an expression. With the previous kit out of the content tree, Unreal creates new master materials and their expressions. The source of the prior expression’s root flag remains unverified.

  • Evidence level: runs in editor.
  • How: After moving the generated kit under Saved/step12b/warm-kit-crash/Placeholder, COOP_BUILD_LABEL=step12b-main Scripts/build_slice.sh all completed. Saved/step12b-main-make_placeholders.log contains PLACEHOLDER_KIT meshes=26 colours=17 and Saved/step12b-main-build_slice_map.log contains SLICE_MAP actors=65 map=/Game/Maps/Slice unmanaged=0.
  • Date / by: 2026-11-25, Coop Zero Step 12b.

This is a project-side workaround. The engine assertion remains upstream. The kit directory is generated from the Coop Zero layout and palette. Preserve authored assets separately.