Skip to content

Instantly share code, notes, and snippets.

@devboy
Last active August 29, 2015 14:10
Show Gist options
  • Save devboy/4e704f82a4afec053681 to your computer and use it in GitHub Desktop.
Save devboy/4e704f82a4afec053681 to your computer and use it in GitHub Desktop.
stdout:
Error writing C++ code for type System.Threading.CancellationTokenRegistration, method System.Boolean System.Threading.CancellationTokenRegistration::Equals(System.Threading.CancellationTokenRegistration), in assembly /Users/devboy/Development/devboy/FSharp.IL2CPP/unity3d/SomeUnityProject/Temp/StagingArea/Data/Managed/FSharp.Core.dll.
stderr:
Unhandled Exception:
System.NotImplementedException: The requested feature is not implemented.
at Unity.IL2CPP.StackAnalysis.StackStateBuilder.Build (IEnumerable`1 instructions) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.StackAnalysis.StackStateBuilder.StackStateFor (IEnumerable`1 instructions, Unity.IL2CPP.StackAnalysis.StackState initialState, Mono.Cecil.MethodDefinition methodDefinition, ITypeProvider typeProvider, Unity.IL2CPP.ILPreProcessor.TypeResolver typeResolver) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.StackAnalysis.StackAnalysis.Analyze () [0x00000] in <filename unknown>:0
at Unity.IL2CPP.StackAnalysis.StackAnalysis.Analyze (Mono.Cecil.MethodDefinition methodDefinition, Unity.IL2CPP.Common.CFG.ControlFlowGraph cfg, ITypeProvider typeProvider, Unity.IL2CPP.ILPreProcessor.TypeResolver typeResolver) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.MethodBodyWriter..ctor (Unity.IL2CPP.CppCodeWriter writer, Mono.Cecil.MethodReference methodReference, Unity.IL2CPP.ILPreProcessor.TypeResolver typeResolver, Unity.IL2CPP.MethodBodyWriterDebugOptions options) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.MethodBodyWriter..ctor (Unity.IL2CPP.CppCodeWriter writer, Mono.Cecil.MethodReference methodReference, Unity.IL2CPP.ILPreProcessor.TypeResolver typeResolver) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.MethodWriter.WriteMethodBody (Mono.Cecil.MethodReference method) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.MethodWriter.WriteMethod (Mono.Cecil.MethodReference method, MethodWriteMode mode) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.MethodWriter.WriteMethodAndWrappers (Mono.Cecil.MethodReference method, MethodWriteMode mode) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.MethodWriter.WriteMethodDefinitions (System.Func`2 filter) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NotImplementedException: The requested feature is not implemented.
at Unity.IL2CPP.StackAnalysis.StackStateBuilder.Build (IEnumerable`1 instructions) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.StackAnalysis.StackStateBuilder.StackStateFor (IEnumerable`1 instructions, Unity.IL2CPP.StackAnalysis.StackState initialState, Mono.Cecil.MethodDefinition methodDefinition, ITypeProvider typeProvider, Unity.IL2CPP.ILPreProcessor.TypeResolver typeResolver) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.StackAnalysis.StackAnalysis.Analyze () [0x00000] in <filename unknown>:0
at Unity.IL2CPP.StackAnalysis.StackAnalysis.Analyze (Mono.Cecil.MethodDefinition methodDefinition, Unity.IL2CPP.Common.CFG.ControlFlowGraph cfg, ITypeProvider typeProvider, Unity.IL2CPP.ILPreProcessor.TypeResolver typeResolver) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.MethodBodyWriter..ctor (Unity.IL2CPP.CppCodeWriter writer, Mono.Cecil.MethodReference methodReference, Unity.IL2CPP.ILPreProcessor.TypeResolver typeResolver, Unity.IL2CPP.MethodBodyWriterDebugOptions options) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.MethodBodyWriter..ctor (Unity.IL2CPP.CppCodeWriter writer, Mono.Cecil.MethodReference methodReference, Unity.IL2CPP.ILPreProcessor.TypeResolver typeResolver) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.MethodWriter.WriteMethodBody (Mono.Cecil.MethodReference method) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.MethodWriter.WriteMethod (Mono.Cecil.MethodReference method, MethodWriteMode mode) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.MethodWriter.WriteMethodAndWrappers (Mono.Cecil.MethodReference method, MethodWriteMode mode) [0x00000] in <filename unknown>:0
at Unity.IL2CPP.MethodWriter.WriteMethodDefinitions (System.Func`2 filter) [0x00000] in <filename unknown>:0
UnityEngine.Debug:Log(Object)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String)
UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection`1, String, String)
UnityEditorInternal.IL2CPPBuilder:Run()
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
UnityEditor.HostView:OnGUI()
CancellationToken#Equals:
public bool Equals (CancellationToken token)
{
if (this.source@ != null) {
return [email protected] (token.source@);
}
return LanguagePrimitives.HashCompare.GenericEqualityIntrinsic<CancellationTokenSource> (token.source@, null);
}
HashCompare#GenericEqualityIntrinsic<T>
[CompilationArgumentCounts (new int[] {
1,
1
}), CompilerMessage ("This function is a primitive library routine used by optimized F# code and should not be used directly", 1204, IsHidden = true)]
public static bool GenericEqualityIntrinsic<T> (T x, T y)
{
return LanguagePrimitives.HashCompare.fsEqualityComparer.Equals (x, y);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment