Search Issue Tracker

Fixed

Fixed in 1.0.8

Votes

0

Found in [Package]

1.0.8

Issue ID

N4EBUG-9

Regression

No

Crash with Unity.Networking.Transport.NetworkDriver:Connect when using NetworkStreamRequestConnect

Package: Unity Netcode

-

Reproduction steps:
1. Open the attached user's project
2. Open scene "Scenes/SampleScene"
3. Enter Play mode

Expected result: The Editor enters Play mode and NetworkStreamRequestConnect works correctly
Actual result: The Editor enters Play mode, starts repeatedly throwing exceptions and sometimes crashes

Reproducible with: 1.0.0-pre.65 (2022.2.16f1, 2022.2.20f1)

Reproducible on: macOS 13.3.1 (Intel)

Note:
Exception thrown:
InvalidOperationException: Structural changes are not allowed while iterating over entities. Please use EntityCommandBuffer instead.

Stacktrace:
#0 0x007ff807054e89 in _platform_bzero$VARIANT$Haswell
#1 0x0000010aba5046 in UnsafeUtility_CUSTOM_MemSet(void*, unsigned char, long long)
#2 0x0000020a4bb201 in (wrapper managed-to-native) Unity.Collections.LowLevel.Unsafe.UnsafeUtility:MemSet (void*,byte,long) [{0x7feb46523c58} + 0x91] (0x20a4bb170 0x20a4bb2a5) [0x162fc2a80 - Unity Child Domain]
#3 0x000001f6f3cd5b in Unity.Networking.Transport.NetworkDriver:Connect (Unity.Networking.Transport.NetworkEndpoint) [{0x7febc42a2478} + 0x28b] [./Library/PackageCache/com.unity.transport@2.0.0-pre.6/Runtime/NetworkDriver.cs :: 895u] (0x1f6f3cad0 0x1f6f3cdcb) [0x162fc2a80 - Unity Child Domain]
#4 0x000001f6f3b4bb in Unity.NetCode.NetworkStreamDriver:Connect (Unity.Entities.EntityManager,Unity.Networking.Transport.NetworkEndpoint,Unity.Entities.Entity) [{0x7febc41f3250} + 0x3bb] [./Library/PackageCache/com.unity.netcode@1.0.0-pre.65/Runtime/Connection/NetworkStreamDriver.cs :: 175u] (0x1f6f3b100 0x1f6f3b90a) [0x162fc2a80 - Unity Child Domain]

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.