Search Unity

Bug Exception when using NetDbg

Discussion in 'NetCode for ECS' started by Richay, Nov 4, 2023.

  1. Richay

    Richay

    Joined:
    Aug 5, 2013
    Posts:
    120
    When using NetDbg, at one point I was spammed with these errors. InCombatAftermath is an empty enableable component.

    Code (CSharp):
    1. System.ArgumentException: ArchetypeChunk.GetDynamicComponentDataArrayReinterpret<Game.Data.InCombatAftermath> cannot be called on zero-sized IComponentData
    2. This Exception was thrown from a job compiled with Burst, which has limited exception support.
    3. 0x00007ffb8246f45d (ce4831b15716d70cdf0e9b560eab975) Unity.Entities.ArchetypeChunk.GetDynamicComponentDataArrayReinterpret<byte> (at D:/project/Library/PackageCache/com.unity.burst@1.8.9/.Runtime/Library/PackageCache/com.unity.entities@1.1.0-exp.1/Unity.Entities/Iterators/ArchetypeChunkArray.cs:1754)
    4. 0x00007ffb824725fa (ce4831b15716d70cdf0e9b560eab975) Unity.NetCode.GhostPredictionDebugSystem.PredictionDebugJob.Execute (at D:/project/Library/PackageCache/com.unity.burst@1.8.9/.Runtime/Library/PackageCache/com.unity.netcode@1.1.0-exp.1/Runtime/Snapshot/GhostPredictionDebugSystem.cs:243)
    5. 0x00007ffb824715d5 (ce4831b15716d70cdf0e9b560eab975) Unity.Entities.JobChunkExtensions.JobChunkProducer`1<Unity.NetCode.GhostPredictionDebugSystem.PredictionDebugJob>.ExecuteInternal (at D:/project/Library/PackageCache/com.unity.burst@1.8.9/.Runtime/Library/PackageCache/com.unity.entities@1.1.0-exp.1/Unity.Entities/IJobChunk.cs:399)
    6. 0x00007ffb8246ad26 (ce4831b15716d70cdf0e9b560eab975) 01abd03a3ef94310f76bd0425bd430fb
    7. 0x00007ff661bcf54f (Unity) ExecuteJob
    8. 0x00007ff661bcf8b4 (Unity) ExecuteJobCopyData
    9. 0x00007ff661bd05ef (Unity) ForwardJobForEachToManaged
    10. 0x00007ff661bcc89e (Unity) ujob_execute_job
    11. 0x00007ff661bcbd54 (Unity) lane_guts
    12. 0x00007ff661bce7b4 (Unity) worker_thread_routine
    13. 0x00007ff661dfb0c7 (Unity) Thread::RunThreadWrapper
    14. 0x00007ffbdeaa7344 (KERNEL32) BaseThreadInitThunk
    15. 0x00007ffbdfa826b1 (ntdll) RtlUserThreadStart
    Unity 2022.3.9f1.
    Netcode 1.1.0-exp.1.
     
  2. NikiWalker

    NikiWalker

    Unity Technologies

    Joined:
    May 18, 2021
    Posts:
    313
    Hey Richay! Thanks for the report, I was able to repro it locally. Fix incoming. Would you mind filing it as a Unity Bug report, please? Then post the IN-XXXX here? Cheers.
     
  3. Richay

    Richay

    Joined:
    Aug 5, 2013
    Posts:
    120
    Sorry for the delay. I've uploaded a build as case IN-60339 for a different issue, but this issue is reproducible in it too.
     
  4. NikiWalker

    NikiWalker

    Unity Technologies

    Joined:
    May 18, 2021
    Posts:
    313
    This error has been fixed in [1.2.0-pre.4] - 2023-11-28, see entry:
    NetDbg ArgumentException when a predicted ghost contains a replicated enableable flag component.
     
    Richay likes this.