Unreal 5 Crashing on Project Startup Issue

I have an issue where UE5 is crashing consistently when I try to open my project. This happened after pushing code change, which is denoted in the below error log:

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000210

UnrealEditor_Engine
UnrealEditor_MyProject_3688!AMainPlayer::AMainPlayer() [C:\Users\User\Documents\Unreal Projects\MyProject\Source\MyProject\MainPlayer.cpp:22]
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Projects
UnrealEditor_Projects
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

I realized the issue immediately, but can’t get the project open to save my life. I’ve tried:

Changing the script, even completely deleting the new code altogether.
Deleting the Saved folder
Deleting the Saved and Intermediate folders
Deleting the Saved and Intermediate folders along with the script in question.

Anyone know how to fix this?

You may want to download the editor debugging symbols so that you can see exactly what is causing the crash, and make the change in your code to accommodate.

I made the change in the code. Even reverted the script back to what worked previously. Doesn’t work, still screams about the same line. I can’t open the project to compile the changes either.

Compile from your IDE, not from the Editor. It’s still running off of the old Binaries, so it’s going to continuously crash until you rebuild from your IDE.

How would I go about doing that in Visual Studio 2022? Google is not bringing up any answers and nothing is jumping out as being able to do that. Only option under Build is Run Code Analysis on Solution.

Going off of memory since I mainly use Rider, but once you’ve opened your project’s .sln file, you should be able to just click on the green “Play” button on the top bar of VS2022. This should build your project. If not, finding the project in the solution explorer on the right side of the screen, and right clicking it, should reveal a “Build” option.

I found a resource that looks like the right thing and follows what you’re talking about, trying it out

Got it working again. Partially from your suggestion and partially from the answer here: Cannot open source file name.generated.hc

Thanks. Was a good learning experience.