Cannot call a function from another class! No errors UE4 just closes itself

wow, I tried different ways to fix it with pointers etc. before but I always got an error. And suddenly the error is gone and I can compile again. But my main problem (unreal engine 4 crash, when I press ‘R’ → BindAction for Raycast) is still there :frowning: