Skip to content

Commit

Permalink
2023.1: Crash on malloc_internal when recompiling a ShaderGraph used …
Browse files Browse the repository at this point in the history
…by another shader via UsePass

Issue here is that Crash on malloc_internal when recompiling a ShaderGraph used by another shader via UsePass

This PR fixes the issues by making sure that shaders are reloaded after all shader import cases.

Bug: https://jira.unity3d.com/browse/UUM-46187
Backport: https://jira.unity3d.com/browse/UUM-48112
  • Loading branch information
skeshri-rythmos authored and Evergreen committed Nov 6, 2023
1 parent 3b35e08 commit 48388ea
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ public IEnumerator MoveDirectoryTests()
yield return null;

CloseGraphWindow();

// Wait for any potential compilation to finish before entering cleanup, which deletes the files
while (ShaderUtil.anythingCompiling)
{
yield return null;
}
}
}
}

0 comments on commit 48388ea

Please sign in to comment.