Reproduction steps:
1. Open the attached “CrashRepro” project
2. In the Project window, select “Assets/PlayerActions.inputactions”
3. In the Inspector window, click the Script selecting button
4. Search for “PlayerInput” and click on it
Expected result: PlayerInput is selected
Actual result: Unity Editor crashes
Reproducible with: 2022.2.0a15, 2022.2.11f1, 2023.1.0b8, 2023.2.0a6
Couldn’t test with: 2020.3.45f1, 2021.3.19f1, 2022.2.0a1 - 2022.2.0a14 (Input System 1.5.0 is working properly and I couldn’t find another way to select the Script File)
Reproducible on: Ubuntu 22.04, Windows 10 Pro 22H2
First lines of the stack trace:
0x00007ff72344dbc7 (Unity) Component_Get_Custom_PropGameObject
0x000001c3f56e1141 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Component:get_gameObject (UnityEngine.Component)
0x000001c29864c57b (Mono JIT Code) UnityEditor.SceneView:CallOnPreSceneGUI ()
0x000001c29864c3fb (Mono JIT Code) UnityEditor.SceneView:DoOnPreSceneGUICallbacks (UnityEngine.Rect)