Search Issue Tracker
Fixed
Votes
0
Found in [Package]
1.0.8
1.0.10
Issue ID
MTTB-275
Regression
No
GhostComponent and GhostEnabledBit attributes throw “System.InvalidOperationException” errors in Server
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}
Notes:
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on CheckDeviceStatus when converting materials from built-in to URP and using DX12
- Higher CPU frame time on Android devices with Cortex-A510 efficiency cores (vs Cortex-A55)
- Alt+click on List header does not recursively toggle child foldouts when items use a UI Toolkit CustomPropertyDrawer
- Hub Window is closed when closing Unity AI Window via the OS Window Close Button on Windows
- Artifacts are rendered in UITK when using Font Assets and using negative outlines
Resolution Note:
The issue is not reproducible anymore when the following package updates are made:
- Netcode for Entities upgraded to 1.4.0
- Editor updated to 2022.3 (N4Ev1.4.0 was supported from that editor version)
- Entities Graphics updated to 1.4.5 (needed to be updated in order to resolve compatibility issues)
- Unity Physics updated to 1.3.8 (needed to be updated in order to resolve compatibility issues)
Resolution Note:
The issue is not reproducible anymore when the following package updates are made:
- Netcode for Entities upgraded to 1.4.0
- Editor updated to 2022.3 (N4Ev1.4.0 was supported from that editor version)
- Entities Graphics updated to 1.4.5 (needed to be updated in order to resolve compatibility issues)
- Unity Physics updated to 1.3.8 (needed to be updated in order to resolve compatibility issues)