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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
This is a duplicate of issue #808191