Error in Serialization Weaver when using XboxLive in UWP

Hi,

I’m working on an XPA game and I’m trying to get the game to work with the Xbox Live SDK on Windows. I had it working on 5.3.4 and I’ve recently upgraded to 5.5.2f1 and built the game anew. I’m getting a weird error in the SerializationWeaver:

ystem.Exception: Exception while processing Microsoft.Xbox.Services.XboxLiveContext Microsoft.Xbox.Services.XboxLiveContext SaveSystem::context, error Version not supported: 255.255.255.255
2>     at Unity.Serialization.Weaver.MethodEmitterBase.WillUnitySerialize(FieldDefinition fieldDefinition)
2>     at Unity.Serialization.Weaver.SerializeMethodEmitterBase.ShouldProcess(FieldDefinition fieldDefinition)
2>     at System.Linq.Enumerable.<>c__DisplayClass6_0`1.<CombinePredicates>b__0(TSource x)
2>     at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
2>     at Unity.Serialization.Weaver.MethodEmitterBase.EmitMethodBody()
2>     at Unity.Serialization.Weaver.MethodEmitterBase.CreateMethodDef(String methodName)
2>     at Unity.Serialization.Weaver.SerializeMethodEmitter.SerializeMethodDefinitionFor(TypeDefinition typeDef, SerializationBridgeProvider serializationBridgeProvider)
2>     at Unity.Serialization.Weaver.SerializationWeaver.AddSerializeMethod()
2>     at Unity.Serialization.Weaver.SerializationWeaver.Weave()
2>     at usw.Weaver.WeaveAssembly(String assemblyPath, AssemblyDefinition unityEngineAssemblyDefinition, ReaderParameters readerParameters)
2>     at usw.Weaver.Weave()
2>     at usw.Program.RunProgram(ConversionOptions options)
2>     at usw.Program.Main(String[] args)
2>D:\Unity\bin\Metro\Tachyon.NET\GeneratedProjects\UWP\Assembly-CSharp\Assembly-CSharp.csproj(179,5): error MSB3073: The command ""D:\Unity\bin\Metro\Tachyon.NET\Unity\Tools\SerializationWeaver\SerializationWeaver.exe" "D:\Unity\bin\Metro\Tachyon.NET\GeneratedProjects\UWP\Assembly-CSharp\bin\x64\Debug\Unprocessed\Assembly-CSharp.dll" -pdb -verbose -unity-engine="D:\Unity\bin\Metro\Tachyon.NET\Tachyon Project\Unprocessed\UnityEngine.dll" -unity-networking="D:\Unity\bin\Metro\Tachyon.NET\Tachyon Project\Unprocessed\UnityEngine.Networking.dll" -additionalAssemblyPath="D:\Unity\bin\Metro\Tachyon.NET\GeneratedProjects\UWP\Assembly-CSharp-firstpass\bin\x64\Debug" "D:\Unity\bin\Metro\Tachyon.NET\GeneratedProjects\UWP\Assembly-CSharp\obj\x64\Debug\x64\Debug"" exited with code 1.

I’d very much appreciate it if you could point me to what may be the problem and how to fix it.

Thanks!
Eduardo

Hi, this is a known issue that’s been fixed internally and is being backported as we speak. It’s possible to work around it by disabling the “C# projects” checkbox in the build window.

1 Like

Thanks for the quick answer! I’ve checked and it works as you say. When do you think you’ll have the fix for the issue published in a build? It’s obviously faster to work on VS for quick iteration (particularly when trying to get the Xbox Live stuff right). Alternatively, do you know if a previous build of Unity didn’t have that issue?

Thanks!
Eduardo

Unfortunately I’m not entirely sure when this broke. I expect the fix to be available in next week’s patch releases (no promises, though!).

Cool, thanks! I’ll keep an eye on it :slight_smile:
Cheers,
Eduardo

Do we know if this was ever fixed. I’m using the 5.6.0f3 and I’m seeing the same issue when I try to use the Xbox Live SDK even though I’m following the same steps I used before.

The fix is scheduled to be in the first patch release of 5.6, as well as the next 5.5 patch release. It’s coming out this week.

1 Like

This is awesome to hear. Thanks!!

Actually, the fix in already out in form of 5.5.3p1: https://unity3d.com/unity/qa/patch-releases

It’s still pending in 5.6.