System.ArgumentException for Multipeer Networking in 2.5.2

Include the following details (edit as applicable):

  • Issue category: ARDK / ARDK Virtual Studio Tools / Developer Tools
  • Host machine & OS version: Mac Ventura M1
  • Issue Environment : Unity Mock
  • Xcode version:
  • ARDK version: 2.5.2
  • Unity version: 2021.3.f20

Description of the issue:

When I try to launch the game in editor I get the following exception. Does anybody know what this is about?

thanks a lot it advance :slight_smile:

System.ArgumentException: Cannot be null or empty.
Parameter name: metadata
  at Niantic.ARDK.VirtualStudio.Networking.Mock._MockMultipeerNetworking.Join (System.Byte[] metadata, System.Byte[] token, System.Int64 timestamp) [0x0010e] in /Applications/Unity/AR_SandBox_AliveStudios_1.3_URP/Royal_Sky_1.4/RoyalSky_1.4/Assets/ARDK/VirtualStudio/Networking/_MockMultipeerNetworking.cs:135 
  at Niantic.ARDK.Extensions.NetworkSessionManager.Connect () [0x00057] in /Applications/Unity/AR_SandBox_AliveStudios_1.3_URP/Royal_Sky_1.4/RoyalSky_1.4/Assets/ARDK/Extensions/NetworkSessionManager.cs:242 
  at Niantic.ARDK.Extensions.NetworkSessionManager.EnableFeaturesImpl () [0x0002e] in /Applications/Unity/AR_SandBox_AliveStudios_1.3_URP/Royal_Sky_1.4/RoyalSky_1.4/Assets/ARDK/Extensions/NetworkSessionManager.cs:160 
  at Niantic.ARDK.Extensions.UnityLifecycleDriver.EnableFeatures () [0x00030] in /Applications/Unity/AR_SandBox_AliveStudios_1.3_URP/Royal_Sky_1.4/RoyalSky_1.4/Assets/ARDK/Extensions/UnityLifecycleDriver.cs:170 
  at Niantic.ARDK.Extensions.ARNetworkingManager.EnableSessionManagers () [0x0000b] in /Applications/Unity/AR_SandBox_AliveStudios_1.3_URP/Royal_Sky_1.4/RoyalSky_1.4/Assets/ARDK/Extensions/ARNetworkingManager.cs:179 
  at Niantic.ARDK.Extensions.ARNetworkingManager.CreateOnARSessionInitialized (Niantic.ARDK.AR.ARSessionEventArgs.AnyARSessionInitializedArgs args) [0x0003b] in /Applications/Unity/AR_SandBox_AliveStudios_1.3_URP/Royal_Sky_1.4/RoyalSky_1.4/Assets/ARDK/Extensions/ARNetworkingManager.cs:123 
  at (wrapper delegate-invoke) Niantic.ARDK.Utilities.ArdkEventHandler`1[Niantic.ARDK.AR.ARSessionEventArgs.AnyARSessionInitializedArgs].invoke_void_TArgs(Niantic.ARDK.AR.ARSessionEventArgs.AnyARSessionInitializedArgs)
  at Niantic.ARDK.AR.ARSessionFactory._InvokeSessionInitialized (Niantic.ARDK.AR.IARSession session, System.Boolean isLocal) [0x0002e] in /Applications/Unity/AR_SandBox_AliveStudios_1.3_URP/Royal_Sky_1.4/RoyalSky_1.4/Assets/ARDK/AR/ARSessionFactory.cs:171 
  at Niantic.ARDK.AR.ARSessionFactory.Create (Niantic.ARDK.RuntimeEnvironment env, System.Guid stageIdentifier) [0x00095] in /Applications/Unity/AR_SandBox_AliveStudios_1.3_URP/Royal_Sky_1.4/RoyalSky_1.4/Assets/ARDK/AR/ARSessionFactory.cs:74 
  at Niantic.ARDK.AR.ARSessionFactory.Create (Niantic.ARDK.RuntimeEnvironment env, System.Guid stageIdentifier) [0x00003] in /Applications/Unity/AR_SandBox_AliveStudios_1.3_URP/Royal_Sky_1.4/RoyalSky_1.4/Assets/ARDK/AR/ARSessionFactory.cs:43 
  at Niantic.ARDK.Extensions.ARSessionManager.Create () [0x00054] in /Applications/Unity/AR_SandBox_AliveStudios_1.3_URP/Royal_Sky_1.4/RoyalSky_1.4/Assets/ARDK/Extensions/ARSessionManager.cs:224 
  at Niantic.ARDK.Extensions.ARSessionManager.CreateAndRun () [0x00000] in /Applications/Unity/AR_SandBox_AliveStudios_1.3_URP/Royal_Sky_1.4/RoyalSky_1.4/Assets/ARDK/Extensions/ARSessionManager.cs:251 
  at Niantic.ARDK.Extensions.ARSessionManager+<>c__DisplayClass31_0.<ScheduleCreateAndRunOnNextUpdate>b__0 () [0x0001b] in /Applications/Unity/AR_SandBox_AliveStudios_1.3_URP/Royal_Sky_1.4/RoyalSky_1.4/Assets/ARDK/Extensions/ARSessionManager.cs:159 
  at Niantic.ARDK.Utilities._CallbackQueue.ConsumeQueue () [0x00042] in /Applications/Unity/AR_SandBox_AliveStudios_1.3_URP/Royal_Sky_1.4/RoyalSky_1.4/Assets/ARDK/Utilities/_CallbackQueue.cs:70  from context: 
UnityEngine.Debug:LogError (object)
Niantic.ARDK.Utilities.Logging.UnityARLogHandler:Error (string) (at Assets/ARDK/Utilities/Logging/LogHandler/UnityARLogHandler.cs:41)
Niantic.ARDK.Utilities.Logging.ARLog:_Exception (System.Exception,object) (at Assets/ARDK/Utilities/Logging/ARLog.cs:226)
Niantic.ARDK.Utilities._CallbackQueue:ConsumeQueue () (at Assets/ARDK/Utilities/_CallbackQueue.cs:75)
Niantic.ARDK.Utilities._CallbackQueue:Update () (at Assets/ARDK/Utilities/_CallbackQueue.cs:116)

I solved the issue.
TLDR: There were two AR Session Managers in the scene.

This topic was automatically closed 2 hours after the last reply. New replies are no longer allowed.

Glad to know you got your issue resolved!

1 Like