Search Issue Tracker
Fixed
Fixed in 2021.3.12f1, 2022.2.0b11, 2023.1.0a15
Votes
10
Found in
2021.3.9f1
2022.2.0b7
2023.1.0a9
Issue ID
UUM-13281
Regression
Yes
[IL2CPP] Build fails with "Fatal error in Unity CIL Linker" when using UnityLinker
How to reproduce:
1. Open the user’s attached “IL2CPPError-2022.2.zip” project
2. Make sure Scripting Backend is set to “IL2CPP” (Edit > Project Settings… > Player > Other Settings)
3. Build the “SampleScene” Scene
Expected results: The build is successful
Actual results: The build fails with “Fatal error in Unity CIL Linker” error
Reproducible with: 2022.2.0a16, 2022.2.0b7, 2023.1.0a9
Not reproducible with: 2021.3.9f1, 2022.2.0a15
Could not test with: 2020.3.39f1 because of the “the dll is not allowed to be included or could not be found.” error
Reproduced on:
Windows 10
Note:
- The issue is not reproducible when using Mono Scripting Backend
- The issue has been reproduced with Standalone and Android Platform
-
jongning
Feb 19, 2023 11:52
Im still facing problem and kindda curious on how to do first step.
Please help
Im creating VR project on Oculus Quest2Building C:\Users\jongn\Desktop\Unity Code\Zurgirial\Library\Bee\artifacts\unitylinker_xy1a.traceevents failed with output:
C:\Program Files\Unity\Hub\Editor\2021.3.19f1\Editor\Data\il2cpp\build\deploy\UnityLinker.exe --search-directory=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed --out=Library/Bee/artifacts/Android/ManagedStripped --include-link-xml=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed\MethodsToPreserve.xml --include-link-xml=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed\TypesInScenes.xml --include-link-xml=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed\SerializedTypes.xml --include-link-xml=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Assets\..\Temp\InputSystemLink.xml --include-link-xml=C:/Program Files/Unity/Hub/Editor/2021.3.19f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/AndroidNativeLink.xml --include-directory=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed --profiler-report --profiler-output-file=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Library/Bee/artifacts/unitylinker_xy1a.traceevents --dotnetprofile=unityaot-linux --dotnetruntime=Il2Cpp --platform=Android --use-editor-options --enable-engine-module-stripping --engine-stripping-flag=EnableUnityConnect --engine-stripping-flag=EnablePerformanceReporting --engine-stripping-flag=EnableAnalytics --engine-modules-asset-file=C:/Program Files/Unity/Hub/Editor/2021.3.19f1/Editor/Data/PlaybackEngines/AndroidPlayer/modules.asset --editor-data-file=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/EditorToUnityLinkerData.json --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Oculus.Voice.Demo.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Oculus.AudioManager.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Oculus.Interaction.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/AssistantCoreSDKRuntime.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Facebook.Wit.Conduit.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/LitJson.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Unity.ProBuilder.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Unity.InputSystem.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Unity.XR.OpenXR.Features.MetaQuestSupport.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Facebook.WitAI.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Facebook.Wit.Dictation.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Timeline.Samples.Tween.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Timeline.Samples.TimeDilation.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Unity.XR.Interaction.Toolkit.Samples.StarterAssets.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Oculus.VR.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Unity.XR.Management.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Unity.XR.OpenXR.Features.RuntimeDebugger.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Facebook.Wit.TTS.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Timeline.Samples.Utilities.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Oculus.Interaction.Samples.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Timeline.Samples.Video.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Oculus.Spatializer.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Unity.Timeline.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Unity.TextMeshPro.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Unity.XR.Interaction.Toolkit.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Unity.XR.OpenXR.Features.MockRuntime.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Unity.XR.OpenXR.Features.OculusQuestSupport.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Timeline.Samples.Text.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Timeline.Samples.Annotation.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Unity.Postprocessing.Runtime.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/VoiceSDK.Dictation.Runtime.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Facebook.Wit.TTS.Samples.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Oculus.Platform.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Oculus.LipSync.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Unity.XR.OpenXR.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/VoiceSDK.Runtime.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Unity.XR.OpenXR.Features.ConformanceAutomation.dll --include-unity-root-assembly=C:/Users/jongn/Desktop/Unity Code/Zurgirial/Temp/StagingArea/Data/Managed/Unity.XR.Oculus.dll --print-command-line --enable-analytics
Fatal error in Unity CIL Linker
System.ArgumentException: Malformed name
at Mono.Cecil.AssemblyNameReference.Parse(String fullName)
at Mono.Linker.LinkContext.GetType(String fullName)
at System.Linq.Enumerable.SelectArrayIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at Unity.Linker.Steps.Marking.ClassLibraryMarking.DoAdditionalTypeProcessingForWebRequest(TypeDefinition type)
at Unity.Linker.Steps.UnityMarkStep.DoAdditionalTypeProcessing(TypeDefinition type)
at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference, DependencyInfo reason, IMemberDefinition sourceLocationMember)
at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference, DependencyInfo reason, IMemberDefinition sourceLocationMember)
at Mono.Linker.Steps.MarkStep.MarkField(FieldDefinition field, DependencyInfo& reason)
at Mono.Linker.Steps.MarkStep.MarkField(FieldReference reference, DependencyInfo reason)
at Unity.Linker.Steps.UnityMarkStep.Unity.Linker.Steps.Marking.IMarkStepCallbacks.MarkField(FieldReference reference, DependencyInfo& reason)
at Unity.Linker.Steps.Marking.MonoBehaviourMarking.MarkNeededFields(TypeDefinition type)
at Unity.Linker.Steps.Marking.MonoBehaviourMarking.DoAdditionalTypeProcessing(TypeDefinition type)
at Unity.Linker.Steps.UnityMarkStep.DoAdditionalTypeProcessing(TypeDefinition type)
at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference, DependencyInfo reason, IMemberDefinition sourceLocationMember)
at Mono.Linker.Steps.MarkStep.MarkField(FieldDefinition field, DependencyInfo& reason)
at Mono.Linker.Steps.MarkStep.MarkField(FieldReference reference, DependencyInfo reason)
at Unity.Linker.Steps.UnityMarkStep.Unity.Linker.Steps.Marking.IMarkStepCallbacks.MarkField(FieldReference reference, DependencyInfo& reason)
at Unity.Linker.Steps.Marking.MonoBehaviourMarking.MarkNeededFields(TypeDefinition type)
at Unity.Linker.Steps.Marking.MonoBehaviourMarking.DoAdditionalTypeProcessing(TypeDefinition type)
at Unity.Linker.Steps.UnityMarkStep.DoAdditionalTypeProcessing(TypeDefinition type)
at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference, DependencyInfo reason, IMemberDefinition sourceLocationMember)
at Mono.Linker.Steps.MarkStep.MarkField(FieldDefinition field, DependencyInfo& reason)
at Mono.Linker.Steps.MarkStep.MarkEntireTypeInternal(TypeDefinition type, Boolean includeBaseTypes, DependencyInfo& reason, IMemberDefinition sourceLocationMember, HashSet`1 typesAlreadyVisited)
at Mono.Linker.Steps.MarkStep.MarkEntireAssembly(AssemblyDefinition assembly)
at Mono.Linker.Steps.MarkStep.InitializeAssembly(AssemblyDefinition assembly)
at Unity.Linker.Steps.UnityMarkStep.InitializeAssembly(AssemblyDefinition assembly)
at Mono.Linker.Steps.MarkStep.Initialize()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
at Unity.Linker.Steps.UnityMarkStep.Process(LinkContext context)
at Unity.Linker.UnityPipeline.ProcessStep(LinkContext context, IStep step)
at Mono.Linker.Pipeline.Process(LinkContext context)
at Unity.Linker.UnityDriver.UnityRun(Boolean noProfilerAllowed, ILogger customLogger)
at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling(ILogger customLogger, Boolean noProfilerAllowed)
at Unity.Linker.UnityDriver.RunDriver()
UnityEditor.BuildPipeline:BuildPlayer (UnityEditor.BuildPlayerOptions)
OculusBuildApp:UnityBuildPlayer () (at Assets/Oculus/VR/Editor/OVRBuild.cs:494)
OculusBuildApp:StartBuild () (at Assets/Oculus/VR/Editor/OVRBuild.cs:428)
OculusBuildApp:InitAndRun () (at Assets/Oculus/VR/Editor/OVRBuild.cs:140)
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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Resolution Note (fix version 2023.1.0a15):
Fixed in: 2023.1.0a15
Resolution Note (fix version 2022.2.0b11):
Fixed in: 2022.2.0b11