MixedRealityToolkit icon indicating copy to clipboard operation
MixedRealityToolkit copied to clipboard

Can SharingService.exe Support multiple apps running at once

Open foxvalleysoccer opened this issue 7 years ago • 2 comments

Sorry if this is the wrong place to ask this.

Can the sharingservice.exe support multiple sharing apps running at once? I have two apps hitting the same service the first connects and shares the second one closes once it creates a session on the sharing service. Both run independently.

Thanks for the help.

foxvalleysoccer avatar Mar 07 '18 15:03 foxvalleysoccer

I've just started looking into this. I experience exactly the same issue, a second session is created but the client that tries to join crashes. Interestingly I get a slightly different result when running in Unity and on a HoloLens device, the latter proceeds to leave the session for some reason and then crashes on an assert: SharingService [....\Source\Common\Private\Environment.cpp (19)]: Assert (....\Source\Common\Private\SessionImpl.cpp:147) GetMachineSessionState() == MachineSessionState::DISCONNECTED (Filename: C:\buildslave\unity\build\artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)

The source file is here, I would suspect that the issue is with SessionImpl::Join that starts on line 58: https://github.com/Microsoft/MixedRealityToolkit/blob/master/Sharing/Src/Source/Common/Private/SessionImpl.cpp

anders-lundgren avatar May 23 '18 15:05 anders-lundgren

Ok, so in my case, this was due to my Azure host firewall rules not allowing access to new sessions when they reached below port 26000. I can have multiple separate sessions running now on the same server.

anders-lundgren avatar May 25 '18 12:05 anders-lundgren