Search Issue Tracker

Fixed in 2020.1.X

Votes

0

Found in

2020.1.0a17

Issue ID

1206929

Regression

Yes

A Unity project including com.unity.entities will not build in IL2CPP on trunk

IL2CPP

-

User cannot build for IL2CPP when using the entities package. Regressed version - 2020.1.0a17 c64fb017 (landed Dec.19)

Repro Steps:
- download attached project
- attempt to build the project for IL2CPP
- see the following failures in the console:

[00:45:43.996 INF] LogEntry
severity: Error
message: Failed running C:\build\output\unity\com.unity.dataflowgraph\.Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe -out=C:/7fFqbg/Temp/StagingArea/Data/Managed/tempStrip -x=C:/Users/bokken/AppData/Local/Temp/tmp4b52d
[00:45:43.998 INF] 78e.tmp -x=C:/Users/bokken/AppData/Local/Temp/tmp1c92404e.tmp -x=C:/7fFqbg/Temp/StagingArea/Data/Managed/TypesInScenes.xml -x=C:/7fFqbg/Temp/StagingArea/Data/Managed/DotsStripping.xml -d=C:/7fFqbg/Temp/StagingArea/Data/Managed --include-unity-root-assembly=C:/7fFqbg/Temp/StagingArea/Data/Managed/UnityEngine.TestRunner.dll --include-unity-root-assembly=C:/7fFqbg/Temp/StagingArea/Data/Managed/Unity.DataFlowGraph.Samples.Test.dll --dotnetruntime=il2cpp --dotnetprofile=unityaot --use-editor-options --include-directory=C:/7fFqbg/Temp/StagingArea/Data/Managed --rule-set=Conservative --editor-data-file=C:/7fFqbg/Temp/StagingArea/Data/Managed/EditorToUnityLinkerData.json --platform=WindowsDesktop --engine-modules-asset-file=C:/build/output/unity/com.unity.dataflowgraph/.Editor/Data/PlaybackEngines/WindowsStandaloneSupport/Whitelists/../modules.asset
stdout:
Fatal error in Unity CIL Linker
Mono.Linker.MarkException: Error processing method: 'Unity.Properties.IPropertyBag`1<TContainer> Unity.Properties.Reflection.ReflectedPropertyBagProvider::Generate()' in assembly: 'Unity.Properties.dll' ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Unity.Linker.Steps.Marking.ReflectionMarking.<>c.<ProcessGetFields>b__16_0(TypeDefinition t)
at Unity.Linker.Steps.Marking.ReflectionMarking.ProcessGetMemberCollection[T](ReflectionUsageContext reflectionContext, DetailedStackItem stackItem, Func`2 getMembers, Func`2 isPublic, Action`1 markMember, Boolean includeBaseTypes)
at Unity.Linker.Steps.Marking.ReflectionMarking.ProcessGetFields(ReflectionUsageContext reflectionContext, DetailedStackItem stackItem)
at Unity.Linker.Steps.Marking.ReflectionMarking.MarkThingsUsedViaReflection(MethodBody body)
at Unity.Linker.Steps.UnityMarkStep.MarkReflectionLikeDependencies(MethodBody body)
at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
at Unity.Linker.Steps.UnityMarkStep.MarkMethodBody(MethodBody body)
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
at Unity.Linker.Steps.UnityMarkStep.ProcessMethod(MethodDefinition method)
at Mono.Linker.Steps.MarkStep.ProcessQueue()
--- End of inner exception stack trace ---
at Mono.Linker.Steps.MarkStep.ProcessQueue()
at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
at Mono.Linker.Steps.MarkStep.Process()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
at Unity.Linker.Steps.UnityMarkStep.Process(LinkContext context)
at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
at Unity.Linker.UnityPipeline.ProcessStep(LinkContext context, IStep step)
at Mono.Linker.Pipeline.Process(LinkContext context)
at Unity.Linker.UnityDriver.Run()
at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling()
at Unity.Linker.UnityDriver.RunDriver()
stderr:
stacktrace: UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1)
UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String)
UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String, String&, String&, IEnumerable`1, UnityLinkerRunInformation)
UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(UnityLinkerRunInformation)
UnityEditorInternal.AssemblyStripper:StripAssemblies(String, BaseUnityLinkerPlatformProvider, IIl2CppPlatformProvider, RuntimeClassRegistry, ManagedStrippingLevel)
UnityEditorInternal.IL2CPPBuilder:Run()
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
DesktopStandalonePostProcessor:SetupStagingArea(BuildPostProcessArgs, HashSet`1)
DesktopStandalonePostProcessor:PostProcess(BuildPostProcessArgs)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
line: 121
file: Library/PackageCache/com.unity.test-framework@1.1.5/UnityEditor.TestRunner/TestLaunchers/PlayerLauncher.cs
LogEntry
severity: Error
message: Exception: C:\build\output\unity\com.unity.dataflowgraph\.Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe did not run properly!

  1. Resolution Note (fix version 2020.1):

    This issue has been fixed as of Unity Editor 2020.1.0a24

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.