Skip to content

Commit 48388ea

Browse files
skeshri-rythmosEvergreen
authored andcommitted
2023.1: Crash on malloc_internal when recompiling a ShaderGraph used 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
1 parent 3b35e08 commit 48388ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/SRPTests/Projects/ShaderGraph/Assets/CommonAssets/Editor/FileMoveTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ public IEnumerator MoveDirectoryTests()
195195
yield return null;
196196

197197
CloseGraphWindow();
198+
199+
// Wait for any potential compilation to finish before entering cleanup, which deletes the files
200+
while (ShaderUtil.anythingCompiling)
201+
{
202+
yield return null;
203+
}
198204
}
199205
}
200206
}

0 commit comments

Comments
 (0)