Search Issue Tracker
Fixed in 5.2.0
Votes
0
Found in
4.6.1p5
Issue ID
669710
Regression
No
[WP8.1] Build fails if a native plugin uses collection interfaces
To reproduce:
1. Open attached repro project
2. Build for Windows Phone 8.1
3. Notice the errors in console:
Error building Player: Exception: Failed to run Reference Rewriter with cmdline --target="Temp/StagingArea\Assembly-CSharp-firstpass.dll" --framework="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhoneApp\v8.1" --platform="C:\Program Files (x86)\Windows Phone Kits\8.1\References\CommonConfiguration\Neutral\Windows.winmd" --support="Temp/StagingArea\WinRTLegacy.dll" --supportpartialns=Unity.Partial --system=System --dbg=pdb --alt=System.Xml.Serialization --ignore=System.IConvertible,mscorlib.[Temp/StagingArea\Assembly-CSharp-firstpass.dll]
Catastrophic failure while running rrw: System.ArgumentException: Invalid type name!
Parameter name: Windows.Foundation.Collections.IVector`1<System.Int32
at Unity.ReferenceRewriter.TypeAliases.GetTemplateArguments(String type)
at Unity.ReferenceRewriter.TypeAliases.AreAliases(String typeA, String typeB)
at Unity.ReferenceRewriter.TypeAliases.AreAliases(String typeA, String typeB)
at Unity.ReferenceRewriter.TypeAliases.AreAliases(String typeA, String typeB)
at Unity.ReferenceRewriter.RewriteTypeReferences.AreSame(TypeReference a, TypeReference b)
at Unity.ReferenceRewriter.RewriteTypeReferences.AreSame(Collection`1 a, Collection`1 b)
at Unity.ReferenceRewriter.RewriteTypeReferences.GetMethodDefinition(IEnumerable`1 methods, MethodReference reference)
at Unity.ReferenceRewriter.RewriteTypeReferences.ResolveManually(MethodReference method)
at Unity.ReferenceRewriter.RewriteTypeReferences.Visit(MethodReference method, String referencingEntityName)
at Unity.ReferenceRewriter.ReferenceDispatcher.Visit(MethodReference method, String referencingEntityName)
at Unity.ReferenceRewriter.ReferenceDispatcher.DispatchMethodBody(MethodBody body)
at Unity.ReferenceRewriter.ReferenceDispatcher.DispatchMethod(MethodDefinition method)
at Unity.ReferenceRewriter.ReferenceDispatcher.DispatchMethods(TypeDefinition type)
at Unity.ReferenceRewriter.ReferenceDispatcher.Dispatch()
at Unity.ReferenceRewriter.RewriteOperation.Execute(RewriteContext context)
at Unity.ReferenceRewriter.Program.Main(String[] args)
These errrors are caused by the native plugin that uses an IMap<IMap<IVector<int>^, IVector<int>^>^, IMap<IVector<int>^, IVector<int>^>^>^
Workaround: build with 'C# projects' enabled
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment