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.
-
pikachu17997
May 29, 2019 08:00
Looking the very nice post here follow http://passwordsinmicrosoftedge.com and connect to see remembered passwords in microsoft edge in system to secure password.
-
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
- UI Overlay Image gets darker on each Camera when multiple Cameras are used
- Assertion failed on expression: 'scriptedImporterClass == SCRIPTING_NULL error when opening the standalone profiler window
- Disabled assets in Import Unity Package window aren't tracked but count as being selected by user
- [Windows] Crash on GetManagerFromContext when video is playing and creating High Definition 3D Projects after FMOD failed to switch back to normal output Error appeared
- GC Alloc produced when adding items to MultiColumnListView with Auto Assign Binding
This is a duplicate of issue #808191