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
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
- Previously deleted “DefaultLookDevProfile“ is present when upgrading the Editor version
- [Ubuntu] UI text and buttons are missing spaces in Unity Version Control > New Workspace window
- "Inherit attribute is not supported" warning is shown but attributes are available in VFX Graph Output and Update blocks
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.