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
- ListView fails to display items when the source list is cleared and a single element is added
- UI Toolkit ':hover' state remains active when another panel is drawn over the hovered element and Touch input is used
- Unsupported Orient modes can be selected and throw errors when using Strip VFX
- "Tab" key exits the name text field in the VFX Graph tab when renaming the Property
- Shader warnings are thrown when deleting blocks in the Ribbon VFX Graph
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.