Search Issue Tracker
Not Reproducible
Votes
4
Found in
2017.2.0b5
Issue ID
935569
Regression
Yes
NullReferenceException in SceneHierarchyWindow.cs after build process is finished
To reproduce:
1. Open attached project
2. Open scene
3. Select Video Player game object
4. Press Ctrl + S key combination
5. Press Ctrl + B key combination
6. Wait until build is finished
Reproduced: 2017.3.0a3, 2017.2.0b5
Not reproducible: 2017.1.0p3
Expected: Exception shouldn't be thrown
Actual: Following exception is thrown in console:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.SceneHierarchyWindow.get_debug () (at C:/buildslave/unity/build/Editor/Mono/SceneHierarchyWindow.cs:78)
UnityEditor.GameObjectTreeViewDataSource.InitializeMinimal () (at C:/buildslave/unity/build/Editor/Mono/GUI/TreeView/GameObjectTreeViewDataSource.cs:326)
UnityEditor.GameObjectTreeViewDataSource.FetchData () (at C:/buildslave/unity/build/Editor/Mono/GUI/TreeView/GameObjectTreeViewDataSource.cs:248)
UnityEditor.IMGUI.Controls.TreeViewDataSource.ReloadData () (at C:/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewDataSource.cs:53)
UnityEditor.IMGUI.Controls.TreeViewController.ReloadData () (at C:/buildslave/unity/build/Editor/Mono/GUI/TreeView/TreeViewController.cs:266)
UnityEditor.SceneHierarchyWindow.Init () (at C:/buildslave/unity/build/Editor/Mono/SceneHierarchyWindow.cs:184)
UnityEditor.SceneHierarchyWindow.get_treeView () (at C:/buildslave/unity/build/Editor/Mono/SceneHierarchyWindow.cs:149)
UnityEditor.SceneHierarchyWindow.OnLostFocus () (at C:/buildslave/unity/build/Editor/Mono/SceneHierarchyWindow.cs:409)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:283)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:276)
UnityEditor.HostView.OnLostFocus () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:132)
UnityEditorInternal.VisualStudioUtil:FindVisualStudioDevEnvPaths(Int32, String)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()
Comments (6)
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
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
- Last segment of a Sprite Shape Spline is affected by other segments' Sprite Variant change when no edge Sprite is selected
liaonantian
Jan 12, 2019 02:32
In Unity 2017.4.16f1 too.
liaonantian
Jan 12, 2019 02:31
In Unity 2017.4.16f1 too.
TenasticImmerser
Jul 12, 2018 13:18
Version: 2018.2.0f2
For me Unity crashes when I rt-click on a folder in certain situations. This happens at least twice a day. Seems to be worse when using "Organizer Project Pro".
MissingReferenceException: The object of type 'HostView' 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.
at (wrapper managed-to-native) UnityEditor.GUIView.Repaint(UnityEditor.GUIView)
at UnityEditor.HostView.OnLostFocus () [0x00012] in C:\buildslave\unity\build\Editor\Mono\HostView.cs:133
(Filename: C:/buildslave/unity/build/Editor/Mono/HostView.cs Line: 133)
Bloke28
Apr 26, 2018 14:07
2017.4.0f1 has it..
Coollinka
Apr 17, 2018 13:14
In Unity 2017.4.1f1 too.
Menion-Leah
Dec 26, 2017 14:03
Same here, 2017.2.0f3 and 2017.3.0p1