playMaker

Author Topic: [IL2CPP][PM1.8.9] [Unity2017.3.0f3]Error when building for UWP and Mixed Reality  (Read 155 times)

tota5

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
when building for UWP, i get the IL2CPP following error:
(attached here is a sample scene that can reproduce the problem)

Failed running C:\Program Files\Unity2018_3_0f3\Editor\Data\il2cpp/build/UnityLinker.exe --api=NET_2_0 -out="C:\Projects\Highlander\Temp\StagingArea\Data\Managed\tempStrip" -l=none -c=link --link-symbols -x="C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Core.xml" -f="C:\Program Files\Unity2018_3_0f3\Editor\Data\il2cpp\LinkerDescriptors" -x "C:\Projects\Highlander/Temp\StagingArea\Data/methods_pointedto_by_uievents.xml" -x "C:\Projects\Highlander/Temp\StagingArea\Data/UnityEngine.xml" -x "C:\Projects\Highlander\Temp\StagingArea\Data\preserved_derived_types.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Accessibility.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\AI.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Animation.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\AR.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\AssetBundle.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Audio.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Cloth.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Core.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\CrashReporting.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Director.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\GameCenter.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Grid.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\ImageConversion.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\IMGUI.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Input.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\JSONSerialize.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\ParticlesLegacy.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\ParticleSystem.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\PerformanceReporting.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Physics.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Physics2D.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\ScreenCapture.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\SharedInternals.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\SpriteMask.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\SpriteShape.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\StyleSheets.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Terrain.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\TerrainPhysics.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\TextRendering.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Tilemap.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\UI.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\UIElements.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\UNET.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\UnityAnalytics.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\UnityConnect.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\UnityWebRequest.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\UnityWebRequestAudio.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\UnityWebRequestTexture.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\UnityWebRequestWWW.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Vehicles.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Video.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\VR.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Web.xml" -x "C:\Program Files\Unity2018_3_0f3\Editor\Data\PlaybackEngines\MetroSupport\Whitelists\Wind.xml" -d "C:\Projects\Highlander\Temp\StagingArea\Data\Managed" -a  "C:\Projects\Highlander\Temp\StagingArea\Data\Managed\Assembly-CSharp-firstpass.dll" -a  "C:\Projects\Highlander\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll" -a  "C:\Projects\Highlander\Temp\StagingArea\Data\Managed\UnityEngine.UI.dll" -a  "C:\Projects\Highlander\Temp\StagingArea\Data\Managed\DOTween.dll" -a  "C:\Projects\Highlander\Temp\StagingArea\Data\Managed\TextMeshPro-1.0.55.56.0b11.dll" -a  "C:\Projects\Highlander\Temp\StagingArea\Data\Managed\PlayMaker.dll" -a  "C:\Projects\Highlander\Temp\StagingArea\Data\Managed\I18N.CJK.dll" -a  "C:\Projects\Highlander\Temp\StagingArea\Data\Managed\I18N.dll" -a  "C:\Projects\Highlander\Temp\StagingArea\Data\Managed\I18N.MidEast.dll" -a  "C:\Projects\Highlander\Temp\StagingArea\Data\Managed\I18N.Other.dll" -a  "C:\Projects\Highlander\Temp\StagingArea\Data\Managed\I18N.Rare.dll" -a  "C:\Projects\Highlander\Temp\StagingArea\Data\Managed\I18N.West.dll"

stdout:
Fatal error in Unity CIL Linker
Mono.Linker.MarkException: Error processing method: 'System.String HutongGames.PlayMaker.NamedVariable::get_Name()' in assembly: 'PlayMaker.dll' ---> System.ArgumentNullException: Value cannot be null.
Parameter name: instruction
   at Mono.Cecil.Cil.InstructionOffset..ctor(Instruction instruction)
   at Mono.Cecil.Cil.CodeReader.ReadScope(ScopeDebugInformation scope)
   at Mono.Cecil.Cil.CodeReader.ReadScopes(Collection`1 scopes)
   at Mono.Cecil.Cil.CodeReader.ReadScope(ScopeDebugInformation scope)
   at Mono.Cecil.Cil.CodeReader.ReadScopes(Collection`1 scopes)
   at Mono.Cecil.Cil.CodeReader.ReadScope(ScopeDebugInformation scope)
   at Mono.Cecil.Cil.CodeReader.ReadDebugInfo()
   at Mono.Cecil.Cil.CodeReader.ReadMethodBody()
   at Mono.Cecil.Cil.CodeReader.ReadMethodBody(MethodDefinition method)
   at Mono.Cecil.MethodDefinition.<>c.<get_Body>b__41_0(MethodDefinition method, MetadataReader reader)
   at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func`3 read)
   at Mono.Cecil.MethodDefinition.get_Body()
   at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
   at UnityLinker.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.ProcessEntireQueue()
   at Mono.Linker.Steps.MarkStep.Process()
   at UnityLinker.Steps.UnityMarkStep.Process(LinkContext context)
   at Mono.Linker.Pipeline.Process(LinkContext context)
   at UnityLinker.UnityDriver.Run()
   at UnityLinker.UnityDriver.RunDriver()
stderr:

UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:89)
UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:82)
UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:204)
UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:114)
UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:152)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
PostProcessUAPIl2Cpp:RunIL2CPP() (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessUAPIl2Cpp.cs:378)
PostProcessWinRT:Process() (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/PostProcessWinRT.cs:231)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

tota5

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
it's not allowing me to send the test project...it's a 24kb rar...how can i send this?

Repo is pretty easy tho

-have a machine with the right setup for windows mixed reality development;
-install unity, playmaker, etc;
-set the project to windows universal platform;
-build;

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3252
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Strange. I can repro in 2017.3, but it builds fine in other versions, including the 2018.1 beta. So there's something broken in 2017.3. Unfortunately, the error is not that helpful, and I can't repro in the source code project to get any leads. But I've submitted a bug to Unity and pinged a contact I have on the il2cpp team, so maybe they can help.

Have you tried any of the patch versions for 2017.3?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3252
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Got this from Unity:

Thanks for the report.
This issue is already fixed, by cause of il2cpp and Timeline in 2017.3.0p3.

You can track original case's status here:
https://issuetracker.unity3d.com/issues/regression-il2cpp-cannot-build-on-uwp-when-analytics-is-enabled-in-2017-dot-3