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/Placeholderdirectory and the lane wrapper.
Symptom
Section titled “Symptom”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.
Smallest example / reproduction
Section titled “Smallest example / reproduction”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.
Solution
Section titled “Solution”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.
Why it works
Section titled “Why it works”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.
Verified
Section titled “Verified”- 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 allcompleted.Saved/step12b-main-make_placeholders.logcontainsPLACEHOLDER_KIT meshes=26 colours=17andSaved/step12b-main-build_slice_map.logcontainsSLICE_MAP actors=65 map=/Game/Maps/Slice unmanaged=0. - Date / by: 2026-11-25, Coop Zero Step 12b.
Limits and assumptions
Section titled “Limits and assumptions”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.