tana / Mondeto

An open, flexible, and secure online virtual reality system.
MIT License
39 stars 0 forks source link

Cannot send large field value #94

Open tana opened 3 years ago

tana commented 3 years ago
Exception: Exception of type 'System.Exception' was thrown.
  at Microsoft.MixedReality.WebRTC.Interop.Utils.ThrowOnErrorCode (System.UInt32 res) [0x00015] in <523f54ef16b44aa2825132fea54da877>:0
  at Microsoft.MixedReality.WebRTC.DataChannel.SendMessage (System.Byte[] message) [0x00031] in <523f54ef16b44aa2825132fea54da877>:0
  at Connection.SendMessage[T] (Connection+ChannelType type, T msg) [0x00008] in /opt/workspace/workspace/satoshi-tanaka.mondeto.windows64/Assets/Scripts/Core/Connection.cs:194
  at SyncNode.SyncFrame (System.Single dt) [0x002c5] in /opt/workspace/workspace/satoshi-tanaka.mondeto.windows64/Assets/Scripts/Core/SyncNode.cs:140
  at SyncBehaviour.FixedUpdate () [0x00082] in /opt/workspace/workspace/satoshi-tanaka.mondeto.windows64/Assets/Scripts/UnityInterface/SyncBehaviour.cs:163

(Filename: <523f54ef16b44aa2825132fea54da877> Line: 0)

It seems like indicating the field data of a mesh (vertices, indices, etc.) is exceeding the maximum packet size of WebRTC.

tana commented 2 years ago

Protocol was changed to QUIC-based one (see #114 ), but due to size limit of QUIC datagrams, it is not possible to send large field values such as mesh data. Therefore this problem is not solved yet.