Unity-Technologies / com.unity.netcode.gameobjects

Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.
MIT License
2.11k stars 430 forks source link

Netcode Error #2752

Open fusva opened 9 months ago

fusva commented 9 months ago

Description

A clear and[Netcode] A ConnectionApprovedMessage was received from a client on the server side. This should not happen. Please report this to the Netcode for GameObjects team at https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues and include the following data: Message Size: 170. Message Content: 02 02 7d 9a e2 a5 01 7d 9a e2 a5 01 b2 36 17 b3 01 b2 36 17 b3 01 46 c4 ca 04 01 46 c4 ca 04 01 39 3b e8 2c 01 39 3b e8 2c 01 ab c9 50 60 01 ab c9 50 60 01 53 a3 38 44 01 53 a3 38 44 01 d3 f6 1c b8 01 d3 f6 1c b8 01 a6 22 89 97 01 a6 22 89 97 01 b5 fe 01 74 01 b5 fe 01 74 01 be 97 be 73 01 be 97 be 73 01 9d 9a 5c 01 01 9d 9a 5c 01 01 e9 51 97 17 01 e9 51 97 17 01 8a f7 e7 83 01 8a f7 e7 83 01 42 7f 88 c6 01 42 7f 88 c6 01 97 a3 f5 46 01 97 a3 f5 46 01 00 00 00 00 01 00 00 00 00 01 f1 c9 71 8e 18 3d 3c 64 UnityEngine.Debug:LogError (object) Unity.Netcode.NetworkLog:LogError (string) (at Library/PackageCache/com.unity.netcode.gameobjects@1.6.0/Runtime/Logging/NetworkLog.cs:34) Unity.Netcode.NetworkManagerHooks:OnVerifyCanReceive (ulong,System.Type,Unity.Netcode.FastBufferReader,Unity.Net

,ulong,single,int) (at Library/PackageCache/com.unity.netcode.gameobjects@1.6.0/Runtime/Messaging/NetworkMessageManager.cs:407) Unity.Netcode.NetworkMessageManager:ProcessIncomingMessageQueue () (at Library/PackageCache/com.unity.netcode.gameobjects@1.6.0/Runtime/Messaging/NetworkMessageManager.cs:458) Unity.Netcode.NetworkManager:NetworkUpdate (Unity.Netcode.NetworkUpdateStage) (at Library/PackageCache/com.unity.netcode.gameobjects@1.6.0/Runtime/Core/NetworkManager.cs:42) Unity.Netcode.NetworkUpdateLoop:RunNetworkUpdateStage (Unity.Netcode.NetworkUpdateStage) (at Library/PackageCache/com.unity.netcode.gameobjects@1.6.0/Runtime/Core/NetworkUpdateLoop.cs:185) Unity.Netcode.NetworkUpdateLoop/NetworkEarlyUpdate/<>c:b__0_0 () (at Library/PackageCache/com.unity.netcode.gameobjects@1.6.0/Runtime/Core/NetworkUpdateLoop.cs:208)

e.FastBufferReader,Unity.Netcode.NetworkContext&) (at Library/PackageCache/com.unity.netcode.gameobjects@1.6.0/Runtime/Messaging/NetworkMessageManager.cs:325) Unity.Netcode.NetworkMessageManager:HandleMessage (Unity.Netcode.NetworkMessageHeader&,Unity.Netcode.FastBufferReader,ulong,single,int) (at Library/PackageCache/com.unity.netcode.gameobjects@1.6.0/Runtime/Messaging/NetworkMessageManager.cs:407) Unity.Netcode.NetworkMessageManager:ProcessIncomingMessageQueue () (at Library/PackageCache/com.unity.netcode.gameobjects@1.6.0/Runtime/Messaging/NetworkMessageManager.cs:458) Unity.Netcode.NetworkManager:NetworkUpdate (Unity.Netcode.NetworkUpdateStage) (at Library/PackageCache/com.unity.netcode.gameobjects@1.6.0/Runtime/Core/NetworkManager.cs:42) Unity.Netcode.NetworkUpdateLoop:RunNetworkUpdateStage (Unity.Netcode.NetworkUpdateStage) (at Library/PackageCache/com.unity.netcode.gameobjects@1.6.0/Runtime/Core/NetworkUpdateLoop.cs:185) Unity.Netcode.NetworkUpdateLoop/NetworkEarlyUpdate/<>c:b__0_0 () (at Library/PackageCache/com.unity.netcode.gameobjects@1.6.0/Runtime/Core/NetworkUpdateLoop.cs:208) concise description of what the bug is.

Reproduce Steps

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Actual Outcome

A clear and concise description of what happened and broke.

Expected Outcome

A clear and concise description of what you expected to happen.

Screenshots

If applica NetcodeError ble, add screenshots to help explain your problem.

Environment

Additional Context

Add any other context about the problem here. Logs, code snippets would be useful here but please also consider attaching a minimal Unity project that reproduces the issue.

thunfischtoast commented 9 months ago

Have you turned off Burst Compilation or Checkend "Enter Play Mode Options" in the Editor Settings? If so, reverse that. That was the problem for me

fluong6 commented 9 months ago

Hi @fusva,

To better understand the nature of the issue, can you provide us the transport protocol you are using for your project? If your project is not using UTP (com.unity.transport), can you try it with UTP and see if you are still encountering this issue?

Furthermore, the version of NGO you are currently using is outdated (NGO 1.0.0-pre.6). To ensure you have the best experience and access to the latest features and improvements, it is recommended to the latest NGO version (NGO 1.7.0), which is supported on Unity 2021.3 or later.

fusva commented 9 months ago

Hello, I think if I give you access to the entire project I am working on https://drive.google.com/drive/folders/1mGaxaXslvTAv-vimWYBRl3NvoBPxDU3s?usp=sharing

On Wed, 1 Nov 2023 at 14:12, Frank Luong @.***> wrote:

Hi @fusva https://github.com/fusva,

To better understand the nature of the issue, can you provide us the transport protocol you are using for your project? If your project is not using UTP (com.unity.transport), can you try it with UTP and see if you are still encountering this issue?

Furthermore, the version of NGO you are currently using is outdated (NGO 1.0.0-pre.6). To ensure you have the best experience and access to the latest features and improvements, it is recommended to the latest NGO version (NGO 1.7.0), which is supported on Unity 2021.3 or later.

— Reply to this email directly, view it on GitHub https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/2752#issuecomment-1789028126, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZBXOZCVTY2QOKGZJQKDZ2LYCJKEDAVCNFSM6AAAAAA6SS4BKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBZGAZDQMJSGY . You are receiving this because you were mentioned.Message ID: <Unity-Technologies/com.unity.netcode.gameobjects/issues/2752/1789028126@ github.com>