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
- [Editor] Profiler (Standalone Process) "Live" button is greyed out by default
- UIToolkit bindings on RadioButtonGroup is not displaying the selected radio button when the choice list is bound
- Sprite shadows are not rendered when the light source is placed near the sprite
- Multiple Video Players are not playing simultaneously when played in WebGL
- "Rename Prefab File?" window does not pop up when renaming Prefab in the Project window
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