Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

UnityEngine.UI.GraphicRaycaster.Raycast NullReferenceException

Discussion in 'UGUI & TextMesh Pro' started by JAKJ, Sep 12, 2014.

  1. JAKJ

    JAKJ

    Joined:
    Aug 17, 2014
    Posts:
    185
    Can anyone make any sense out of this? I've been using this new UI system since it came out with no severe problems like this, and then all of a sudden I get this spamming me every single frame and my UI is entirely unresponsive, I have no idea what I could possibly have changed in my code to make this happen, and it doesn't even give me a line in my own code to look at.

    I tried to open the assembly and check the line number that way, but I think it gave me the wrong one, because according to that it was crashing when trying to dot a vector and that seems...unlikely.

    NullReferenceException: Object reference not set to an instance of an object
    UnityEngine.UI.GraphicRaycaster.Raycast (UnityEngine.EventSystems.PointerEventData eventData, System.Collections.Generic.List`1 resultAppendList) (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/GraphicRaycaster.cs:130)
    UnityEngine.EventSystems.EventSystem.RaycastAll (UnityEngine.EventSystems.PointerEventData eventData, System.Collections.Generic.List`1 raycastResults) (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/EventSystem/EventSystem.cs:92)
    UnityEngine.EventSystems.PointerInputModule.GetMousePointerEventData () (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/EventSystem/InputModules/PointerInputModule.cs:74)
    UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent () (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/EventSystem/InputModules/StandaloneInputModule.cs:268)
    UnityEngine.EventSystems.StandaloneInputModule.Process () (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/EventSystem/InputModules/StandaloneInputModule.cs:148)
    UnityEngine.EventSystems.EventSystem.Update () (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/EventSystem/EventSystem.cs:186)
     
  2. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    Could you submit a bug report with your project it would be interesting to see what its doing wrong.
     
  3. JAKJ

    JAKJ

    Joined:
    Aug 17, 2014
    Posts:
    185
    (EDIT: Nevermind, just got an email.)

    Case #632903
     
    Last edited: Sep 12, 2014
  4. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,181
    after it's processed a number will be generated, please post it here :)
     
  5. JAKJ

    JAKJ

    Joined:
    Aug 17, 2014
    Posts:
    185
    Yeah, email received and number posted now.