Search Issue Tracker
Duplicate
Votes
0
Found in
2019.2.0a7
Issue ID
1141590
Regression
Yes
Errors in UnityEditor.EditorGUIUtility.get_currentViewWidth when Particle System Inspector expands enough to require a scrollbar
How to reproduce:
1. Open the attached project "ParticleSystemShapeUI.zip" and scene "SampleScene"
2. Select "ParticleSystem (no particles)" in the Hierarchy
3. Expand as many Particle System sections as necessary e.g. "Emission", "Shape" etc. to force the scrollbar to appear in the Inspector Window
4. Observe the console window
Expected result: no error messages in the console window
Actual result: two identical NullReferenceException messages get printed to the Console Window
Reproducible with: 2019.2.0a10
Not reproducible with: 2017.4.241f, 2018.3.11f, 2019.1.0b9, 2019.2.0a6
Note: the full error message is
"NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorGUIUtility.get_currentViewWidth () (at <34ccf513c7df4dfcb2ed84f1a3ff5a43>:0)"
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
This is a duplicate of issue #1145010