Search Issue Tracker


Under Consideration for 1.0.X



Found in [Package]


Issue ID




GhostComponent and GhostEnabledBit attributes throw “System.InvalidOperationException” errors in Server

Package: Unity Netcode


How to reproduce:
1. Open the “netcube“ project
2. Open the “NetCube“ scene
3. In the “Bootstrap” Prefab change the “Ip Address” to your IP (Project > Assets > Samples > Bootstrap)
4. Build the project
5. Enter Play mode
6. Run the built Player
7. Observe the Console in the Editor Game view

Expected result: no errors are logged to the Console of the Server
Actual result: “System.InvalidOperationException” error is logged to the Console on the Server

Reproduced with: 1.0.8, 1.0.10 (2022.2.21f1)
Could not test with: 1.0.8 (2021.3.27f1), 1.0.10 (2021.3.27f1) (Project depends on Entity Graphics Package which is not supported), 1.0.8, 1.0.10 (2022.3.1f1) (Logging Package conflicts), 1.0.8, 1.0.10 (2023.1.0b20) (Player crashes), 1.0.8, 1.0.10 (2023.2.0a18) (Could not resolve package errors)

Reproduced on: Windows 10 (by reporter), Windows 11

Error logged to the Console:

{noformat}System.InvalidOperationException: Read only {0} enable bits but expected to read exacly {1} for this ghost type
This Exception was thrown from a job compiled with Burst, which has limited exception support.
0x00007ff8bca00775 (bb0d57a2c86dfc658b40ab7c591f0bb) Unity.NetCode.GhostUpdateSystem/UpdateJob::Unity.NetCode.GhostUpdateSystem.UpdateJob.Execute (at C:/Users/sebastiantermen/Unity Projects/WORK/Test/IN-41882/1/Library/PackageCache/com.unity.burst@1.8.4/.Runtime/Library/PackageCache/com.unity.netcode@1.0.10/Runtime/Snapshot/GhostUpdateSystem.cs:482)
0x00007ff8bc9f5f9d (bb0d57a2c86dfc658b40ab7c591f0bb) Unity.Entities.JobChunkExtensions.JobChunkProducer`1<Unity.NetCode.GhostUpdateSystem.UpdateJob>.ExecuteInternal (at C:/Users/sebastiantermen/Unity Projects/WORK/Test/IN-41882/1/Library/PackageCache/com.unity.burst@1.8.4/.Runtime/Library/PackageCache/com.unity.entities@1.0.10/Unity.Entities/IJobChunk.cs:400)
0x00007ff8bc9f1566 (bb0d57a2c86dfc658b40ab7c591f0bb) bf95954b7b8fb4696928b56256faf5e3
0x00007ff6a9210c7c (Unity) ExecuteJob
0x00007ff6a9210fe4 (Unity) ExecuteJobCopyData
0x00007ff6a9211cff (Unity) ForwardJobForEachToManaged
0x00007ff6a920dece (Unity) ujob_execute_job
0x00007ff6a920d384 (Unity) lane_guts
0x00007ff6a920fee4 (Unity) worker_thread_routine
0x00007ff6a943d807 (Unity) Thread::RunThreadWrapper
0x00007ffa38a326ad (KERNEL32) BaseThreadInitThunk
0x00007ffa3a1ea9f8 (ntdll) RtlUserThreadStart{noformat}

1. Reproducible with 2 Player instances → one server Player, one client Player
2. On Windows, the IP can be found with the following cmd command {{ipconfig -all}}
3. Since the issue is reproducible in the 2022.2 stream it is highly likely that it is reproducible in the 2022.3 stream as well
4. In the internal comments there is a link to the Logging Package issue

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.