Search Issue Tracker

Fixed in Unity 2017.1

Votes

0

Found in

2017.1.0b4

Issue ID

909648

Regression

Yes

Exceptions are thrown when clicking on Aspect Ration options for Display 2-8

Scene/Game View

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 4Minor or cosmetic issue

To reproduce:
1. Open GameView
2. Select any Display from 2 to 8
3. Click on Aspect Ration options

Actual: Following exceptions are thrown in console:

ArgumentException: You can only call GUI functions from inside OnGUI.
UnityEngine.GUIUtility.CheckOnGUI () (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUIUtility.cs:347)
UnityEngine.GUI.set_skin (UnityEngine.GUISkin value) (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUI.cs:53)
UnityEngine.GUIUtility.BeginGUI (Int32 skinMode, Int32 instanceID, Int32 useGUILayout) (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUIUtility.cs:261)

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.GUIUtility.EndGUI (Int32 layoutType) (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUIUtility.cs:288)

Expected: Exception shouldn't appear in console

Reproducible: 2017.01b4, 2017.01a4
Not reproducible: 2017.01a3

All about bugs

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