Search Issue Tracker
By Design
Votes
0
Found in
2018.2.0f2
Issue ID
1064557
Regression
No
TaskCanceledException is thrown when canceling a CancellationTokenSource in OnDestroy
Repro steps:
1. Open QA attached project "repro_1064557"
2. Enter Play Mode
3. Wait until the Cube is destroyed
4. Observe the Console
Expected: No exceptions are thrown
Actual: A "TaskCanceledException: A task was canceled" is thrown
Reproducible with: 2017.4.14f1, 2018.2.15f1, 2018.3.0b9, 2019.1.0a8
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (2019.1.X):
Task.Delay will throw a TaskCanceledException if awaited with a cancelled cancellation token. this should be caught by the user's code