Search Unity

Build Problem with Entities Preview 23

Discussion in 'Entity Component System' started by Held0fTheWelt, Feb 14, 2019.

  1. Held0fTheWelt

    Held0fTheWelt

    Joined:
    Sep 29, 2015
    Posts:
    173
    Yeah, what shall i say.
    I don't have any #if Unity_Editor, but whenever i build, i get sth. like this:

    Code (CSharp):
    1. PlayerConnection initialized from D:/Projects/Starlord-TheCockpit_18.3/build/RenderMeshCockpit_Data (debug = 0)
    2. PlayerConnection initialized network socket : 0.0.0.0 55114
    3. Multi-casting "[IP] 192.168.56.1 [Port] 55114 [Flags] 3 [Guid] 3204409007 [EditorId] 1170103862 [Version] 1048832 [Id] WindowsPlayer(DESKTOP-FJ6JAOT) [Debug] 0 [PackageName] WindowsPlayer" to [225.0.0.222:54997]...
    4. Waiting for connection from host on [0.0.0.0:55114]...
    5. Timed out. Continuing without host connection.
    6. Started listening to [0.0.0.0:55114]
    7. PlayerConnection already initialized - listening to [0.0.0.0:55114]
    8. Initialize engine version: 2018.3.5f1 (76b3e37670a4)
    9. GfxDevice: creating device client; threaded=1
    10. Direct3D:
    11.     Version:  Direct3D 11.0 [level 11.1]
    12.     Renderer: NVIDIA GeForce GTX 970 (ID=0x13c2)
    13.     Vendor:
    14.     VRAM:     4043 MB
    15.     Driver:   25.21.14.1881
    16. <RI> Initializing input.
    17.  
    18. New input system (experimental) initialized
    19. <RI> Input initialized.
    20.  
    21. <RI> Initialized touch support.
    22.  
    23. OpenVR initialized!
    24. (Filename: C:\buildslave\unity\build\Runtime/VR/OpenVR/OpenVR.cpp Line: 728)
    25.  
    26. Created eye textures with a "double wide" layout.  The "single-pass" stereo mode will be used.
    27.  
    28. (Filename: C:\buildslave\unity\build\Runtime/VR/VRDevice.cpp Line: 2264)
    29.  
    30. PlayerConnection accepted from [192.168.2.101] handle:0xb00
    31. WARNING: Shader Unsupported: 'Standard' - Pass 'META' has no vertex shader
    32. WARNING: Shader Unsupported: 'Standard' - Pass 'META' has no vertex shader
    33. The referenced script (Unity.Transforms.RotationComponent) on this Behaviour is missing!
    34. (Filename: C:\buildslave\unity\build\Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp Line: 195)
    35.  
    36. The referenced script (Unity.Transforms.CopyTransformFromGameObjectComponent) on this Behaviour is missing!
    37. (Filename: C:\buildslave\unity\build\Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp Line: 195)
    38.  
    39. The referenced script on this Behaviour (Game Object 'CockpitComplete') is missing!
    40. (Filename: C:\buildslave\unity\build\Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 294)
    41.  
    42. The referenced script on this Behaviour (Game Object 'CockpitComplete') is missing!
    43. (Filename: C:\buildslave\unity\build\Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 294)
    44.  
    45. A scripted object (probably Unity.Transforms.RotationComponent?) has a different serialization layout when loading. (Read 32 bytes but expected 48 bytes)
    46. Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
    47. (Filename: C:\buildslave\unity\build\Runtime/Serialize/SerializedFile.cpp Line: 2001)
    48.  
    49. UnloadTime: 0.439300 ms
    50. NullReferenceException: Object reference not set to an instance of an object.
    51.   at Unity.Entities.GameObjectEntity.GetComponents (UnityEngine.GameObject gameObject, System.Boolean includeGameObjectComponents, Unity.Entities.ComponentType[]& types, UnityEngine.Component[]& components) [0x00000] in <00000000000000000000000000000000>:0
    52.   at Unity.Entities.GameObjectEntity.AddToEntityManager (Unity.Entities.EntityManager entityManager, UnityEngine.GameObject gameObject) [0x00000] in <00000000000000000000000000000000>:0
    53.   at Unity.Entities.GameObjectEntity.Initialize () [0x00000] in <00000000000000000000000000000000>:0
    54.   at Unity.Entities.GameObjectEntity.OnEnable () [0x00000] in <00000000000000000000000000000000>:0
    55. (Filename: currently not available on il2cpp Line: -1)
    56.  
    57. Setting up 2 worker threads for Enlighten.
    58.   Thread -> id: 4e5c -> priority: 1
    59.   Thread -> id: 6d10 -> priority: 1
    60.  
    Currently it's just the model and a hybrid approach with position, rotation and scale

    Code (CSharp):
    1. PlayerConnection initialized from D:/Projects/Starlord-TheCockpit_18.3/build/RenderMeshCockpit_Data (debug = 0)
    2. PlayerConnection initialized network socket : 0.0.0.0 55256
    3. Multi-casting "[IP] 192.168.56.1 [Port] 55256 [Flags] 3 [Guid] 2483876131 [EditorId] 1263563305 [Version] 1048832 [Id] WindowsPlayer(DESKTOP-FJ6JAOT) [Debug] 0 [PackageName] WindowsPlayer" to [225.0.0.222:54997]...
    4. Waiting for connection from host on [0.0.0.0:55256]...
    5. Timed out. Continuing without host connection.
    6. Started listening to [0.0.0.0:55256]
    7. PlayerConnection already initialized - listening to [0.0.0.0:55256]
    8. Initialize engine version: 2018.3.5f1 (76b3e37670a4)
    9. GfxDevice: creating device client; threaded=1
    10. Direct3D:
    11.     Version:  Direct3D 11.0 [level 11.1]
    12.     Renderer: NVIDIA GeForce GTX 970 (ID=0x13c2)
    13.     Vendor:  
    14.     VRAM:     4043 MB
    15.     Driver:   25.21.14.1881
    16. <RI> Initializing input.
    17.  
    18. New input system (experimental) initialized
    19. <RI> Input initialized.
    20.  
    21. <RI> Initialized touch support.
    22.  
    23. OpenVR initialized!
    24. (Filename: C:\buildslave\unity\build\Runtime/VR/OpenVR/OpenVR.cpp Line: 728)
    25.  
    26. Created eye textures with a "double wide" layout.  The "single-pass" stereo mode will be used.
    27.  
    28. (Filename: C:\buildslave\unity\build\Runtime/VR/VRDevice.cpp Line: 2264)
    29.  
    30. PlayerConnection accepted from [192.168.2.101] handle:0xb00
    31. WARNING: Shader Unsupported: 'Standard' - Pass 'META' has no vertex shader
    32. WARNING: Shader Unsupported: 'Standard' - Pass 'META' has no vertex shader
    33. The referenced script (Unity.Entities.GameObjectEntity) on this Behaviour is missing!
    34. (Filename: C:\buildslave\unity\build\Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp Line: 195)
    35.  
    36. The referenced script (Unity.Rendering.RenderMeshComponent) on this Behaviour is missing!
    37. (Filename: C:\buildslave\unity\build\Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp Line: 195)
    38.  
    39. The referenced script (Unity.Transforms.PositionComponent) on this Behaviour is missing!
    40. (Filename: C:\buildslave\unity\build\Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp Line: 195)
    41.  
    42. The referenced script (Unity.Transforms.RotationComponent) on this Behaviour is missing!
    43. (Filename: C:\buildslave\unity\build\Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp Line: 195)
    44.  
    45. The referenced script (Unity.Transforms.ScaleComponent) on this Behaviour is missing!
    46. (Filename: C:\buildslave\unity\build\Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp Line: 195)
    47.  
    48. The referenced script (Unity.Transforms.CopyTransformFromGameObjectComponent) on this Behaviour is missing!
    49. (Filename: C:\buildslave\unity\build\Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp Line: 195)
    50.  
    51. The referenced script on this Behaviour (Game Object 'CockpitComplete') is missing!
    52. (Filename: C:\buildslave\unity\build\Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 294)
    53.  
    54. The referenced script on this Behaviour (Game Object 'Runtime Gizmo Manager') is missing!
    55. (Filename: C:\buildslave\unity\build\Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 294)
    56.  
    57. The referenced script on this Behaviour (Game Object 'CockpitComplete') is missing!
    58. (Filename: C:\buildslave\unity\build\Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 294)
    59.  
    60. The referenced script on this Behaviour (Game Object 'CockpitComplete') is missing!
    61. (Filename: C:\buildslave\unity\build\Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 294)
    62.  
    63. A scripted object (probably Unity.Transforms.ScaleComponent?) has a different serialization layout when loading. (Read 32 bytes but expected 44 bytes)
    64. Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
    65. (Filename: C:\buildslave\unity\build\Runtime/Serialize/SerializedFile.cpp Line: 2001)
    66.  
    67. The referenced script on this Behaviour (Game Object 'CockpitComplete') is missing!
    68. (Filename: C:\buildslave\unity\build\Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 294)
    69.  
    70. A scripted object (probably Unity.Transforms.RotationComponent?) has a different serialization layout when loading. (Read 32 bytes but expected 48 bytes)
    71. Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
    72. (Filename: C:\buildslave\unity\build\Runtime/Serialize/SerializedFile.cpp Line: 2001)
    73.  
    74. The referenced script on this Behaviour (Game Object 'CockpitComplete') is missing!
    75. (Filename: C:\buildslave\unity\build\Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 294)
    76.  
    77. A scripted object (probably Unity.Transforms.PositionComponent?) has a different serialization layout when loading. (Read 32 bytes but expected 44 bytes)
    78. Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
    79. (Filename: C:\buildslave\unity\build\Runtime/Serialize/SerializedFile.cpp Line: 2001)
    80.  
    81. The referenced script on this Behaviour (Game Object 'CockpitComplete') is missing!
    82. (Filename: C:\buildslave\unity\build\Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 294)
    83.  
    84. A scripted object (probably Unity.Rendering.RenderMeshComponent?) has a different serialization layout when loading. (Read 32 bytes but expected 72 bytes)
    85. Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
    86. (Filename: C:\buildslave\unity\build\Runtime/Serialize/SerializedFile.cpp Line: 2001)
    87.  
    88. UnloadTime: 0.512100 ms
    89. Setting up 2 worker threads for Enlighten.
    90.   Thread -> id: 47e8 -> priority: 1
    91.   Thread -> id: 11f0 -> priority: 1
    92.  
     
  2. Held0fTheWelt

    Held0fTheWelt

    Joined:
    Sep 29, 2015
    Posts:
    173
    Has to do something with my project setup ! ...
    I just took away another project, put everything in it, build it, and go fine.
    But this "solution" didn't come into my mind for a quite long time...