Search Unity

Bug MissingMethodException error on build [2020.2.0b6]

Discussion in 'Physics for ECS' started by HanYol0, Oct 12, 2020.

  1. HanYol0

    HanYol0

    Joined:
    Aug 8, 2016
    Posts:
    6
    I get the following error when building:

    (0,0): error System.MissingMethodException: Attempted to access a missing method.
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,620
  3. HanYol0

    HanYol0

    Joined:
    Aug 8, 2016
    Posts:
    6
    Aight. here is the logfile :)
     

    Attached Files:

  4. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,620
    Here is the callstack of the error:
    Code (CSharp):
    1. (0,0): error System.MissingMethodException: Attempted to access a missing method.
    2.   at (wrapper managed-to-native) Unity.Collections.LowLevel.Unsafe.UnsafeUtility.MemCpy(void*,void*,long)
    3.   at Unity.Properties.CodeGen.Utility.GetSanitizedName (System.String name, System.String suffix) [0x000ad] in <e58299e14b8f46809d7305f52240951e>:0
    4.   at Unity.Properties.CodeGen.Blocks.PropertyBag.Generate (Unity.Properties.CodeGen.Context context, Mono.Cecil.TypeReference containerType) [0x0002b] in <e58299e14b8f46809d7305f52240951e>:0
    5.   at Unity.Properties.CodeGen.PostProcessor.Generate (Mono.Cecil.AssemblyDefinition assembly, System.Collections.Generic.IEnumerable`1[T] defines) [0x00039] in <e58299e14b8f46809d7305f52240951e>:0
    6.   at Unity.Properties.CodeGen.PostProcessor.Process (Unity.CompilationPipeline.Common.ILPostProcessing.ICompiledAssembly compiledAssembly) [0x0001b] in <e58299e14b8f46809d7305f52240951e>:0
    7.   at ILPostProcessorRunner.RunILPostProcessors (NamedILPostProcessorWrapper[] ilpostProcessors) [0x00073] in <04671920fa244b7da7c644c861e4f88f>:0
    8.   at ILPostProcessorRunner.Main (System.String[] args) [0x000be] in <04671920fa244b7da7c644c861e4f88f>:0
    I don't know if it's IL2CPP or DOTS related to be honest. Have you tried to update all those DOTS related packages to the latest version?

    If it still reproduces with the latest packages, I think submitting a bug-report with a project to reproduce the error and posting the case number here, would be from advantage.
    https://unity3d.com/unity/qa/bug-reporting
     
  5. HanYol0

    HanYol0

    Joined:
    Aug 8, 2016
    Posts:
    6
    It seems to be a problem with the havok package. After removing it building works fine.
     
  6. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    I'm moving this thread over to the DOTS Physics forum.
     
    Peter77 likes this.
  7. milos85miki

    milos85miki

    Joined:
    Nov 29, 2019
    Posts:
    197
    Hi @HanYol0 ,

    I see in Editor.log that you are using pretty old versions of Havok (0.2.2) and Unity Physics (0.3.2) packages. Could you please try with latest?
    I just tried running a scene with il2cpp on 2020.2.0b6 editor and it worked fine with Unity and Havok simulation.

    Please let me know if you face any more problems and sorry for delayed response.
     
    petarmHavok likes this.
  8. jhughes2112

    jhughes2112

    Joined:
    Nov 20, 2014
    Posts:
    178
    Reporting for future googlers: Trying to make (any) build in 2020LTS with Unity Physics 0.3.2 definitely causes the exception in the original post. Upgrading to 0.6.3 fixed it for me.
     
    petarmHavok likes this.