MixedRealityToolkit-Unity: Console Error Spam - Set_type is not allowed on ScriptableObject constructor
Overview
In the latest branch of mrtk_dev, the console is getting spammed when viewing profiles or clicking round the editor.
Could possibly be a Unity bug but needs investigating.
Expected Behavior
No SPAM please, I’m British.
Actual Behavior
The following error is constantly repeated in the console.
See "Script Serialization" page in the Unity Manual for further details.
UnityEngine.Event.KeyboardEvent (System.String key) (at C:/buildslave/unity/build/Modules/IMGUI/Event.cs:153)
UnityEditor.ObjectSelector..cctor () (at C:/buildslave/unity/build/Editor/Mono/ObjectSelector.cs:78)
Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.ObjectSelector' threw an exception.
UnityEditor.EditorGUIUtility.GetObjectPickerControlID () (at C:/buildslave/unity/build/Editor/Mono/EditorGUIUtility.cs:1426)
Microsoft.MixedReality.Toolkit.Inspectors.MixedRealityManagerInspector.OnInspectorGUI () (at Assets/MixedRealityToolkit/_Core/Inspectors/MixedRealityManagerInspector.cs:66)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor[] editors, System.Int32 editorIndex, System.Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1374)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Steps to reproduce
`- Create new Scene
- Select the MixedRealityDefault Profile
- Select yes to add manager to the scene
- Click on Mixed Reality manager
Unity Editor Version
2018.2.0f2
Mixed Reality Toolkit Release Version
vNext-Dev
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (11 by maintainers)
I got an email about this issue and it states the following:
I figure we are guessing this is potentially fixed in 2018.3, since the fogbuz issue is now closed as identified and the issue tracker says fixed in next release. Given this still isn’t fixed in 2018.2, I’m sceptical it’ll be back-ported, seeing it’s likely a fundamental editor issue for them to fix in a different build to the one it was found in. But fingers crossed.
I was able to reproduce this with a very simple project without vNext in it. The call causing this error is
EditorGUIUtility.GetObjectPickerControlID(), and theEditorGUIUtility.GetObjectPickerObject()gives the same error.Bug report submitted but not accepted yet: https://fogbugz.unity3d.com/default.asp?1061966_m7oap09fs4irruag
Nope still broken
Regarding the “Unity Issue Tracker”, it seems to be fixed. If i have time tonight, i’ll try on Unity 2018.2.6f1.
Another release @pnolen Do you want to update the Unity issues as it appears they haven’t fixed it AGAIN 😛 (well not according to the release notes) Anyone able to re-test in 2018.2.6
No ETA. They are still investigating.
Issue tracker is here: https://issuetracker.unity3d.com/issues/unityexception-is-thrown-when-calling-editorguiutility-objectpicker-methods-from-custom-editor
I’m seeing this happen on more than just the MR Manager, and things we’ve written. So it’s def a Unity Bug.