Solarint / SAIN

Full EFT AI Replacement
57 stars 18 forks source link

Random client crashes, many errors in logs #55

Closed LittleOneChewy closed 12 months ago

LittleOneChewy commented 12 months ago

Random EFT client crashes. Using SAIN beta 3.3 List of installed mods:

SPT/Logs contains large log file full of errors. Some of them:

2023-07-03 08:34:40.055 +03:00|0.13.0.5.23399|Error|Default| 
EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at GClass389.CalcGoalForBot () [0x0003c] in <89c8c8aab2ad44ff89f90df9bc38d688>:0 
  at BotGroupClass.CalcGoalForBot (EFT.BotOwner bot) [0x00006] in <89c8c8aab2ad44ff89f90df9bc38d688>:0 
  at SAIN.Classes.HearingSensorClass.ReactToSound (IAIDetails person, UnityEngine.Vector3 pos, System.Single power, System.Boolean wasHeard, AISoundType type) [0x001bb] in <2e5a4a501199436ca4f42beb122266a3>:0 
  at SAIN.Classes.HearingSensorClass.EnemySoundHeard (IAIDetails player, UnityEngine.Vector3 position, System.Single power, AISoundType type) [0x000a2] in <2e5a4a501199436ca4f42beb122266a3>:0 
  at SAIN.Classes.HearingSensorClass.HearSound (IAIDetails player, UnityEngine.Vector3 position, System.Single power, AISoundType type) [0x0002a] in <2e5a4a501199436ca4f42beb122266a3>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void_IAIDetails_Vector3_single_AISoundType(IAIDetails,UnityEngine.Vector3,single,AISoundType)
  at GClass629.PlaySound (IAIDetails person, UnityEngine.Vector3 position, System.Single power, AISoundType type) [0x00008] in <89c8c8aab2ad44ff89f90df9bc38d688>:0 
  at SAIN.Helpers.GunshotRange.PlayShootSound (EFT.Player player, System.Single range, System.Boolean subsonic, AISoundType soundtype) [0x00063] in <2e5a4a501199436ca4f42beb122266a3>:0 
  at SAIN.Helpers.GunshotRange+<OnMakingShotCoroutine>d__0.MoveNext () [0x000a2] in <2e5a4a501199436ca4f42beb122266a3>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <85d1d3e7744a4a47b5f51883bf40bba2>:0 
