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
- "Invalid SortingGroup index set in Renderer" errors when making many modifications in same frame
- Crash on GizmoBufferSizeHistory::GetBuffer() when opening a specific scene
- RenderTexture is not initialized when it is set as Material's Texture
- Branch node outputs a random value instead of a constant on the false conditon
- Shader Graph Material is left in broken state when switching from a .git branch with no HDRP to a branch that contains HDRP
This is a duplicate of issue #808191