Why does the KernelBase crash if a subjectObject pointer is not used or referenced?

Hello guys

I have encounter a strange crash of the kernel and don’t know why.

Here’s the case : I made a custom camera for testing from the TPP. I took off everything with the follow camera and camera boom but i forgot to take off the header declaration and the kernel crash on game running so why ! ?

here’s a picture of the error

Simple Way to reproduce

  1. Create a third person template project
  2. Add for example UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category=Camera) TSubobjectPtr<class USphereComponent> sphereTest;

to the character header

3.Compile and it will crash

Can someone explain why an unused pointer cause the engine to “crash” i’m really curious.

Thanks to help