During the build of the project, my PC turned off due to problems with the light. After that, every time I run the project in the unity (which I built), the unity crashes.
In the crash log file, I noticed several errors like this: Could not allocate memory: System out of memory!.
Files attached to crash: manifest.json , packages-lock.json and general project folder.
Is it possible to remove crashes?
If you are developing editor tools, it is likely that the issue is stemming from them. They can cause crashes on startup in many scenarios. To resolve it, you can try temporarily removing them from the project and then reimporting them after the project is opened again.
If you figure out the specific code block that is causing this and share it with me, I can suggest a workaround because otherwise you will encounter that problem frequently.
I didn’t create any editor tools. Crashes started after a forced shutdown of the PC, during the compilation of the build.
If your computer got shut down abruptly you may be dealing corrupt data in some form. Are there pending changes showing in your version control? (I hope you’re using version control).
Does this happen in other projects?
You can try clearing your library folder as a starting point.