Search Issue Tracker

Fixed

Votes

2

Found in

5.0.1f1

Issue ID

695164

Regression

No

Adding another Scene View generates NullReferenceException

2D

-

1. Right click on a frame in the editor and choose Add Tab > Scene
2. view the Console for errors and see that a new NullReferenceException is generated

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.SceneView.LookAt (Vector3 pos, Quaternion rot, Single newSize, Boolean ortho, Boolean instant) (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1642)
UnityEditor.SceneView.Awake () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:398)
UnityEditor.GenericMenu:CatchMenu(Object, String[], Int32)

Comments (5)

  1. Agent654

    Aug 27, 2015 18:25

    I'll echo this from DRWAYYYNE - same for me in 5.1.2f1.

    Not sure if this matters, but running Windows 10 64-bit - using 64-bit Unity client.

    Console output:

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.SceneView.LookAt (Vector3 pos, Quaternion rot, Single newSize, Boolean ortho, Boolean instant) (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1657)
    UnityEditor.SceneView.Awake () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:400)
    UnityEditor.GenericMenu:CatchMenu(Object, String[], Int32)

  2. jamh

    Aug 04, 2015 18:49

    So'
    Wich is the answer?

  3. drwayyyne

    Jul 27, 2015 16:02

    Seems this issue is back in 5.1.2f1

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.SceneView.LookAt (Vector3 pos, Quaternion rot, Single newSize, Boolean ortho, Boolean instant) (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1657)
    UnityEditor.SceneView.Awake () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:400)
    UnityEditor.GenericMenu:CatchMenu(Object, String[], Int32)

  4. bobmoff

    May 27, 2015 09:34

    I am using 5.0.2p2 with the same problem. UI elements not rendered in Scene View.

  5. f4bo

    May 14, 2015 08:23

    same to me: today I installed the 5.0.1p4 and beside that error I'm also unable to see 2d elements in the sene view, while visible in the game view - this is my error traceback:

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.SceneView.LookAt (Vector3 pos, Quaternion rot, Single newSize, Boolean ortho, Boolean instant) (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1646)
    UnityEditor.SceneView.Awake () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:398)
    UnityEditor.CreateBuiltinWindows:ShowSceneView()

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.