Search Issue Tracker
Duplicate
Votes
0
Found in
2018.3.0a1
2018.3.12f1
2019.2.0a1
Issue ID
1148597
Regression
No
Throwing exception in IPreprocessBuildWithReport does not cancel build process
How to reproduce:
1. Open the attached project ("PreBuildProcessIssue.zip")
2. Try building the project via "Build > Build and Run"
3. Notice the thrown exception and "Build completed with a result of 'Failed'" error message in the console
4. Clear the console
5. Try building via "File > Build Settings > Build" and also via "Build -> Test Build" (in menu bar)
5. Inspect the console
Expected results: All builds fail to build, "Build completed with a result of 'Failed'" error message can be seen in the console
Actual results: "File > Build Settings > Build" and "BuildPipeline.BuildPlayer()" builds are built successfully despite the thrown exception
Reproducible with: 2018.3.14f1, 2019.1.0f2, 2019.2.0a13
Could not test with 2017.4, as it lacks IPreprocessBuildWithReport interface
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
This is a duplicate of issue #1097286