2023-07-03 08:34:40.055 +03:00|0.13.0.5.23399|Error|Default|NullReferenceException: Object reference not set to an instance of an object
GClass389.CalcGoalForBot () (at <89c8c8aab2ad44ff89f90df9bc38d688>:0)
BotGroupClass.CalcGoalForBot (EFT.BotOwner bot) (at <89c8c8aab2ad44ff89f90df9bc38d688>:0)
SAIN.Classes.HearingSensorClass.ReactToSound (IAIDetails person, UnityEngine.Vector3 pos, System.Single power, System.Boolean wasHeard, AISoundType type) (at <2e5a4a501199436ca4f42beb122266a3>:0)
SAIN.Classes.HearingSensorClass.EnemySoundHeard (IAIDetails player, UnityEngine.Vector3 position, System.Single power, AISoundType type) (at <2e5a4a501199436ca4f42beb122266a3>:0)
SAIN.Classes.HearingSensorClass.HearSound (IAIDetails player, UnityEngine.Vector3 position, System.Single power, AISoundType type) (at <2e5a4a501199436ca4f42beb122266a3>:0)
GClass629.PlaySound (IAIDetails person, UnityEngine.Vector3 position, System.Single power, AISoundType type) (at <89c8c8aab2ad44ff89f90df9bc38d688>:0)
SAIN.Helpers.GunshotRange.PlayShootSound (EFT.Player player, System.Single range, System.Boolean subsonic, AISoundType soundtype) (at <2e5a4a501199436ca4f42beb122266a3>:0)
SAIN.Helpers.GunshotRange+<OnMakingShotCoroutine>d__0.MoveNext () (at <2e5a4a501199436ca4f42beb122266a3>:0)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <85d1d3e7744a4a47b5f51883bf40bba2>:0)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
Class311:UnityEngine.ILogHandler.LogException(Exception, Object)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
SAIN.Patches.InitiateShotPatch:PatchPrefix(FirearmController, IWeapon, BulletClass)
EFT.FirearmController:DMD<EFT.Player+FirearmController::InitiateShot>(FirearmController, IWeapon, BulletClass, Vector3, Vector3, Vector3, Int32, Single)
EFT.FirearmController:method_52(Weapon, BulletClass, Int32, Boolean)
EFT.GClass1541:MakeShot(BulletClass, Int32, Boolean)
EFT.GClass1543:OnFireEvent()
EFT.FirearmController:method_39()
EFT.FirearmController:IEventsConsumerOnFiringBullet()
EFT.AbstractHandsController:GInterface18.OnFiringBullet()
GClass686:smethod_9(List`1, AnimationEventParameter)
GClass686:AnimatorEventHandler(List`1, Int32, AnimationEventParameter)
ObjectInHandsAnimator:AnimatorEventHandler(Int32, AnimationEventParameter)
GClass1218:method_2(String, Int32, AnimationEventParameter, Int32)
GClass1218:method_3(AnimationEvent, IAnimator, AnimatorStateInfoWrapper&, Single)
GClass1218:EmitEvents()
EFT.ItemHandsController:EmitEvents()
EFT.Player:method_64(Single)
EFT.Player:ComplexLateUpdate(EUpdateQueue, Single)
EFT.Player:DMD<EFT.Player::LateUpdate>(Player)
2023-07-03 08:34:40.081 +03:00|0.13.0.5.23399|Error|Default| 
EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at SAIN.Classes.WeaponInfo.ManualUpdate () [0x0002c] in <2e5a4a501199436ca4f42beb122266a3>:0 
  at SAIN.Classes.BotInfoClass.Update () [0x00064] in <2e5a4a501199436ca4f42beb122266a3>:0 
2023-07-03 08:34:40.081 +03:00|0.13.0.5.23399|Error|Default|NullReferenceException: Object reference not set to an instance of an object
SAIN.Classes.WeaponInfo.ManualUpdate () (at <2e5a4a501199436ca4f42beb122266a3>:0)
SAIN.Classes.BotInfoClass.Update () (at <2e5a4a501199436ca4f42beb122266a3>:0)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
Class311:UnityEngine.ILogHandler.LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
2023-07-03 08:36:48.793 +03:00|0.13.0.5.23399|Error|Default| 
EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at SAIN.Classes.EnemyTalk.Update () [0x00019] in <2e5a4a501199436ca4f42beb122266a3>:0 
  at SAIN.Classes.BotTalkClass.Update () [0x00039] in <2e5a4a501199436ca4f42beb122266a3>:0 
2023-07-03 08:36:48.793 +03:00|0.13.0.5.23399|Error|Default|NullReferenceException: Object reference not set to an instance of an object
SAIN.Classes.EnemyTalk.Update () (at <2e5a4a501199436ca4f42beb122266a3>:0)
SAIN.Classes.BotTalkClass.Update () (at <2e5a4a501199436ca4f42beb122266a3>:0)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
Class311:UnityEngine.ILogHandler.LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
2023-07-03 08:34:35.992 +03:00|0.13.0.5.23399|Error|Default| 
EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at BotMemoryClass.Spotted (System.Boolean byHit, System.Nullable`1[T] from, System.Nullable`1[T] secToBeSpotted) [0x0015e] in <89c8c8aab2ad44ff89f90df9bc38d688>:0 
  at SAIN.Classes.HearingSensorClass.EnemySoundHeard (IAIDetails player, UnityEngine.Vector3 position, System.Single power, AISoundType type) [0x00085] in <2e5a4a501199436ca4f42beb122266a3>:0 
  at SAIN.Classes.HearingSensorClass.HearSound (IAIDetails player, UnityEngine.Vector3 position, System.Single power, AISoundType type) [0x0002a] in <2e5a4a501199436ca4f42beb122266a3>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void_IAIDetails_Vector3_single_AISoundType(IAIDetails,UnityEngine.Vector3,single,AISoundType)
  at GClass629.PlaySound (IAIDetails person, UnityEngine.Vector3 position, System.Single power, AISoundType type) [0x00008] in <89c8c8aab2ad44ff89f90df9bc38d688>:0 
  at GClass1603.method_1 (UnityEngine.Vector3 motion) [0x0012c] in <89c8c8aab2ad44ff89f90df9bc38d688>:0 
  at GClass1603.DirectApplyMotion (UnityEngine.Vector3 motion, System.Single deltaTime) [0x00087] in <89c8c8aab2ad44ff89f90df9bc38d688>:0 
  at GClass1603.AnimatorStatesLateUpdate () [0x0000f] in <89c8c8aab2ad44ff89f90df9bc38d688>:0 
  at (wrapper dynamic-method) EFT.Player.DMD<EFT.Player::LateUpdate>(EFT.Player)
