Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Project works in Editor, randomly crashes in build

Discussion in 'Editor & General Support' started by Digital_Worlds, Oct 6, 2020.

  1. Digital_Worlds

    Digital_Worlds

    Joined:
    Mar 9, 2018
    Posts:
    3
    Hey Everyone,

    I am struggling with an issue, and I do not see a clear path to resolving it. I have a project that is working fine within the editor. I do not see any errors or warnings that indicate any serious issue, however, after I build the project, the game randomly crashes during gameplay. I do not see a reason for this to happen, and I am not sure how to resolve it. I did a script build with an error log. There were several minor errors displaying in the console. These errors were also showing up in the editor. I fixed these errors, hoping that maybe it would change something. Unfortunately, the game continues to crash. Does anyone have any idea on what I might do to debug the error further?
     
    Last edited: Oct 6, 2020
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,724
    Digital_Worlds likes this.
  3. Digital_Worlds

    Digital_Worlds

    Joined:
    Mar 9, 2018
    Posts:
    3
    Thanks, Here's the log file I found... Not really clear what is going on still....
     

    Attached Files:

    Last edited: Oct 6, 2020
  4. Digital_Worlds

    Digital_Worlds

    Joined:
    Mar 9, 2018
    Posts:
    3
    Ok, I did some further investigation. I finally discovered it is caused by an effect with the Visual Effect graph.I am using a mesh emitter. I have about 5 different cameras outputting to a render texture. Everything seems to work fine if I am only using 1 camera, however when I use the multiple cameras and the visual effect graph effect is turned on, it seems to crash Unity at random intervals. As mentioned above, this works fine in the editor. The crash only occurs after it is built. The game needs to be running for a minute or two for the crash to happen. This seems to be a glitch on Unity's end.

    I am using unity 2020.1.6f1 on a Windows machine.

    The version of the visual effect graph is 8.2.0. with the URP.

    If someone from Unity could investigate this issue that would be much appreciated.