Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Editor crash on Play with single use of [GenerateAuthoringComponent]

Discussion in 'Entity Component System' started by astrogee, Feb 26, 2020.

  1. astrogee

    astrogee

    Joined:
    Feb 4, 2018
    Posts:
    16
    Hi!

    (2019.3.2f1 with Entities 0.6.0 on MacOS Catalina)

    I have a simple scene with a plane and a capsule in it. On the capsule I have attached an empty struct inheriting IComponentData using [GenerateAuthoringComponent]. When I press play the editor crashes to desktop. If I remove the above component, the crash does not happen. Here is my Editor.log

    https://gist.github.com/westmark/cb1990460d081f63df01ada5b214cafb

    I'm fairly new to unity, but it looks to me that this crash originates in Mono, even though the player settings clearly states I am using IL2CPP and not Mono as my scripting backend. I have tried switching them around and even changing between .NET standard 2.0 and .NET 4.x, but nothing seems to help. I installed the latest Mono which did not help either (although I'm not sure if Unity uses some bundled version of Mono). What more can I try?

    Cheers / Fredrik
     
  2. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    3,984
    This happened to me too on Windows and Unity 2019.3.1f1 when I was giving a workshop on DOTS. I wasn't using Asmdefs or namespaces like I usually do, and the issue doesn't affect my main work so I never looked into it.
     
  3. astrogee

    astrogee

    Joined:
    Feb 4, 2018
    Posts:
    16
    Zagule likes this.
  4. Zagule

    Zagule

    Joined:
    Aug 23, 2016
    Posts:
    4