I’m running into a Bolt issue when running on mobile.
After running the AOT pre-build step I’m still getting this error on scene start.
Could this be a bug with how the AOT pre-build generates its AOT code? Or am I doing something wrong?
I also have a linker file making sure the QuestSceneReferences isn’t being stripped
ΐ— Time: 4/12/2022 7:19:31 PM Type: Exception —
ExecutionEngineException: Attempting to call method 'Ludiq.InstanceFunctionInvoker3[[AOFL.Multiplayer.Overworld.QuestSceneReferences, OverworldClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null],[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[UnityEngine.GameObject[ ], UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]::.ctor' for which no ahead of time (AOT) code was generated. System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[ ] parameters) (at <00000000000000000000000000000000>:0) System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[ ] parameters, System.Globalization.CultureInfo culture) (at <00000000000000000000000000000000>:0) System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[ ] parameters, System.Globalization.CultureInfo culture) (at <00000000000000000000000000000000>:0) System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[ ] args, System.Globalization.CultureInfo culture, System.Object[ ] activationAttributes, System.Threading.StackCrawlMark& stackMark) (at <00000000000000000000000000000000>:0) System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[ ] args, System.Globalization.CultureInfo culture, System.Object[ ] activationAttributes) (at <00000000000000000000000000000000>:0) System.Activator.CreateInstance (System.Type type, System.Object[ ] args) (at <00000000000000000000000000000000>:0) Ludiq.OptimizedReflection.GetMethodInvoker (System.Reflection.MethodInfo methodInfo) (at <00000000000000000000000000000000>:0) Ludiq.OptimizedReflection.Prewarm (System.Reflection.MethodInfo methodInfo) (at <00000000000000000000000000000000>:0) Ludiq.Member.Prewarm () (at <00000000000000000000000000000000>:0) Bolt.MemberUnit.Prewarm () (at <00000000000000000000000000000000>:0) Ludiq.Graph.Prewarm () (at <00000000000000000000000000000000>:0) Ludiq.Machine2[TGraph,TMacro].Awake () (at <00000000000000000000000000000000>:0)
Bolt.EventMachine2[TGraph,TMacro].Awake () (at <00000000000000000000000000000000>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[ ] parameters) (at <00000000000000000000000000000000>:0) System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[ ] parameters, System.Globalization.CultureInfo culture) (at <00000000000000000000000000000000>:0) System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[ ] parameters, System.Globalization.CultureInfo culture) (at <00000000000000000000000000000000>:0) System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[ ] args, System.Globalization.CultureInfo culture, System.Object[ ] activationAttributes, System.Threading.StackCrawlMark& stackMark) (at <00000000000000000000000000000000>:0) System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[ ] args, System.Globalization.CultureInfo culture, System.Object[ ] activationAttributes) (at <00000000000000000000000000000000>:0) System.Activator.CreateInstance (System.Type type, System.Object[ ] args) (at <00000000000000000000000000000000>:0) Ludiq.OptimizedReflection.GetMethodInvoker (System.Reflection.MethodInfo methodInfo) (at <00000000000000000000000000000000>:0) Ludiq.OptimizedReflection.Prewarm (System.Reflection.MethodInfo methodInfo) (at <00000000000000000000000000000000>:0) Ludiq.Member.Prewarm () (at <00000000000000000000000000000000>:0) Bolt.MemberUnit.Prewarm () (at <00000000000000000000000000000000>:0) Ludiq.Graph.Prewarm () (at <00000000000000000000000000000000>:0) Ludiq.Machine2[TGraph,TMacro].Awake () (at <00000000000000000000000000000000>:0)
Bolt.EventMachine`2[TGraph,TMacro].Awake () (at <00000000000000000000000000000000>:0)