Search Issue Tracker

Won't Fix

Votes

0

Found in

2018.3.0a1

2018.3.0f2

2019.1.0a1

Issue ID

1110759

Regression

No

Editor crashes with mono_add_process_object when running Unit tests

Mono

-

How to reproduce:
1. Open attached project "Svelto.Tasks.Tests"
2. Open Test Runner window and run "TestUltraNaiveEnumerator2"
----------
Observe the crash

Reproduced with: 2018.3.2f1, 2019.1.0a13
Unable to reproduce with 2017.4 because of tests compilation errors due to scripting changes.

  1. Resolution Note:

    Crash is caused by overlapping object and non-object fields in memory, which is not allowed.

    E.g.
    [StructLayout(LayoutKind.Explicit)]
    public struct InvalidUnion
    {
    [FieldOffset(0)] public object reference;
    [FieldOffset(0)] public long int64;
    }

Add comment

Log in to post comment

All about bugs

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