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
- "No GUI Implemented" is displayed when using PhysicsMask with a CustomEditor
- "Report is from another project" popup warning is shown on domain reload when Project Auditor was previously ran in a different project
- Addressables Analyzer flags duplicate resource references from ScriptableObjects incorrectly when the corresponding field has been removed
- "IndexOutOfRangeException" and "NullReferenceException" are thrown and Element disappears from UI Builder when undoing rename of element in "Open Instance in Context" menu
- Select Scriptable Object window freezes and becomes unresponsive when currently opened UXML Template is selected for binding's Data Source
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