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
- Flickering bright white dots in the Scene when the Android Platform is selected and DX11 Graphics API is used with Iris(R) Xe Graphics GPU
- Inconsistent capitalization and misaligned text in multiple query blocks in Search window
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- WebGL sends wrong value with large numbers when SendMessage function is used
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