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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
Add comment