Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Hard crash when sending/receiving ghost snapshots of child entities

Discussion in 'Entity Component System' started by TRS6123, Jul 23, 2020.

  1. TRS6123

    TRS6123

    Joined:
    May 16, 2015
    Posts:
    246
    Just thought I'd post my case on the forum.

    1. What happened
    Using netcube sample as a base, I added a child entity to the Cube, updated the component list, and generated the snapshot code. When I entered playmode, the editor crashed. This seems to happen when any child entity of an instantiated ghost is sending/receiving snapshots.

    2. How we can reproduce it using the example you attached
    Make sure the Netcube scene is loaded.
    Enter playmode.

    Case 1265378.
     
  2. florianhanke

    florianhanke

    Joined:
    Jun 8, 2018
    Posts:
    426
    I probably have the same issue since moving away from 2020.1.b10 to any higher version. Hard crash, and the editor.log contains this:
    Code (CSharp):
    1. Obtained 256 stack frames.
    2. #0  0x00000100000000 in (Unknown)
    3. #1  0x0000018503a883 in  Unity.NetCode.GhostSendSystem`1/SerializeJob<NetworkGhostSerializerCollection>:Execute () {0x7f9a8da4a400} + 0x783 (0x18503a100 0x18503e62b) [0x139e42960 - Unity Child Domain]
    4. #2  0x000001850394fb in  Unity.Jobs.IJobExtensions/JobStruct`1<Unity.NetCode.GhostSendSystem`1/SerializeJob<NetworkGhostSerializerCollection>>:Execute (Unity.NetCode.GhostSendSystem`1/SerializeJob<NetworkGhostSerializerCollection>&,intptr,intptr,Unity.Jobs.LowLevel.Unsafe.JobRanges&,int) {0x7f9a8ffecde0} + 0x1b (0x1850394e0 0x185039500) [0x139e42960 - Unity Child Domain]
    5. #3  0x00000000000000 in (Unknown)
    6. ... (252 entries removed)
    7. #2550x007f9b24a7e878 in (Unknown)
     
  3. Lukas_Kastern

    Lukas_Kastern

    Joined:
    Aug 31, 2018
    Posts:
    97
    Last edited: Jul 23, 2020
  4. florianhanke

    florianhanke

    Joined:
    Jun 8, 2018
    Posts:
    426
    Thank you so much, again! This fixes it for me as well. What a bug.
     
    hardcodednumber and bb8_1 like this.