Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.1.0b13
Issue ID
1026350
Regression
No
[BuildReport] Reports stored in a variable get deleted after each build
Reproduction steps:
1. Download user's project and open in Unity
2. Select SparkTools > Settings > Builder
3. Platform list should contain only the installed platforms (remove them with an 'X' and add them from the drop-down)
4. Target platform is chosen by the green circle and it cannot be first or the last
5. Press "Build All"
Expected: no errors in the console
Actual: error appears in the console
Reproduced on: 2018.1.0b1; 2018.1.0f2; 2018.2.0b3
Note: error:
"MissingReferenceException: The object of type 'BuildReport' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEditor.Build.Reporting.BuildReport.get_summary ()
SparkTools.Builder.BuildMultiple (SparkTools.BuilderSettings settings, System.Int32[] indexes) (at Assets/SparkTools/builder/Builder/Editor/Scripts/Builder.cs:141)
SparkTools.Builder.BuildAll () (at Assets/SparkTools/builder/Builder/Editor/Scripts/Builder.cs:84)
SparkTools.BuilderSettingsEditor.OnInspectorGUI () (at Assets/SparkTools/builder/Builder/Editor/Scripts/BuilderSettingsEditor.cs:247)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor[] editors, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1374)
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note:
Object are expected to load and unload frequently during build time, user will need to copy "Library/LastBuild.buildreport" and load it with UnityEditorInternal.InternalEditorUtility.LoadSerializedFileAndForget(.....);. This is a work around to the issue.