Search Issue Tracker
Active
Votes
0
Found in [Package]
2017.3.0a1
2018.2.6f1
2018.3.0a1
2019.1.0a1
Issue ID
1112534
Regression
No
The `finally` block is not called in UnityTest if error message is logged
Steps to reproduce:
1. Download 1112534_repro.zip project
2. Run test in play mode
Expected results: Code in both "try" and "finally" blocks are called
Actual results: Code "finally" block isn't called
Reproduced with:2019.1.0a13, 2018.3.2f1, 2017.4.18f1
Example code:
[UnityTest]
public IEnumerator FinallyNotCalled()
{
try
{
Debug.LogError("a");
yield return null;
Debug.Log("b");
}
finally
{
Debug.Log("finally");
}
}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts which worked with TMP Font Asset Creator
Add comment