Search Issue Tracker
Fixed in 2018.1.X
Votes
0
Found in
2017.3.0b1
Issue ID
954289
Regression
Yes
Editor crashes on GridBindings::GetCellSize when trying to get the cell size of the Grid with no Grid Component attached
How to reproduce:
1. Open the attached "GirdCrash" project and "Repro" scene
2. Observe "GameObject" and that it does not have a Grid component attached, while GridScript.cs on the same "GameObject" is trying access Grid cell size
3. Enter playmode
Expected result - MissingComponentException error should be printed ("There is no 'Grid' attached to the "GameObject" game obejct, but a script is trying to access it")
Actual result - Crash occurs on:
0x000000014194B766 (Unity) GridBindings::GetCellSize
0x0000000141D257D9 (Unity) Grid_CUSTOM_GetCellSize_Injected
0x0000000059F2F99D (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Grid:GetCellSize_Injected (UnityEngine.Grid,UnityEngine.Vector3&)
0x0000000059F2F848 (Mono JIT Code) UnityEngine.Grid:GetCellSize (UnityEngine.Grid)
0x0000000059F2F722 (Mono JIT Code) [C:\buildslave\unity\build\Modules\Grid\ScriptBindings\Grid.bindings.cs:12] UnityEngine.Grid:get_cellSize ()
0x0000000059F2F230 (Mono JIT Code) [C:\Users\UnityQA\Desktop\GridCrash\Assets\GridScript.cs:11] GridScript:Start ()
Regression introduced in - 2017.3.0a4
Reproducible with - 2017.3.0b2, 2017.3.0a4
Not reproducible with - 2017.3.0a3, 2017.2.0f2, 2017.2.0a4
Fixed in 2018.1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Test Runner’s vertical scrollbar overlaps with the up and down arrows and upper toolbar tabs when the window is minimized
- The Input Field view is not updated when deleting lines of text
- The scrollbar does not respect empty lines in the Input Field
- “Texture Atlas Viewer“ button text overlaps another button when the UI Toolkit Debugger is narrowed
- Thresholds are no longer automatically calculated after deleting Motion fields in Blendtrees
Add comment