Build Error - Unhandled Exception: EXCEPTION_ACCESS_VIOLATION 0x00007fff013de428

And Check this too…

Im actually working on another feature simultaniously so this is no longer in the script, I think I had this commented out but perhaps it was the issue, will update when I restart the project on this. I did not know that UObjects are checked with IsValid(), that will be very helpful I’m sure. If this persists I may put conditions to check that every pointer is valid before anything is done in the onbeginoverlap function. Thank you for all your help so far, appreciated from a new unreal learner! :slight_smile:

you are welcome :slight_smile: :ok_hand:

After another week of learning Unreal I have used my new knowledge to fix this. Guys, if you take anything from this post PLEASE PLEASE PLEASE check every pointer you create if it is null. This error was just a simple GetCapsuleComponent() away from being fixed. What Ivan said is right where the majority of errors in Access Violation are from null ptrs. I Added this
if(GetCapsuleComponent()){ GetCapsuleComponent()->InitCapsuleSize(42.0f, 96.0f); }

Instead of just calling GetCapsuleComponent()->InitCapsuleSize(42.0f, 96.0f);

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.