Search Issue Tracker

Fixed in 2020.2

Fixed in 2018.4, 2019.4, 2020.1

Votes

1

Found in

2019.3.13f1

Issue ID

1251628

Regression

No

[Android][IL2CPP] ARM64 Release build fails

IL2CPP

-

Doing an ARM64 release build fails in UnityLinker with this call stack:

Fatal error in Unity CIL Linker
System.NullReferenceException: Object reference not set to an instance of an object.
at Mono.Cecil.ImportGenericContext.MethodParameter(String method, Int32 position)
at Mono.Cecil.MetadataImporter.ImportTypeSpecification(TypeReference type, ImportGenericContext context)
at Mono.Cecil.MetadataImporter.ImportType(TypeReference type, ImportGenericContext context)
at Mono.Cecil.MetadataImporter.ImportTypeSpecification(TypeReference type, ImportGenericContext context)
at Mono.Cecil.MetadataImporter.ImportType(TypeReference type, ImportGenericContext context)
at Mono.Cecil.MetadataImporter.ImportReference(TypeReference type, IGenericParameterProvider context)
at Unity.IL2CPP.Common.MissingMethodStubber.CreateNewMethodDefinition(MethodReference methodToClone, ModuleDefinition module, MethodAttributes attrs)
at Unity.IL2CPP.Common.MissingMethodStubber.SetupNewMethod(TypeDefinition type, MethodReference methodToClone, ModuleDefinition module, Boolean ignoreMethodToCloneAttributes)
at Unity.IL2CPP.Common.MissingMethodStubber.AddMethodStubs(IEnumerable`1 assemblyDefinitions, IEnumerable`1 typesToAdd, IEnumerable`1 methodsToAdd, String exceptionTypeName, MissingMethodExceptionMessageFor exceptionMessageFunc, Boolean generateMethodsForInterfaceImplementations)
at Unity.Linker.Steps.AddUnresolvedStubsStep.Process()
at Mono.Linker.Steps.BaseStep.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()

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.