bbradson / Performance-Fish

Performance Mod for RimWorld
Mozilla Public License 2.0
423 stars 34 forks source link

Bug with faciel animation #30

Closed Adolf152 closed 3 months ago

Adolf152 commented 3 months ago

full hugs log is currently unable Main log: PerformanceFish failed to generate an optimized delegate for static System.Void PerformanceOptimizer.ICache_ThingComp1<FacialAnimation.ControllerBaseCompNoSave2<FacialAnimation.T, FacialAnimation.S>>::Clear(). Reverting to default behaviour instead. System.InvalidOperationException: Could not execute the method because the containing type is not fully instantiated. at (wrapper managed-to-native) System.Delegate.CreateDelegate_internal(System.Type,object,System.Reflection.MethodInfo,bool) at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure, System.Boolean allowClosed) [0x002f0] in :0 at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method) [0x00000] in :0 at System.Reflection.Emit.DynamicMethod.CreateDelegate (System.Type delegateType) [0x00029] in :0 at PerformanceFish.System.ReflectionCaching+MethodBasePatches.MakeInvokeDelegate (System.Reflection.MethodBase methodBase) [0x0014d] in :0 at PerformanceFish.System.ReflectionCaching+MethodBasePatches.MakeInvokeDelegate (System.Reflection.MethodBase methodBase) [0x00000] in :0 at PerformanceFish.System.ReflectionCaching+MethodBasePatches+MethodInvokerCache.MakeResultAsync (System.RuntimeMethodHandle key, System.Reflection.MethodBase method) [0x00000] in :0 at PerformanceFish.Cache.ByReferenceUnclearable2+<UpdateCacheAsync>d__243[T,TResult,TCacheValue,TArgument2,TCacheResult].MoveNext () [0x00000] in :0 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[TResult].Start[TStateMachine] (TStateMachine& stateMachine) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 at PerformanceFish.Cache.ByReferenceUnclearable2[T,TResult].UpdateCacheAsync[TCacheValue,TArgument2,TCacheResult] (T key, TCacheValue cacheCopy, TArgument2 second) [0x00000] in :0 at PerformanceFish.Cache.ByReferenceUnclearable2+<>c__DisplayClass21_03[T,TResult,TCacheValue,TArgument2,TCacheResult].b0 () [0x00000] in :0 at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x00000] in :0 at System.Threading.Tasks.Task.Execute () [0x00000] in :0 at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in :0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in :0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in :0 at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in :0 at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in :0 at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in :0 at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in :0 at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in :0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Warning_Patch3 (string) PerformanceFish.Log/Config/<>c:<.cctor>b12_1 (string) PerformanceFish.Log:Warning (FisheryLib.Pools.PooledStringHandler) PerformanceFish.System.ReflectionCaching/MethodBasePatches:MakeInvokeDelegate (System.Reflection.MethodBase) PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvokerCache:MakeResultAsync (System.RuntimeMethodHandle,System.Reflection.MethodBase) PerformanceFish.Cache.ByReferenceUnclearable2/<UpdateCacheAsync>d__243<System.RuntimeMethodHandle, PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvokerCache, PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvokerCache, System.Reflection.MethodBase, PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvoker>:MoveNext () System.Runtime.CompilerServices.AsyncTaskMethodBuilder1<PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvoker>:Start<PerformanceFish.Cache.ByReferenceUnclearable2/d243<System.RuntimeMethodHandle, PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvokerCache, PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvokerCache, System.Reflection.MethodBase, PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvoker>> (PerformanceFish.Cache.ByReferenceUnclearable2/d243<System.RuntimeMethodHandle, PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvokerCache, PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvokerCache, System.Reflection.MethodBase, PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvoker>&) PerformanceFish.Cache.ByReferenceUnclearable2<System.RuntimeMethodHandle, PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvokerCache>:UpdateCacheAsync<PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvokerCache, System.Reflection.MethodBase, PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvoker> (System.RuntimeMethodHandle,PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvokerCache,System.Reflection.MethodBase) PerformanceFish.Cache.ByReferenceUnclearable2/<>c__DisplayClass21_03<System.RuntimeMethodHandle, PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvokerCache, PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvokerCache, System.Reflection.MethodBase, PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvoker>:b__0 () System.Threading.Tasks.Task1<System.Threading.Tasks.Task1<PerformanceFish.System.ReflectionCaching/MethodBasePatches/MethodInvoker>>:InnerInvoke () System.Threading.Tasks.Task:Execute () System.Threading.Tasks.Task:ExecutionContextCallback (object) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) System.Threading.Tasks.Task:ExecuteWithThreadLocal (System.Threading.Tasks.Task&) System.Threading.Tasks.Task:ExecuteEntry (bool) System.Threading.Tasks.Task:System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () System.Threading.ThreadPoolWorkQueue:Dispatch () System.Threading._ThreadPoolWaitCallback:PerformWaitCallback ()

bbradson commented 3 months ago

Fixed 10 months ago. The code triggering that error cannot be running at default settings on the current mod version