Search Issue Tracker
Fixed
Votes
0
Found in
5.4.0b22
Issue ID
806197
Regression
Yes
[Regression][TerrainComponent] NullReference exceptions are thrown after opening 'Add Texture' or 'Add Tree' popup
Steps to repro:
1. Open attached project and 'test' scene;
2. Select Terrain gameobject in the 'Hierarchy';
3. Go to 'Paint Texture' tab;
4. Click Edit Textures -> Add Textures;
5. Observe the console.
Actual result:
Error:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.TerrainSplatEditor.OnGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/TerrainEditor/TerrainSplatEditor.cs:201)
is thrown. See attached gif video.
Regression introduced in 5.4.0b22.
Same behaviour happens when Opening 'Add Tree' window from 'Paint Trees' tab, however the error in this case is slightly different:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.TreeWizard.DrawWizardGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/TerrainEditor/TerrainWizards.cs:412)
UnityEditor.ScriptableWizard.OnGUI () (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/
See attached screenshots.
Expected result:
Error should not be thrown when opening Add Texture/Tree popup windows.
Notes:
- Reproducible in 5.4.0b22;
- Reproducible only on OSX 10.11.4;
- Not reproducible on Windows 10;
- The issue seems not to affect abovementioned functionality. Texture/Tree assigning works as expected.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
- Graphics State Collection warm-up does not work when using with Addressables Shaders
- "Baked Shadow Radius" field is visible but inactive when when the Shadow Type is set to "Hard Shadows" under the Light Component
Add comment