Search Issue Tracker

Fixed in Unity 2018.2

Votes

0

Found in

2018.1.0b8

Issue ID

1005597

Regression

Yes

Editor crashes when calling NativeArray<T>.Equals()

Scripting

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 1Crash, freeze, data loss, work stops

Steps to reproduce:
1. Download 1005597_repro.zip
2. Open "test" scene
2. Enter play mode

Results: editor crashes when calling NativeArray<T>.Equals() in script Test.cs line 13

Reproduced with: 2018.2.0a2, 2018.1.0b9, 2018.1.0b5
Not reproducible with: 2018.1.0b4, 2013.3.1p2, 2017.2.2f1
Regression introduced in: 2018.1.0b5

Example code:
var a = new NativeArray<int>(100, Allocator.Temp);
var b = new NativeArray<int>(100, Allocator.Temp);
Debug.Log(a.Equals(b));

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.