Matchmaking is broken on Windows Store Applications

Creating a match through UNET match maker on WSA causes AccessViolationException.

Steps to recreate in Unity:

  1. Create empty gameobject, add NetworkManager component
  2. Create new prefab with NetworkIdentity component, name it player
  3. Drag the player prefab to the NetworkManager as player prefab under Spawn Info
  4. Add the script below as new component to the same gameobject (with name CreateMatch):
using UnityEngine;
using System.Collections;
using UnityEngine.Networking.Match;
using UnityEngine.Networking;
using UnityEngine.Networking.Types;

public class CreateMatch : MonoBehaviour {
private int appId = 113202;

void Start () {
NetworkManager manager = GetComponent<NetworkManager>();

manager.StartMatchMaker();

manager.matchMaker.SetProgramAppID((AppID)appId);

manager.matchMaker.CreateMatch("roomname", 2, false, "password", (CreateMatchResponse matchInfo) => {
Debug.Log("Created game: " + matchInfo.success);
manager.OnMatchCreate(matchInfo);
});
}
}
  1. Save scene

  2. Build for WSA (8.1, local machine, leave debugging options unchecked)

  3. Open the solution in VS

  4. In VS, Under Package.appxmanifest → Capabilities, check Internet (client) and Internet (client & server)

  5. Debug on local machine

When debugging, I get AccessViolationException once the start script runs. This happens both on desktop and phone.

Yeah, I’ve made a bug report of it, but posting this hoping someone might have ideas or suggestions here. Any chance to get someone looking into this? Because of this, the matchmaking (networking) is now completely broken for Windows Store Applications.

Case number please?

Case number is 747549

Thanks, we’ll look into it.

Any progress with this?

Fix is done, now it’s going through release process. Should reach you in patch releases soon.

The story is, 5.2 patch will no longer be coming out officially.

The fix will be present in upcoming 5.3.1 patch 4…