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

Bug ArgumentException: Unity.Entities.PostLoadCommandBuffer is a class based IComponentData

Discussion in 'Entity Component System' started by Kirkules_, Nov 3, 2022.

  1. Kirkules_

    Kirkules_

    Joined:
    Aug 5, 2014
    Posts:
    65
    2022.2.0b13.112.4548
    Latest DOTS packages
    Managed Stripping Level: High

    I'm getting the following app crashing error only when I deploy the app to android. It doesn't happen in the Editor.

    Error Unity ArgumentException: Unity.Entities.PostLoadCommandBuffer is a class based IComponentData. Class based IComponentData must implement a default constructor.


    I have removed all the entities in the scene, and cleared the entities cache.. still happens without any entities in my scene.
     
    Last edited: Nov 3, 2022
  2. desertGhost_

    desertGhost_

    Joined:
    Apr 12, 2018
    Posts:
    258
    What version of the editor are you using? (e.g. 2022.2.0b13)
     
  3. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,626
    What striping level are you using?
     
  4. Kirkules_

    Kirkules_

    Joined:
    Aug 5, 2014
    Posts:
    65
    2022.2.0b13.112.4548
    Latest DOTS packages
    Managed Stripping Level: High
     
  5. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,626
    Anything above minimal (maybe low) won't work with entities atm i believe.
    It's likely just stripped your constructor away.
     
  6. Kirkules_

    Kirkules_

    Joined:
    Aug 5, 2014
    Posts:
    65
    Setting it to minimal (I'll try low next), that did it! It doesn't crash now!

    However, it's not rendering any of the entities on my Quest 2. I have com.unity.entites.graphics installed and I have it working with entities 0.51.. I'll post a separate thread
     
  7. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,626
    I noticed on graphics forums you already found the answer but just in case someone else stumbles upon this thread: https://forum.unity.com/threads/and...typeindex-for-type-hash.1354862/#post-8550311

    need to setup a link.xml to stop graphics stripping