Paradox Team,
I encountered a crash problem which ultimately was due to the .cs backing file behind an effect not being generated correctly. I’m not sure if there is some log, etc. I was supposed to consult but the exception itself was not helpful in pinpointing the cause. So I added unwrapping for the AggregateException in SiliconStudio.Paradox.Shaders.Compiler.TaskOrResult.WaitForResult:
public T WaitForResult()
{
if (Task != null)
{
try
{
return Task.Result;
}
catch (System.AggregateException e)
{
throw e.InnerException;
}
}
return Result;
}
This changes the exception from this:
To this:
Worthwhile modification, or am I missing how to best detect issues with the effect compiler?