InputSystem icon indicating copy to clipboard operation
InputSystem copied to clipboard

NullReferenceException in Input Editor Settings Repaint()

Open Kleptine opened this issue 7 years ago • 4 comments

If I have the Editor Preferences window open, and I exit play mode, I get the following NullReferenceException. It's is 100% reliable in my project, but only happens if the Editor Preferences window is already open (I usually have it docked).

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.SettingsProvider.Repaint () (at C:/buildslave/unity/build/Editor/Mono/Settings/SettingsProvider.cs:123)
UnityEngine.Experimental.Input.Editor.InputSettingsProvider.OnSettingsChange () (at C:/FastProjects/Clockwork/InputSystem/Packages/com.unity.inputsystem/InputSystem/Editor/Settings/InputSettingsProvider.cs:295)
UnityEngine.Experimental.Input.InputManager.ApplySettings () (at C:/FastProjects/Clockwork/InputSystem/Packages/com.unity.inputsystem/InputSystem/InputManager.cs:2202)
UnityEngine.Experimental.Input.InputSettings.OnChange () (at C:/FastProjects/Clockwork/InputSystem/Packages/com.unity.inputsystem/InputSystem/InputSettings.cs:302)
UnityEngine.Experimental.Input.InputSystem.OnPlayModeChange (UnityEditor.PlayModeStateChange change) (at C:/FastProjects/Clockwork/InputSystem/Packages/com.unity.inputsystem/InputSystem/InputSystem.cs:1681)
UnityEditor.EditorApplication.Internal_PlayModeStateChanged (UnityEditor.PlayModeStateChange state) (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:302)

Unity version: 2019.1.1f1 InputSystem version: stable branch, commit 289025f5a09aa71af96625056b47807ae36ad773

Kleptine avatar Jun 16 '19 20:06 Kleptine

Unity v2019.1.7 Input system v0.2.10 Same error BUT other callstack. Reproduced after modify any asset (create, rename).

NullReferenceException: Object reference not set to an instance of an object UnityEditor.SettingsProvider.Repaint () (at C:/buildslave/unity/build/Editor/Mono/Settings/SettingsProvider.cs:123) UnityEngine.InputSystem.Editor.InputSettingsProvider.ForceReload () (at Library/PackageCache/[email protected]/InputSystem/Editor/Settings/InputSettingsProvider.cs:351) UnityEngine.InputSystem.InputSystem.OnProjectChange () (at Library/PackageCache/[email protected]/InputSystem/InputSystem.cs:1692) UnityEditor.EditorApplication.Internal_CallProjectHasChanged () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:242) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Racot007 avatar Jun 17 '19 15:06 Racot007

Huh, weird. Filed: https://issuetracker.unity3d.com/product/unity/issues/guid/1164144/ Closing.

JiaUnity avatar Jun 19 '19 23:06 JiaUnity

Thanks for the filing! Should I expect to be able to visit that link, or is it Unity internal?

Kleptine avatar Jun 19 '19 23:06 Kleptine

Nah. It is the public tracking. Usually the server needs some time to update the public side. Should be there tomorrow for sure.

JiaUnity avatar Jun 20 '19 02:06 JiaUnity