Description

This comes from a UDN report.
[Link Removed]

When launching the editor with -game, if a material contains a null expression (for instance because that material expression has been removed), the binary will crash, as GIsEditor is false, so null expressions won't take place in UMaterial::PostLoad().

We need to make sure the array of expressions is always cleaned up even when GIsEditor is false.

Steps to Reproduce

This occurs when launching the editor in game mode with the -game flag, and the launched level contains a material with an expression whose type was deleted.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-201121 in the post.

0
Login to Vote

Fixed
ComponentUE - Rendering Architecture - Materials
Affects Versions5.3.2
Target Fix5.4
Fix Commit29910372
Main Commit29910372
CreatedNov 23, 2023
ResolvedNov 23, 2023
UpdatedDec 19, 2023