Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug crash on project start

Discussion in 'Editor & General Support' started by madrd, Jul 11, 2023.

  1. madrd

    madrd

    Joined:
    Jul 21, 2022
    Posts:
    14
    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?
     
  2. xOrfe

    xOrfe

    Joined:
    Apr 21, 2013
    Posts:
    31
    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.
     
  3. xOrfe

    xOrfe

    Joined:
    Apr 21, 2013
    Posts:
    31
    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.
     
  4. madrd

    madrd

    Joined:
    Jul 21, 2022
    Posts:
    14
    I didn't create any editor tools. Crashes started after a forced shutdown of the PC, during the compilation of the build.
     
  5. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    7,355
    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.