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

Themes

-

"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)

  1. Response avatar

    Resolution Note:

    Throwing OperationCanceledException on canceling the build is intended. There was a bug previously where this was caught and not re-thrown properly.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.