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
- Tile Palette grid is moved after entering Play Mode
- Tile Palette Edit mode turns off in Play Mode
- The Editor crashes when Generating Font Atlas in the Font Asset Creator with “9999999999” padding and 256x256 Atlas Resolution
- [iOS] An “ArgumentNullException” error is thrown when GetIntroductoryPriceDictionary() method is called
- Font Import Settings documentation page is missing when the documentation button is pressed in the Inspector window
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.