Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X
Votes
1
Found in
2019.4
2020.3
2020.3.6f1
2021.1
2021.2
Issue ID
1338763
Regression
No
UWP fails build linq error
How to reproduce:
1. Open the attached project (see the link in the edit)
2. Build to UWP
Actual result: Project build fails with error
Expected result: Project build succeeds
Reproducible with: 2019.4.28f1, 2020.3.12f1, 2021.1.10f1, 2021.2.0a19
Full error:
Exception: IL2CPP error for method 'System.Uri
Windows.Foundation.Uri::CombineUri(System.String)' in assembly
'WindowsRuntimeMetadata'
System.InvalidOperationException: Sequence contains no matching element
at System.Linq.ThrowHelper.ThrowNoMatchException()
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2
predicate)
at
Unity.IL2CPP.Marshaling.MarshalInfoWriters.UriMarshalInfoWriter.WriteMarshalVariableFromNative(IGeneratedMethodCodeWriter
writer, String variableName, ManagedMarshalValue destinationVariable,
IList`1 methodParameters, Boolean safeHandleShouldEmitAddRef, Boolean
forNativeWrapperOfManagedMethod, Boolean callConstructor,
IRuntimeMetadataAccess metadataAccess)
Notes:
- The issue does not appear in Standalone
Add comment
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
Resolution Note (fix version 2021.2):
Fixed in 2022.1.0a3. You can work around it by changing the Stripping Level option in the Player Settings to "Low". This problem only occurs when that setting is either "Medium" or "High".
Another workaround for this issue involves adding a link.xml file to the Assets directory of the project with the following contents:
<linker>
<assembly fullname="System">
<type fullname="System.Uri">
<method signature="System.Void .ctor(System.String)" />
</type>
</assembly>
</linker>
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0b7
Resolution Note (fix version 2021.1):
Fixed in 2021.1.17f1
Resolution Note (fix version 2020.3):
Fixed in 2020.3.16f1
Resolution Note (fix version 2019.4):
Fixed in 2019.4.30f1