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
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
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.