Project works in Editor, randomly crashes in build

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?

Check the player logs to see what caused the crash:

1 Like

Thanks, Here’s the log file I found… Not really clear what is going on still…

6388965–712146–error.txt (71.8 KB)

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.