Search Issue Tracker
By Design
Votes
0
Found in
2018.3.0f2
2019.2.0b2
Issue ID
1154015
Regression
Yes
[Deployment Management] "OperationCanceledException" is thrown on canceling the android build
"OperationCanceledException" is thrown on canceling the android build
Steps to Reproduce:
1. Create a new project
2. Switch the platform to Android
3. Change package name, File > Build Settings > Player Settings > Other Settings
4. Click on Build
5. After Android SDK detection click on Cancel
Actual Result: OperationCanceledException is thrown
Expected Result: Operation is canceled with a message in console "Build completed with a result of canceled"
Environment:
Mac and Windows
Reproducible on:
2019.3.0a2, 2019.2.0b2, 2019.1.0f2, 2018.3.0f2
Working Fine on:
2018.2.0f2, 2018.1.7f1
StackTrace:
OperationCanceledException: The operation was canceled.
UnityEditor.AssemblyReferenceChecker.DisplayProgress () (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:224)
UnityEditor.AssemblyReferenceChecker.CollectReferencedAndDefinedMethods (Mono.Cecil.TypeDefinition type, System.Boolean isSystem) (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:138)
UnityEditor.AssemblyReferenceChecker.CollectReferencedAndDefinedMethods (System.Collections.Generic.IEnumerable`1[T] assemblyDefinitions) (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:126)
UnityEditor.AssemblyReferenceChecker.CollectReferences (System.String path, System.Boolean collectMethods, System.Single progressValue, System.Boolean ignoreSystemDlls) (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:117)
UnityEditor.AssemblyReferenceChecker.GetScriptsHaveMouseEvents (System.String path) (at C:/buildslave/unity/build/Editor/Mono/Utils/AssemblyReferenceChecker.cs:292)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Resolution Note:
Throwing OperationCanceledException on canceling the build is intended. There was a bug previously where this was caught and not re-thrown properly.