2023-07-03 08:34:35.992 +03:00|0.13.0.5.23399|Error|Default|NullReferenceException: Object reference not set to an instance of an object
BotMemoryClass.Spotted (System.Boolean byHit, System.Nullable`1[T] from, System.Nullable`1[T] secToBeSpotted) (at <89c8c8aab2ad44ff89f90df9bc38d688>:0)
SAIN.Classes.HearingSensorClass.EnemySoundHeard (IAIDetails player, UnityEngine.Vector3 position, System.Single power, AISoundType type) (at <2e5a4a501199436ca4f42beb122266a3>:0)
SAIN.Classes.HearingSensorClass.HearSound (IAIDetails player, UnityEngine.Vector3 position, System.Single power, AISoundType type) (at <2e5a4a501199436ca4f42beb122266a3>:0)
GClass629.PlaySound (IAIDetails person, UnityEngine.Vector3 position, System.Single power, AISoundType type) (at <89c8c8aab2ad44ff89f90df9bc38d688>:0)
GClass1603.method_1 (UnityEngine.Vector3 motion) (at <89c8c8aab2ad44ff89f90df9bc38d688>:0)
GClass1603.DirectApplyMotion (UnityEngine.Vector3 motion, System.Single deltaTime) (at <89c8c8aab2ad44ff89f90df9bc38d688>:0)
GClass1603.AnimatorStatesLateUpdate () (at <89c8c8aab2ad44ff89f90df9bc38d688>:0)
(wrapper dynamic-method) EFT.Player.DMD<EFT.Player::LateUpdate>(EFT.Player)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
Class311:UnityEngine.ILogHandler.LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
LittleOneChewy commented 12 months ago

Plus:

2023-07-03 10:14:05.922 +03:00|0.13.0.5.23399|Error|Default| 
EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at SAIN.Components.BotController.BotExtractManager.FindExfils (SAIN.Components.SAINComponent bot) [0x00068] in <2e5a4a501199436ca4f42beb122266a3>:0 
  at SAIN.Components.BotController.BotExtractManager.FindExfilsForBots () [0x000d8] in <2e5a4a501199436ca4f42beb122266a3>:0 
  at SAIN.Components.BotController.BotExtractManager.Update () [0x00110] in <2e5a4a501199436ca4f42beb122266a3>:0 
  at SAIN.Components.SAINBotController.Update () [0x0003b] in <2e5a4a501199436ca4f42beb122266a3>:0 
2023-07-03 10:14:05.922 +03:00|0.13.0.5.23399|Error|Default|NullReferenceException: Object reference not set to an instance of an object
SAIN.Components.BotController.BotExtractManager.FindExfils (SAIN.Components.SAINComponent bot) (at <2e5a4a501199436ca4f42beb122266a3>:0)
SAIN.Components.BotController.BotExtractManager.FindExfilsForBots () (at <2e5a4a501199436ca4f42beb122266a3>:0)
SAIN.Components.BotController.BotExtractManager.Update () (at <2e5a4a501199436ca4f42beb122266a3>:0)
SAIN.Components.SAINBotController.Update () (at <2e5a4a501199436ca4f42beb122266a3>:0)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
Class311:UnityEngine.ILogHandler.LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
LittleOneChewy commented 12 months ago

I cant get stable problem reproduction. I deinstalled SPT Realism Mod dll and problem disappeared. But problem was not returned after reinstalling. Also its duplicate: https://github.com/Solarint/SAIN/issues/50