Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

clicking sprite field selection, null ref errors (2017.3.0b2)

Discussion in '2017.3 Beta' started by mgear, Sep 29, 2017.

  1. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    clicking sprite selector spams errors (didnt see it mentioned in known list)

    upload_2017-9-29_21-10-24.png


    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.ObjectSelector.Show (UnityEngine.Object obj, System.Type requiredType, UnityEditor.SerializedProperty property, Boolean allowSceneObjects, System.Collections.Generic.List`1 allowedInstanceIDs) (at C:/buildslave/unity/build/Editor/Mono/ObjectSelector.cs:291)
    UnityEditor.ObjectSelector.Show (UnityEngine.Object obj, System.Type requiredType, UnityEditor.SerializedProperty property, Boolean allowSceneObjects) (at C:/buildslave/unity/build/Editor/Mono/ObjectSelector.cs:244)
    UnityEditor.EditorGUI.DoObjectField (Rect position, Rect dropRect, Int32 id, UnityEngine.Object obj, System.Type objType, UnityEditor.SerializedProperty property, UnityEditor.ObjectFieldValidator validator, Boolean allowSceneObjects, UnityEngine.GUIStyle style) (at C:/buildslave/unity/build/Editor/Mono/GUI/ObjectField.cs:165)
    UnityEditor.EditorGUI.ObjectFieldInternal (Rect position, UnityEditor.SerializedProperty property, System.Type objType, UnityEngine.GUIContent label, UnityEngine.GUIStyle style) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:3226)
    UnityEditor.EditorGUI.DefaultPropertyField (Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:5768)
    UnityEditor.PropertyHandler.OnGUI (Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, Boolean includeChildren) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:152)
    UnityEditor.PropertyHandler.OnGUILayout (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:203)
    UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:8104)
    UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:8092)
    UnityEditor.SpriteRendererEditor.OnInspectorGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/SpriteRendererEditor.cs:83)
    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:1243)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,132
    Hi mgear,
    We couldn't reproduce this in 2017.2.0f2 and 2017.3.0b3. Could you please see if this keeps happening for you, once 2017.3.0b3 releases?
     
  3. pauliusuza

    pauliusuza

    Joined:
    Nov 1, 2016
    Posts:
    7
    I am getting this on 2017.3.0b3 when trying to pick a mesh inside a mesh collider
     
  4. Reticulatas

    Reticulatas

    Joined:
    Jul 31, 2012
    Posts:
    25
    I am getting this on 2017.3.0b2 as well
     
  5. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    oh, it happens with all of those asset selectors.. mesh, rendertexture, and everything else.

    also getting this message at start,
    "The editor layout could not be fully loaded, this can happen when the layout contains EditorWindows not available in this project UnityEditor.WindowLayout:LoadWindowLayout(String, Boolean)"

    for reset layout, got this also,
    Failed to destroy editor windows: #1
    ObjectSelector, UnityEditor.WindowLayout:LoadWindowLayout(String, Boolean)
     
  6. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,589
    Can you reproduce this issue in a new/empty project? Just to rule out it's not caused by anything specific in your project, which would explain why UT isn't able to reproduce.

    If it turns out to be project specific though, you should submit a bug-report and attach the project where the issue reproduces with.
     
    Last edited: Oct 2, 2017
  7. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    yeah, tested on another project and empty project.. ill post bug if still in b3

    *tested on another pc also, same problem
     
    Last edited: Oct 3, 2017
  8. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    no errors in 2017.3.0b3