It could matter where you are calling the Get Player Controller. I’m not sure when constructors and stuff are ran in regards to starting the editor, but it’s possible they are called for everything that’s in the scene. Which would be a reason why the editor crashes because if you try to do something with the player controller and it doesn’t exist. I would put a check to make sure the player controller exists before doing anything with it and try that?