Search Issue Tracker
Duplicate
Votes
0
Found in
5.4.0f1
Issue ID
814382
Regression
No
NullReferenceException when using GrammerRecognizer (Unity 5.4)
Steps to reproduce:
1. Download and open attached project.
2. Attach script named "GrammerErrorTest" to the main camera.
3. Make sure that "Maximize on Play" is enabled in the "Game" window.
4. Enter the play mode.
Actual result:
The play mode stops and the "Console" window outputs these four error messages:
1.
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.DockArea.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:272)
UnityEngine.Windows.Speech.GrammarRecognizer:.ctor(String)
GrammerErrorTest:Start() (at Assets/GrammerErrorTest.cs:12)
2.
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.DockArea.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:272)
UnityEngine.Windows.Speech.GrammarRecognizer:.ctor(String)
GrammerErrorTest:Start() (at Assets/GrammerErrorTest.cs:12)
3.
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.DockArea.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:272)
UnityEngine.Windows.Speech.GrammarRecognizer:.ctor(String)
GrammerErrorTest:Start() (at Assets/GrammerErrorTest.cs:12)
4.
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.DockArea.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:272)
UnityEngine.Windows.Speech.GrammarRecognizer:.ctor(String)
GrammerErrorTest:Start() (at Assets/GrammerErrorTest.cs:12)
Expected result:
There should be no error messages and the play mode should not be interrupted.
Reproduced with:
5.4.0b18, 5.4.0b24, 5.4.0f1, 5.5.0a3.
Note:
Everything works fine when "Maximize on Play" is disabled in the "Game" window.
Comments (4)
-
Sestenes
Nov 06, 2016 17:42
Yeah, I get the "No cameras rendering" message, then the
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.DockArea.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:272)error in the console. The game plays fine, after the first time I run it, but always this sequence of errors the first time. There is definitely a camera.
-
centaurianmudpig
Oct 31, 2016 11:26
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.DockArea.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:272)I get this when first playing a scene from the Unity editor. It says there is no camera in the scene for several seconds before it actually uses the camera in the scene. Started happening as soon as I started using the new gui components.
-
Monarky
Oct 17, 2016 17:54
I got this when I was trying to unite a bunch of sprites to a packing tag. It did it okay then when I went to go into play mode unity crashed to desktop.
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.DockArea.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:272)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
This is a duplicate of issue #808191