After BlueprintReadOnly lecture, Unreal crashes: Using 4.18.3

After this lecture, Unreal crashes on play. I am a brand new coder. Appreciate any help. This is what I have tried:

  1. Removing the BP for Move Forward
  2. Commenting out the UE_LOG
  3. Commenting out the BlueprintReadOnly line
  4. Tried playing from Main menu. It did not crash until I hit the start button

I should say that my code compiles without a problem. As far as I can see, it is identical to Ben’s. Here is the error message I am getting:

LoginId:36f12e094148096216fe6cbf9268118a
EpicAccountId:be525d81a15e4e22ba3b1d9cd6d7772b

Access violation - code c0000005 (first/second chance not available)

UE4Editor_BattleTank!AProjectile::LaunchProjectile() [c:\users\seths\onedrive\documents\repos\04_battletank\battletank\source\battletank\private\projectile.cpp:34]
UE4Editor_BattleTank!ATank::Fire() [c:\users\seths\onedrive\documents\repos\04_battletank\battletank\source\battletank\private\tank.cpp:72]
UE4Editor_BattleTank!ATankAIController::Tick() [c:\users\seths\onedrive\documents\repos\04_battletank\battletank\source\battletank\private\tankaicontroller.cpp:26]
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Core
UE4Editor_Core
UE4Editor_Core
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_UnrealEd
UE4Editor_UnrealEd
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll

I’m getting the exact same result with the same Unreal version.

Thanks to a post from an earlier video, I realized that sometimes, when things are added to the Tank_BP, it resets the Projectile to none. By resetting it to Projectile_BP, the problem is solved.

I saw that earlier post, but I completely forgot about it. Thanks!

Privacy & Terms