Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Latest Entites and InputSystems packages conflict.

Discussion in 'Entity Component System' started by andywatts, Dec 19, 2019.

  1. andywatts

    andywatts

    Joined:
    Sep 19, 2015
    Posts:
    107
    Given a new project. Unity 2019.3.0f3; .Net4.x; mono or ilcpp...
    Install the latest packages for Entities (preview.10-0.4.0) and InputSystems (preview.3-1.0.0)...
    Get this error.

    Code (CSharp):
    1. Something went wrong while Post Processing the assembly (Assembly-CSharp-firstpass.dll) :
    2. Failed to resolve System.Diagnostics.Process
    3.   at Unity.Entities.CodeGen.TypeReferenceExtensions.CheckedResolve (Mono.Cecil.TypeReference typeReference) [0x00001] in /private/tmp/ttt/Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities.CodeGen/CecilExtensionMethods.cs:13
    4.   at Unity.Entities.CodeGen.BlobAssetSafetyVerifier.<VerifyMethod>g__IsTypeRestrictedToBlobAssetStorage|3_0 (Mono.Cecil.TypeReference tr, Unity.Entities.CodeGen.BlobAssetSafetyVerifier+<>c__DisplayClass3_0& ) [0x000f0] in /private/tmp/ttt/Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities.CodeGen/BlobAssetSafety/BlobAssetSafetyVerifier.cs:64
    5.   at Unity.Entities.CodeGen.BlobAssetSafetyVerifier.VerifyMethod (Mono.Cecil.MethodDefinition method, System.Collections.Generic.HashSet`1[T] _nonRestrictedTypes) [0x00058] in /private/tmp/ttt/Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities.CodeGen/BlobAssetSafety/BlobAssetSafetyVerifier.cs:90
    6.   at Unity.Entities.CodeGen.BlobAssetSafetyVerifier.AssertNoBlobAssetLeavesBlobAssetStorage () [0x00063] in /private/tmp/ttt/Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities.CodeGen/BlobAssetSafety/BlobAssetSafetyVerifier.cs:37
    7.   at Unity.Entities.CodeGen.BlobAssetSafetyVerifier.PostProcessImpl () [0x0000a] in /private/tmp/ttt/Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities.CodeGen/BlobAssetSafety/BlobAssetSafetyVerifier.cs:20
    8.   at Unity.Entities.CodeGen.EntitiesILPostProcessor.PostProcess (Mono.Cecil.AssemblyDefinition assemblyDefinition, System.Boolean& madeAChange) [0x00009] in /private/tmp/ttt/Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities.CodeGen/EntitiesILPostProcessor.cs:231
    9.   at Unity.Entities.CodeGen.EntitiesILPostProcessors.Process (Unity.CompilationPipeline.Common.ILPostProcessing.ICompiledAssembly compiledAssembly) [0x0004b] in /private/tmp/ttt/Library/PackageCache/com.unity.entities@0.4.0-preview.10/Unity.Entities.CodeGen/EntitiesILPostProcessor.cs:44
    10.   at UnityEditor.Scripting.ScriptCompilation.ILPostProcessing.RunILPostProcessors (UnityEditor.Scripting.ScriptCompilation.ScriptAssembly assembly, System.String outputTempPath) [0x0011b] in /Users/builduser/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/ILPostProcessing.cs:209
    11.   at UnityEditor.Scripting.ScriptCompilation.ILPostProcessing.PostProcess (UnityEditor.Scripting.ScriptCompilation.ScriptAssembly assembly, System.Collections.Generic.List`1[T] messages, System.String outputTempPath) [0x00061] in /Users/builduser/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/ILPostProcessing.cs:99
    12.  
     
  2. Ovidiu-Vaduva

    Ovidiu-Vaduva

    Joined:
    Feb 1, 2013
    Posts:
    5
    Hey,

    I had the same problem after update ( error was with System.Collections.Generic.Stack and System.Collections.Generic.SortedDictionary).

    I had to change them from code. The issue is related Entities pkg.
    Any good solution for this?

    Code (CSharp):
    1. Something went wrong while Post Processing the assembly (Assembly-CSharp.dll) :
    2. Failed to resolve System.Collections.Generic.Stack`1
    3.   at Unity.Entities.CodeGen.TypeReferenceExtensions.CheckedResolve (Mono.Cecil.TypeReference typeReference) [0x00001] in C:\Users\Smarty\Dropbox\Projects\Ideas\SwordAdventure\SwordAdventure\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities.CodeGen\CecilExtensionMethods.cs:13
    4.   at Unity.Entities.CodeGen.BlobAssetSafetyVerifier.<VerifyMethod>g__IsTypeRestrictedToBlobAssetStorage|3_0 (Mono.Cecil.TypeReference tr, Unity.Entities.CodeGen.BlobAssetSafetyVerifier+<>c__DisplayClass3_0& ) [0x000f0] in C:\Users\Smarty\Dropbox\Projects\Ideas\SwordAdventure\SwordAdventure\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities.CodeGen\BlobAssetSafety\BlobAssetSafetyVerifier.cs:64
    5.   at Unity.Entities.CodeGen.BlobAssetSafetyVerifier.VerifyMethod (Mono.Cecil.MethodDefinition method, System.Collections.Generic.HashSet`1[T] _nonRestrictedTypes) [0x00058] in C:\Users\Smarty\Dropbox\Projects\Ideas\SwordAdventure\SwordAdventure\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities.CodeGen\BlobAssetSafety\BlobAssetSafetyVerifier.cs:90
    6.   at Unity.Entities.CodeGen.BlobAssetSafetyVerifier.AssertNoBlobAssetLeavesBlobAssetStorage () [0x00063] in C:\Users\Smarty\Dropbox\Projects\Ideas\SwordAdventure\SwordAdventure\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities.CodeGen\BlobAssetSafety\BlobAssetSafetyVerifier.cs:37
    7.   at Unity.Entities.CodeGen.BlobAssetSafetyVerifier.PostProcessImpl () [0x0000a] in C:\Users\Smarty\Dropbox\Projects\Ideas\SwordAdventure\SwordAdventure\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities.CodeGen\BlobAssetSafety\BlobAssetSafetyVerifier.cs:20
    8.   at Unity.Entities.CodeGen.EntitiesILPostProcessor.PostProcess (Mono.Cecil.AssemblyDefinition assemblyDefinition, System.Boolean& madeAChange) [0x00009] in C:\Users\Smarty\Dropbox\Projects\Ideas\SwordAdventure\SwordAdventure\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities.CodeGen\EntitiesILPostProcessor.cs:231
    9.   at Unity.Entities.CodeGen.EntitiesILPostProcessors.Process (Unity.CompilationPipeline.Common.ILPostProcessing.ICompiledAssembly compiledAssembly) [0x0004b] in C:\Users\Smarty\Dropbox\Projects\Ideas\SwordAdventure\SwordAdventure\Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities.CodeGen\EntitiesILPostProcessor.cs:44
    10.   at UnityEditor.Scripting.ScriptCompilation.ILPostProcessing.RunILPostProcessors (UnityEditor.Scripting.ScriptCompilation.ScriptAssembly assembly, System.String outputTempPath) [0x0011b] in <83a73882c51c4602b3d34743827d03e7>:0
    11.   at UnityEditor.Scripting.ScriptCompilation.ILPostProcessing.PostProcess (UnityEditor.Scripting.ScriptCompilation.ScriptAssembly assembly, System.Collections.Generic.List`1[T] messages, System.String outputTempPath) [0x00061] in <83a73882c51c4602b3d34743827d03e7>:0
     
  3. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,654
    andywatts likes this.
  4. Lucas-Meijer

    Lucas-Meijer

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    175
    Thanks for the report. This is a (my) bug in entities package. I’ll fix it
     
    Ovidiu-Vaduva, andywatts and 5argon like this.
  5. andywatts

    andywatts

    Joined:
    Sep 19, 2015
    Posts:
    107
    Thanks @eizenhorn
    What confused me was entities 0.4.0 was working fine with .net4 until I added other packages. :/
     
  6. andywatts

    andywatts

    Joined:
    Sep 19, 2015
    Posts:
    107
    Is the Standard 2.0 API a requirements for the foreseeable future?
    It's a bummer, because gRPC needs 4.5.


     
  7. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,635
    does grpc for .net not support .net standard 2.0? or just grcp for c#
     
    andywatts likes this.
  8. Ovidiu-Vaduva

    Ovidiu-Vaduva

    Joined:
    Feb 1, 2013
    Posts:
    5
    Please, tell me when you fix it.
    Thank you!
     
  9. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Fix will be in the next release. Next release will be after new year.
     
  10. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    In the mean time you can embd the com.unity.entities package into the packages folder and apply this patch.
    Or just downgrade to previous release.
     

    Attached Files:

  11. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,654
    You should say it like: "After year" :D
     
  12. scottgaran

    scottgaran

    Joined:
    Jun 5, 2015
    Posts:
    1
    Thanks for this! fixed the issue
     
  13. Onat-H

    Onat-H

    Joined:
    Mar 11, 2015
    Posts:
    195
    Sorry if this is a silly question but.. how do I apply the patch?
     
  14. Warsymphony

    Warsymphony

    Joined:
    Sep 23, 2014
    Posts:
    43
    Go to the project that has the error and open the file \Library\PackageCache\com.unity.entities@0.4.0-preview.10\Unity.Entities.CodeGen/EntitiesILPostProcessor.cs

    Open the patch and find the lines that have the - next to it and replace those with the lines that have a + next to it in the file you opened EntitiesILPostProcessor.cs