MirrorNetworking / MirrorNetworking/Mirror

NetworkDiscovery no Fail to execute as scheduled

Open
#3,761 0 comments 0 reactions 1 assignee View on GitHub

@JesusLuvsYooh is already working on this.

Since Feb 8, 2024.

Needs Research
Dominant language
C#
Stars
6.3k
Forks
870
PR merge metrics
No merged PRs in 30d

Description

When I package to ios and Android real phones, one mobile phone started the service AdvertiseServer, Unity editor could find the server, but the other mobile phone could not find the server, Unity editor started the service AdvertiseServer, both mobile phones could not find the server, error message:
EndOfStreamException: ReadBlittable<System.Int64> not enough data in buffer
to read 8 bytes: [ @ 0/0]
at Mirror.NetworkReader.ReadBlittable[T] () [0x00000] in
<00000000000000000000000000000000>:0
at
Mirror.Discovery.NetworkDiscoveryBase`2[Request,Response].ReceiveGameBroadcastAsync
(System.Net.Sockets.UdpClient udpClient) [0x00000] in
<00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal
(System.Threading.ExecutionContext
executionContext, System.Threading.ContextCallback callback, System.Object
state, System.Boolean preserveSyncCtx) [0x00000] in
<00000000000000000000000000000000>:0
at
System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run
() [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke
() [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UnitySynchronizationContext.Exec () [0x00000] in
<00000000000000000000000000000000>:0
--- End of stack trace from previous

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.