Get 2 similar errors spamming when run the game at editor when setup enableable ghost component to be like this.
[GhostComponent(SendDataForChildEntity = true, SendTypeOptimization = GhostSendType.OnlyPredictedClients, OwnerSendType = SendToOwnerType.SendToOwner)]
[GhostEnabledBit]
public struct EnableableComponent : IComponentData, IEnableableComponent
{
[GhostField]
public bool value;
}
InvalidOperationException: Read only 0 enable bits but expected to read exacly 152 for this ghost type
Unity.NetCode.GhostUpdateSystem+UpdateJob.ValidateAllEnableBitsHasBeenRead (System.Int32 enableableMaskOffset, System.Int32 numEnableBits) (at ./Library/PackageCache/com.unity.netcode@1.0.8/Runtime/Snapshot/GhostUpdateSystem.cs:112)
Unity.NetCode.GhostUpdateSystem+UpdateJob.Execute (Unity.Entities.ArchetypeChunk& chunk, System.Int32 unfilteredChunkIndex, System.Boolean useEnabledMask, Unity.Burst.Intrinsics.v128& chunkEnabledMask) (at ./Library/PackageCache/com.unity.netcode@1.0.8/Runtime/Snapshot/GhostUpdateSystem.cs:656)
Unity.NetCode.GhostUpdateSystem+UpdateJob.Unity.Entities.IJobChunk.Execute (Unity.Entities.ArchetypeChunk& chunk, System.Int32 unfilteredChunkIndex, System.Boolean useEnabledMask, Unity.Burst.Intrinsics.v128& chunkEnabledMask) (at :0)
Unity.Entities.JobChunkExtensions+JobChunkProducer1[T].ExecuteInternal (Unity.Entities.JobChunkExtensions+JobChunkWrapper1[T]& jobWrapper, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at ./Library/PackageCache/com.unity.entities@1.0.8/Unity.Entities/IJobChunk.cs:409)
Unity.Entities.JobChunkExtensions+JobChunkProducer1[T].Execute (Unity.Entities.JobChunkExtensions+JobChunkWrapper1[T]& jobWrapper, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at ./Library/PackageCache/com.unity.entities@1.0.8/Unity.Entities/IJobChunk.cs:357)
InvalidOperationException: Read only 0 enable bits but expected to read exacly 148 for this ghost type
Unity.NetCode.GhostUpdateSystem+UpdateJob.ValidateAllEnableBitsHasBeenRead (System.Int32 enableableMaskOffset, System.Int32 numEnableBits) (at ./Library/PackageCache/com.unity.netcode@1.0.8/Runtime/Snapshot/GhostUpdateSystem.cs:112)
Unity.NetCode.GhostUpdateSystem+UpdateJob.Execute (Unity.Entities.ArchetypeChunk& chunk, System.Int32 unfilteredChunkIndex, System.Boolean useEnabledMask, Unity.Burst.Intrinsics.v128& chunkEnabledMask) (at ./Library/PackageCache/com.unity.netcode@1.0.8/Runtime/Snapshot/GhostUpdateSystem.cs:656)
Unity.NetCode.GhostUpdateSystem+UpdateJob.Unity.Entities.IJobChunk.Execute (Unity.Entities.ArchetypeChunk& chunk, System.Int32 unfilteredChunkIndex, System.Boolean useEnabledMask, Unity.Burst.Intrinsics.v128& chunkEnabledMask) (at :0)
Unity.Entities.JobChunkExtensions+JobChunkProducer1[T].ExecuteInternal (Unity.Entities.JobChunkExtensions+JobChunkWrapper1[T]& jobWrapper, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at ./Library/PackageCache/com.unity.entities@1.0.8/Unity.Entities/IJobChunk.cs:409)
Unity.Entities.JobChunkExtensions+JobChunkProducer1[T].Execute (Unity.Entities.JobChunkExtensions+JobChunkWrapper1[T]& jobWrapper, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at ./Library/PackageCache/com.unity.entities@1.0.8/Unity.Entities/IJobChunk.cs:357)