- Home /
Crash in : UnityEngine.RaycastHit:INTERNAL_CALL_CalculateRaycastTexCoord
Unity 5.6:
I have a somewhat common crash bug that only occurs when running the game outside of the editor.
So the crash seems to occur in the following native method: UnityEngine.RaycastHit:INTERNAL_CALL_CalculateRaycastTexCoord
How can I go about debugging this?
The error log shows the following stack trace:
========== OUTPUTING STACK TRACE ==================
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 011CB568) 0x011CB568 (build) ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 01075E05) 0x01075E05 (build) ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 015634B0) 0x015634B0 (build) 0x0552C12E (Mono JIT Code) (wrapper managed-to-native) UnityEngine.RaycastHit:INTERNAL_CALL_CalculateRaycastTexCoord (UnityEngine.Vector2&,UnityEngine.Collider,UnityEngine.Vector2&,UnityEngine.Vector3&,int,int) 0x0552C0E2 (Mono JIT Code) UnityEngine.RaycastHit:CalculateRaycastTexCoord (UnityEngine.Vector2&,UnityEngine.Collider,UnityEngine.Vector2,UnityEngine.Vector3,int,int) 0x0552C08D (Mono JIT Code) UnityEngine.RaycastHit:get_textureCoord () 0x0552BD62 (Mono JIT Code) WW2.Ballistics.TerminalBallistics:EstimateEffectiveArmorThickness (WW2.Ballistics.ProjectileData,UnityEngine.RaycastHit,UnityEngine.Vector3,WW2.Ballistics.PenetrableSurface) 0x0552BBB8 (Mono JIT Code) WW2.Ballistics.TerminalBallistics:EstimatePenetration (WW2.Ballistics.ProjectileData,UnityEngine.Vector3,UnityEngine.RaycastHit,WW2.Ballistics.PenetrableSurface) 0x05514EC3 (Mono JIT Code) WW2.Ballistics.TerminalBallistics:EstimatePenetrationRatio (WW2.Objects.Common.Weapon,int,WW2.Objects.Components.IDamageComponent,single) 0x055148FA (Mono JIT Code) WW2.AI.GunnerBrain:SelectTargetComponent () 0x055141DB (Mono JIT Code) WW2.AI.GunnerBrain:SetTarget (WW2.AI.SensorContact,int,int,WW2.AI.TargetSelectionSource) 0x05513EE9 (Mono JIT Code) WW2.AI.GunnerBrain:AssignTarget (WW2.Objects.ICombatEntity,int,int,WW2.AI.TargetSelectionSource) 0x05511EE1 (Mono JIT Code) WW2.AI.CommanderBrain:UpdateVisibleSet (System.Collections.Generic.IEnumerable`1) 0x05511CD4 (Mono JIT Code) WW2.AI.CommanderBrain:VisionSensor_OnContactsUpdated (System.Collections.Generic.IEnumerable`1) 0x05505BC6 (Mono JIT Code) WW2.AI.VisionSensor:Process ()
Answer by hexagonius · Jun 23, 2017 at 10:28 AM
You cannot debug this, it's a native error. You need to file a bug report for this one.